/**
 * Archive Page Styles
 *
 * @package Beond_Custom
 */

/* ============================================
   Archive Layout
   ============================================ */

.archive-page .container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 40px 60px;
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
}

.archive-page .content-area {
    min-width: 0;
}

/* ============================================
   Page Header
   ============================================ */

.page-header {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #E5E7EB;
}

[data-theme="dark"] .page-header {
    border-bottom-color: rgba(212, 175, 55, 0.2);
}

.page-title {
    font-family: var(--font-headline), Georgia, serif;
    font-size: 32px;
    font-weight: 700;
    color: #1F2937;
    margin-bottom: 8px;
}

[data-theme="dark"] .page-title {
    color: #F3F4F6;
}

.archive-description {
    font-family: var(--font-body), Georgia, serif;
    font-size: 16px;
    line-height: 1.6;
    color: #6B7280;
}

[data-theme="dark"] .archive-description {
    color: #9CA3AF;
}

/* ============================================
   Archive Posts Wrapper
   ============================================ */

.archive-posts-wrapper {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* ============================================
   Hero Post (First Post)
   ============================================ */

.archive-hero-post {
    width: 100%;
    margin-bottom: 0;
}

.hero-post-thumbnail {
    position: relative;
    width: 100%;
    height: 500px;
    border-radius: 16px;
    overflow: hidden;
}

.hero-post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-post-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.85) 70%);
    display: flex;
    align-items: flex-end;
    padding: 48px;
}

[data-theme="dark"] .hero-post-overlay {
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.92) 70%);
}

.hero-post-content {
    max-width: 800px;
}

.hero-category {
    display: inline-block;
    font-family: var(--font-ui), -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--navy-deep, #0A1628);
    background: var(--gold-champagne, #D4AF37);
    padding: 6px 16px;
    border-radius: 6px;
    margin-bottom: 16px;
}

.hero-post-title {
    font-family: var(--font-headline), Georgia, serif;
    font-size: 42px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
}

.hero-post-title a {
    color: #FFFFFF;
    text-decoration: none;
    transition: color 0.2s ease;
}

.hero-post-title a:hover {
    color: var(--gold-champagne, #D4AF37);
}

.hero-post-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-ui), -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 16px;
}

.hero-post-meta .meta-separator {
    color: rgba(255, 255, 255, 0.4);
}

.hero-post-excerpt {
    font-family: var(--font-body), Georgia, serif;
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

/* ============================================
   Regular Archive Posts (After First)
   ============================================ */

.archive-posts-wrapper .archive-post {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    padding: 0;
    margin-bottom: 0;
    background: transparent;
    border: none;
}

.archive-post-thumbnail {
    width: 100%;
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
}

.archive-post-thumbnail a {
    display: block;
    width: 100%;
    height: 100%;
}

.archive-post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.archive-post:hover .archive-post-thumbnail img {
    transform: scale(1.05);
}

.archive-post-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.post-category {
    display: inline-block;
    font-family: var(--font-ui), -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gold-champagne, #D4AF37);
    text-decoration: none;
    margin-bottom: 8px;
    transition: color 0.2s ease;
}

.post-category:hover {
    color: var(--gold-dark, #B8941F);
}

[data-theme="dark"] .post-category {
    color: var(--gold-champagne, #D4AF37);
}

.archive-post-title {
    font-family: var(--font-headline), Georgia, serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 12px;
}

.archive-post-title a {
    color: #1F2937;
    text-decoration: none;
    transition: color 0.2s ease;
}

.archive-post-title a:hover {
    color: var(--gold-champagne, #D4AF37);
}

[data-theme="dark"] .archive-post-title a {
    color: #F3F4F6;
}

[data-theme="dark"] .archive-post-title a:hover {
    color: var(--gold-champagne, #D4AF37);
}

.archive-post-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-ui), -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 13px;
    color: #6B7280;
    margin-bottom: 12px;
}

[data-theme="dark"] .archive-post-meta {
    color: #9CA3AF;
}

.archive-post-meta .meta-separator {
    color: #D1D5DB;
}

[data-theme="dark"] .archive-post-meta .meta-separator {
    color: #6B7280;
}

.archive-post-excerpt {
    font-family: var(--font-body), Georgia, serif;
    font-size: 15px;
    line-height: 1.6;
    color: #4B5563;
}

[data-theme="dark"] .archive-post-excerpt {
    color: #9CA3AF;
}

/* ============================================
   Pagination
   ============================================ */

.pagination {
    margin-top: 60px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    height: auto;
    padding: 0 16px;
    font-family: var(--font-ui), -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    background: #ffffff;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

[data-theme="dark"] .page-numbers {
    background: rgba(10, 22, 40, 0.6);
    border-color: rgba(212, 175, 55, 0.2);
    color: #D1D5DB;
}

.page-numbers:hover {
    background: var(--gold-champagne, #D4AF37);
    border-color: var(--gold-champagne, #D4AF37);
    color: #ffffff;
    transform: translateY(-2px);
}

[data-theme="dark"] .page-numbers:hover {
    background: var(--gold-champagne, #D4AF37);
    border-color: var(--gold-champagne, #D4AF37);
    color: var(--navy-deep, #0A1628);
}

.page-numbers.current {
    background: var(--gold-champagne, #D4AF37);
    border-color: var(--gold-champagne, #D4AF37);
    color: #ffffff;
}

[data-theme="dark"] .page-numbers.current {
    background: var(--gold-champagne, #D4AF37);
    border-color: var(--gold-champagne, #D4AF37);
    color: var(--navy-deep, #0A1628);
}

.page-numbers.dots {
    background: transparent;
    border: none;
    cursor: default;
}

.page-numbers.dots:hover {
    background: transparent;
    color: #374151;
    transform: none;
}

[data-theme="dark"] .page-numbers.dots:hover {
    color: #D1D5DB;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 1200px) {
    .archive-page .container {
        grid-template-columns: 1fr;
        padding: 40px 30px;
    }
    
    .hero-post-thumbnail {
        height: 450px;
    }
    
    .hero-post-overlay {
        padding: 40px;
    }
    
    .hero-post-title {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .archive-page .container {
        padding: 30px 20px;
    }
    
    .page-title {
        font-size: 28px;
    }
    
    .hero-post-thumbnail {
        height: 400px;
    }
    
    .hero-post-overlay {
        padding: 32px;
    }
    
    .hero-post-title {
        font-size: 30px;
    }
    
    .archive-posts-wrapper .archive-post {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .archive-post-thumbnail {
        height: 240px;
    }
}

@media (max-width: 640px) {
    .archive-page .container {
        padding: 24px 16px;
    }
    
    .page-header {
        margin-bottom: 24px;
    }
    
    .page-title {
        font-size: 24px;
    }
    
    .hero-post-thumbnail {
        height: 320px;
        border-radius: 12px;
    }
    
    .hero-post-overlay {
        padding: 24px;
    }
    
    .hero-category {
        font-size: 10px;
        padding: 5px 12px;
    }
    
    .hero-post-title {
        font-size: 24px;
    }
    
    .hero-post-meta {
        font-size: 12px;
        gap: 8px;
    }
    
    .hero-post-excerpt {
        font-size: 14px;
    }
    
    .archive-post-title {
        font-size: 20px;
    }
    
    .archive-posts-wrapper {
        gap: 24px;
    }
}

@media (max-width: 480px) {
    .archive-page .container {
        padding: 20px 12px;
    }
    
    .hero-post-content {
        max-width: 100%;
        padding: 0 12px;
    }
    
    .page-title {
        font-size: 22px;
    }
    
    .hero-post-thumbnail {
        height: 280px;
    }
    
    .hero-post-overlay {
        padding: 20px;
    }
    
    .hero-post-title {
        font-size: 22px;
        line-height: 1.3;
    }
    
    .archive-post-title {
        font-size: 18px;
    }
}

@media (max-width: 375px) {
    .archive-page .container {
        padding: 16px 12px;
    }
    
    .hero-post-content {
        max-width: 100%;
        padding: 0 8px;
    }
    
    .page-title {
        font-size: 20px;
    }
    
    .hero-post-thumbnail {
        height: 260px;
    }
    
    .hero-post-overlay {
        padding: 16px;
    }
    
    .hero-post-title {
        font-size: 20px;
        line-height: 1.3;
    }
    
    .hero-post-excerpt {
        font-size: 13px;
    }
    
    .archive-post-title {
        font-size: 16px;
    }
}

@media (max-width: 320px) {
    .archive-page .container {
        padding: 12px 24px;
    }
    
    .hero-post-content {
        max-width: 100%;
        margin: auto;
    }
    
    .page-title {
        font-size: 18px;
    }
    
    .hero-post-thumbnail {
        height: 240px;
        border-radius: 8px;
    }
    
    .hero-post-overlay {
        padding: 12px;
    }
    
    .hero-category {
        font-size: 8px;
        padding: 4px 8px;
    }
    
    .hero-post-title {
        font-size: 18px;
        line-height: 1.3;
    }
    
    .hero-post-meta {
        font-size: 10px;
        gap: 6px;
    }
    
    .hero-post-excerpt {
        font-size: 12px;
        line-height: 1.5;
    }
    
    .archive-post-title {
        font-size: 15px;
        line-height: 1.3;
    }
    
    .archive-posts-wrapper {
        gap: 16px;
    }
}
