/**
 * Blog Specific Styles
 * Additional styling for blog pages
 */

/* Blog Archive Typography */
.blog-header h1 {
    animation: fadeInUp 0.6s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Blog Card Enhancements */
.blog-card {
    position: relative;
}

.blog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent, rgba(193, 122, 74, 0.03));
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    border-radius: 12px;
}

.blog-card:hover::before {
    opacity: 1;
}

/* Meta Icons Styling */
.post-meta .dashicons,
.article-meta .dashicons {
    width: 18px;
    height: 18px;
    font-size: 18px;
}

/* Article Content Typography */
.article-body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.article-body h2::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 28px;
    background: linear-gradient(135deg, var(--color-primary, #C17A4A), var(--color-secondary, #1E3A5F));
    margin-left: 12px;
    vertical-align: middle;
}

.article-body a {
    color: var(--color-primary, #C17A4A);
    text-decoration: underline;
    transition: color 0.3s;
}

.article-body a:hover {
    color: var(--color-secondary, #1E3A5F);
}

/* Code Styling */
.article-body code {
    background: #f5f5f5;
    padding: 3px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: var(--color-primary, #C17A4A);
}

.article-body pre {
    background: var(--color-secondary, #1E3A5F);
    color: #f5f5f5;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 30px 0;
}

.article-body pre code {
    background: transparent;
    color: inherit;
    padding: 0;
}

/* Table Styling */
.article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
}

.article-body th,
.article-body td {
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    text-align: right;
}

.article-body th {
    background: var(--color-secondary, #1E3A5F);
    color: white;
    font-weight: 600;
}

.article-body tr:nth-child(even) {
    background: #f9f9f9;
}

/* Pagination Styling */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 45px;
    padding: 0 15px;
    background: white;
    color: #666;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: var(--color-primary, #C17A4A);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(193, 122, 74, 0.3);
}

.pagination .page-numbers.dots {
    background: transparent;
    box-shadow: none;
}

/* Sticky Sidebar */
@media (min-width: 969px) {
    .widget-area {
        position: sticky;
        top: 20px;
        align-self: start;
    }
}

/* Smooth Transitions */
* {
    transition-property: background, color, border-color, transform, box-shadow;
    transition-duration: 0.3s;
    transition-timing-function: ease;
}

/* Print Styles */
@media print {

    .blog-header,
    .post-navigation,
    .related-posts,
    .widget-area {
        display: none !important;
    }

    .article-body {
        font-size: 12pt;
        line-height: 1.5;
    }
}

/* Accessibility */
.blog-card:focus-within,
.widget a:focus {
    outline: 2px solid var(--color-primary, #C17A4A);
    outline-offset: 2px;
}

/* Loading Animation */
.blog-grid {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Mobile Optimizations */
@media (max-width: 640px) {
    .blog-header h1 {
        font-size: 2rem !important;
    }

    .blog-header p {
        font-size: 1rem !important;
    }

    .article-body {
        font-size: 1rem !important;
    }

    .article-body h2 {
        font-size: 1.5rem !important;
    }

    .article-meta {
        flex-direction: column;
        gap: 15px !important;
    }
}