/* EOVO WordPress Theme - Custom CSS */

/* WordPress Specific Styles */
.wp-block-image {
    margin: 20px 0;
}

.wp-block-image img {
    max-width: 100%;
    height: auto;
}

.wp-block-quote {
    background: #f8f9fa;
    border-left: 4px solid #333;
    padding: 20px 30px;
    margin: 30px 0;
    font-style: italic;
    font-size: 18px;
}

.wp-block-quote cite {
    font-style: normal;
    font-weight: 600;
    color: #666;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* WordPress Gallery */
.wp-block-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 30px 0;
}

.wp-block-gallery .wp-block-image {
    margin: 0;
}

/* WordPress Comments */
.comments-area {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.comments-title {
    font-size: 24px;
    font-weight: 300;
    margin-bottom: 30px;
    text-transform: uppercase;
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comment {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 5px;
}

.comment-author {
    font-weight: 600;
    margin-bottom: 10px;
}

.comment-meta {
    font-size: 12px;
    color: #666;
    margin-bottom: 15px;
}

.comment-content p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.reply {
    margin-top: 15px;
}

.reply a {
    color: #333;
    text-decoration: none;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.reply a:hover {
    color: #007bff;
}

/* Comment Form */
.comment-respond {
    margin-top: 40px;
}

.comment-reply-title {
    font-size: 20px;
    font-weight: 300;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.comment-form-comment textarea,
.comment-form-author input,
.comment-form-email input,
.comment-form-url input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 14px;
    margin-bottom: 15px;
}

.comment-form-comment textarea {
    height: 120px;
    resize: vertical;
}

.form-submit input {
    background: #333;
    color: #fff;
    border: none;
    padding: 12px 30px;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
    transition: background 0.3s ease;
}

.form-submit input:hover {
    background: #007bff;
}

/* WordPress Search Form */
.search-form {
    position: relative;
}

.search-field {
    width: 100%;
    padding: 12px 50px 12px 15px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 14px;
}

.search-submit {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    background: #333;
    color: #fff;
    border: none;
    padding: 0 15px;
    cursor: pointer;
    border-radius: 0 3px 3px 0;
}

.search-submit:hover {
    background: #007bff;
}

/* WordPress Navigation */
.nav-links {
    display: flex;
    justify-content: space-between;
    margin: 40px 0;
}

.nav-previous,
.nav-next {
    flex: 1;
}

.nav-next {
    text-align: right;
}

.nav-links a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #007bff;
}

/* WordPress Widgets */
.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget li {
    margin-bottom: 10px;
}

.widget a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.widget a:hover {
    color: #007bff;
}

/* WordPress Calendar Widget */
.widget_calendar table {
    width: 100%;
    border-collapse: collapse;
}

.widget_calendar th,
.widget_calendar td {
    padding: 8px;
    text-align: center;
    border: 1px solid #eee;
}

.widget_calendar th {
    background: #f8f9fa;
    font-weight: 600;
}

.widget_calendar a {
    color: #007bff;
    font-weight: 600;
}

/* WordPress Text Widget */
.widget_text p {
    margin-bottom: 15px;
    line-height: 1.6;
}

/* Accessibility */
.screen-reader-text {
    position: absolute !important;
    clip: rect(1px, 1px, 1px, 1px);
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* WordPress Admin Bar Compatibility */
.admin-bar .header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar .header {
        top: 46px;
    }
}

/* WordPress Alignment Classes */
.alignleft {
    float: left;
    margin: 0 20px 20px 0;
}

.alignright {
    float: right;
    margin: 0 0 20px 20px;
}

.aligncenter {
    display: block;
    margin: 20px auto;
    text-align: center;
}

.alignnone {
    margin: 20px 0;
}

/* WordPress Caption */
.wp-caption {
    max-width: 100%;
    margin: 20px 0;
}

.wp-caption img {
    max-width: 100%;
    height: auto;
}

.wp-caption-text {
    font-size: 12px;
    color: #666;
    text-align: center;
    margin-top: 10px;
    font-style: italic;
}

/* WordPress Embeds */
.wp-block-embed {
    margin: 30px 0;
}

.wp-block-embed iframe,
.wp-block-embed video {
    max-width: 100%;
    height: auto;
}

/* WordPress Tables */
.wp-block-table table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.wp-block-table th,
.wp-block-table td {
    padding: 12px;
    border: 1px solid #ddd;
    text-align: left;
}

.wp-block-table th {
    background: #f8f9fa;
    font-weight: 600;
}

/* WordPress Buttons */
.wp-block-button .wp-block-button__link {
    background: #333;
    color: #fff;
    padding: 12px 30px;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
    border-radius: 3px;
    transition: background 0.3s ease;
}

.wp-block-button .wp-block-button__link:hover {
    background: #007bff;
}

/* WordPress Separator */
.wp-block-separator {
    border: none;
    border-top: 2px solid #333;
    margin: 40px auto;
    width: 100px;
}

/* WordPress Spacer */
.wp-block-spacer {
    clear: both;
}

/* Custom Post Type Styles */
.portfolio-meta,
.service-meta {
    background: #f8f9fa;
    padding: 20px;
    margin: 20px 0;
    border-radius: 5px;
}

.portfolio-meta h4,
.service-meta h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.portfolio-meta p,
.service-meta p {
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.6;
}

/* Error 404 Page */
.error-404 {
    text-align: center;
    padding: 80px 0;
}

.error-404 h1 {
    font-size: 120px;
    font-weight: 300;
    margin-bottom: 20px;
    color: #ddd;
}

.error-404 h2 {
    font-size: 32px;
    font-weight: 300;
    margin-bottom: 20px;
}

.error-404 p {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #333;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .sidebar,
    #backtotop,
    .comments-area {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .container {
        max-width: none;
        padding: 0;
    }
}

