/**
 * Blog Page Styles
 * Custom styling for the blog listing page template
 */

/* ====================================
   MAIN PAGE CONTAINER
   ==================================== */

.blog-main {
    width: 100%;
    overflow: hidden;
}

/* ====================================
   HERO SECTION
   ==================================== */

.blog-hero {
    position: relative;
    width: 100%;
    height: 450px;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 80px 24px 60px;
    margin: 0;
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    z-index: -1;
}

.blog-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(11, 12, 16, 0.85) 0%, rgba(11, 12, 16, 0.5) 50%, transparent 100%);
    z-index: 0;
}

.blog-hero-content {
    position: relative;
    z-index: 10;
    max-width: 600px;
    width: 100%;
}

.blog-hero-accent {
    width: 64px;
    height: 4px;
    background-color: #C5A059;
    margin-bottom: 32px;
    display: block;
}

.blog-hero-title {
    font-size: 56px;
    font-weight: 800;
    color: #ffffff;
    text-transform: uppercase;
    margin-bottom: 24px;
    line-height: 1.1;
    letter-spacing: 1px;
}

.blog-hero-subtitle {
    font-size: 18px;
    color: #d1d5db;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 300;
    border-left: 2px solid #C5A059;
    padding-left: 24px;
    margin: 0;
}

/* ====================================
   BLOG SECTION HEADER
   ==================================== */

.blog-section {
    padding: 60px 24px;
    background-color: #f5f5f0;
}

.blog-section-header {
    max-width: 1100px;
    margin: 0 auto 48px;
    text-align: center;
}

.blog-section-title {
    font-size: 28px;
    font-weight: 800;
    color: #111827;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 12px;
}

.blog-section-subtitle {
    font-size: 14px;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ====================================
   BLOG GRID CONTAINER
   ==================================== */

.blog-grid-container {
    max-width: 1100px;
    margin: 0 auto;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 32px;
    width: 100%;
    margin-bottom: 48px;
}

/* ====================================
   BLOG CARD
   ==================================== */

.blog-card {
    background-color: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 10px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease-out;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-card:hover {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-8px);
}

.blog-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.blog-card-image {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #f0f0f0;
}

.blog-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
}

.blog-card:hover .blog-card-img {
    transform: scale(1.05);
}

.blog-card-content {
    padding: 28px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-card-category {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: #C5A059;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    padding: 6px 12px;
    background-color: rgba(197, 160, 89, 0.1);
    border-radius: 6px;
    width: fit-content;
}

.blog-card-title {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 12px;
    line-height: 1.4;
    word-break: break-word;
}

.blog-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-card-title a:hover {
    color: #C5A059;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 12px;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.blog-card-date {
    font-weight: 600;
}

.blog-card-author {
    font-weight: 500;
}

.blog-card-excerpt {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.7;
    margin: 0 0 auto;
    word-break: break-word;
}

.blog-card-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    padding: 12px 0;
    color: #C5A059;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid #C5A059;
    transition: all 0.3s ease;
}

.blog-card-button:hover {
    color: #ffffff;
    background-color: #C5A059;
    padding-left: 12px;
    padding-right: 12px;
    border-radius: 4px;
    border-bottom: none;
}

.blog-card-button .material-icons {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.blog-card-button:hover .material-icons {
    transform: translateX(4px);
}

/* ====================================
   EMPTY STATE
   ==================================== */

.blog-empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 24px;
}

.blog-empty-message {
    font-size: 18px;
    color: #4b5563;
    margin: 0;
    line-height: 1.8;
}

/* ====================================
   PAGINATION
   ==================================== */

.blog-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid #e5e7eb;
}

.page-numbers {
    display: inline-flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.page-numbers a,
.page-numbers span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 8px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #111827;
    text-decoration: none;
    transition: all 0.3s ease;
}

.page-numbers a:hover {
    background-color: #C5A059;
    color: #ffffff;
    border-color: #C5A059;
}

.page-numbers .current {
    background-color: #C5A059;
    color: #ffffff;
    border-color: #C5A059;
    cursor: default;
}

.page-numbers .dots {
    padding: 0 4px;
    border: none;
    color: #9ca3af;
}

/* ====================================
   DARK MODE
   ==================================== */

.dark .blog-hero {
    background: linear-gradient(135deg, rgba(11, 12, 16, 0.95) 0%, rgba(26, 61, 77, 0.8) 50%, transparent 100%);
}

.dark .blog-section {
    background: linear-gradient(180deg, #1a3d4d 0%, #15171b 100%);
}

.dark .blog-section-title {
    color: #f3f4f6;
}

.dark .blog-section-subtitle {
    color: #9ca3af;
}

.dark .blog-card {
    background-color: #1f2937;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3), 0 10px 20px rgba(0, 0, 0, 0.4);
}

.dark .blog-card:hover {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.5);
}

.dark .blog-card-image {
    background-color: #111827;
}

.dark .blog-card-category {
    background-color: rgba(197, 160, 89, 0.15);
}

.dark .blog-card-title {
    color: #f3f4f6;
}

.dark .blog-card-meta {
    color: #9ca3af;
    border-bottom-color: #374151;
}

.dark .blog-card-excerpt {
    color: #d1d5db;
}

.dark .blog-pagination {
    border-top-color: #374151;
}

.dark .page-numbers a,
.dark .page-numbers span {
    border-color: #374151;
    color: #f3f4f6;
}

.dark .page-numbers a:hover {
    background-color: #C5A059;
    border-color: #C5A059;
    color: #ffffff;
}

.dark .page-numbers .current {
    background-color: #C5A059;
    border-color: #C5A059;
}

.dark .page-numbers .dots {
    color: #6b7280;
}

/* ====================================
   RESPONSIVE DESIGN
   ==================================== */

@media screen and (max-width: 900px) {
    .blog-hero {
        height: 380px;
        padding: 60px 20px 50px;
    }

    .blog-hero-title {
        font-size: 40px;
    }

    .blog-hero-subtitle {
        font-size: 14px;
    }

    .blog-section {
        padding: 40px 20px;
    }

    .blog-section-title {
        font-size: 24px;
        margin-bottom: 8px;
    }

    .blog-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 24px;
        margin-bottom: 40px;
    }

    .blog-card-content {
        padding: 24px;
    }

    .blog-card-title {
        font-size: 18px;
    }

    .blog-card-excerpt {
        font-size: 13px;
    }
}

@media screen and (max-width: 640px) {
    .blog-hero {
        height: 320px;
        padding: 50px 16px 40px;
    }

    .blog-hero-title {
        font-size: 28px;
        margin-bottom: 16px;
    }

    .blog-hero-subtitle {
        font-size: 12px;
    }

    .blog-hero-accent {
        width: 48px;
        height: 3px;
        margin-bottom: 20px;
    }

    .blog-section {
        padding: 32px 16px;
    }

    .blog-section-title {
        font-size: 20px;
    }

    .blog-section-subtitle {
        font-size: 12px;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 32px;
    }

    .blog-card {
        border-radius: 12px;
    }

    .blog-card-content {
        padding: 20px;
    }

    .blog-card-category {
        font-size: 11px;
        padding: 4px 10px;
        margin-bottom: 10px;
    }

    .blog-card-title {
        font-size: 16px;
        margin-bottom: 8px;
    }

    .blog-card-meta {
        font-size: 11px;
        gap: 12px;
        margin-bottom: 12px;
        padding-bottom: 12px;
    }

    .blog-card-excerpt {
        font-size: 13px;
        line-height: 1.6;
    }

    .blog-card-button {
        font-size: 12px;
        padding: 10px 0;
        margin-top: 16px;
    }

    .page-numbers a,
    .page-numbers span {
        min-width: 36px;
        height: 36px;
        font-size: 12px;
        padding: 0 6px;
    }

    .blog-pagination {
        gap: 6px;
        margin-top: 32px;
        padding-top: 32px;
    }
}

@media screen and (max-width: 480px) {
    .blog-hero {
        height: 280px;
        padding: 40px 12px 30px;
    }

    .blog-hero-title {
        font-size: 24px;
    }

    .blog-section {
        padding: 24px 12px;
    }

    .blog-grid {
        gap: 16px;
    }

    .blog-card-content {
        padding: 16px;
    }

    .blog-card-title {
        font-size: 15px;
    }

    .blog-empty-message {
        font-size: 16px;
    }
}
