/* ============================================
   ARCHIVE PAGE - MINIMAL MANUAL STYLE
   ============================================ */

/* Reset and override parent theme styles */
body.archive,
body.blog,
body.category,
body.tag,
body.search {
    background: linear-gradient(135deg, #0a0e17 0%, #1a1f2e 100%) !important;
}

/* Override Bootstrap container styles */
.archive-main * {
    box-sizing: border-box;
}

.archive-main {
    min-height: 100vh;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #0a0e17 0%, #1a1f2e 100%);
    width: 100%;
    max-width: 100%;
}

.archive-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0;
}

/* ============================================
   HEADER
   ============================================ */

.archive-header {
    margin-bottom: 4rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid rgba(85, 221, 255, 0.1);
}

.archive-title {
    font-family: 'Inter', sans-serif !important;
    font-size: 2.5rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    margin: 0 0 1rem 0 !important;
    letter-spacing: -0.02em !important;
    line-height: 1.2 !important;
}

.archive-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 300;
}

/* ============================================
   YEAR GROUPS
   ============================================ */

.year-group {
    margin-bottom: 3rem;
}

.year-divider {
    font-family: 'Inter', sans-serif !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    color: #55ddff !important;
    margin: 0 0 2rem 0 !important;
    padding-bottom: 0.5rem !important;
    border-bottom: 1px solid rgba(85, 221, 255, 0.2) !important;
    line-height: 1.4 !important;
}

/* ============================================
   ARTICLES LIST
   ============================================ */

.articles-list {
    position: relative;
}

.article-item {
    display: grid !important;
    grid-template-columns: 80px 1fr !important;
    gap: 1.5rem !important;
    padding: 1.5rem 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    transition: all 0.3s ease !important;
    background: transparent !important;
    border-left: none !important;
    border-right: none !important;
    border-top: none !important;
    margin: 0 !important;
}

.article-item:hover {
    padding-left: 0.5rem;
    background: rgba(85, 221, 255, 0.02);
    border-left: 2px solid #55ddff;
    margin-left: -0.5rem;
}

/* ============================================
   DATE
   ============================================ */

.article-date {
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
    padding-top: 0.25rem;
}

/* ============================================
   CONTENT
   ============================================ */

.article-content {
    min-width: 0;
}

.article-title {
    margin: 0 0 0.5rem 0 !important;
    font-size: 1.25rem !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
}

.article-title a {
    color: #ffffff !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
    position: relative !important;
}

.article-title a:hover {
    color: #55ddff;
}

.article-title a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #55ddff;
    transition: width 0.3s ease;
}

.article-title a:hover::after {
    width: 100%;
}

/* ============================================
   EXCERPT
   ============================================ */

.article-excerpt {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.75rem;
    font-weight: 300;
}

/* ============================================
   META
   ============================================ */

.article-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.813rem;
    color: rgba(255, 255, 255, 0.4);
}

.article-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(85, 221, 255, 0.1);
    color: #55ddff;
    border-radius: 4px;
    font-weight: 500;
    font-family: 'Courier New', monospace;
}

.article-reading-time::before {
    content: '•';
    margin-right: 0.5rem;
    color: rgba(255, 255, 255, 0.2);
}

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

.pagination {
    margin-top: 4rem;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.pagination .nav-links {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.pagination a,
.pagination .current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 1rem;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.pagination a:hover {
    background: rgba(85, 221, 255, 0.1);
    border-color: #55ddff;
    color: #55ddff;
    transform: translateY(-2px);
}

.pagination .current {
    background: rgba(85, 221, 255, 0.15);
    border-color: #55ddff;
    color: #55ddff;
}

.pagination .prev,
.pagination .next {
    font-size: 1.2rem;
}

/* ============================================
   NO POSTS
   ============================================ */

.no-posts {
    text-align: center;
    padding: 4rem 2rem;
}

.no-posts p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.5);
}

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

@media (max-width: 768px) {
    .archive-main {
        padding: 2rem 1rem;
    }

    .archive-title {
        font-size: 2rem;
    }

    .archive-header {
        margin-bottom: 2rem;
    }

    .article-item {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        padding: 1.25rem 0;
    }

    .article-date {
        font-size: 0.75rem;
        opacity: 0.7;
    }

    .article-title {
        font-size: 1.1rem;
    }

    .article-meta {
        font-size: 0.75rem;
    }

    .pagination a,
    .pagination .current {
        min-width: 36px;
        height: 36px;
        padding: 0 0.75rem;
        font-size: 0.813rem;
    }
}

@media (max-width: 480px) {
    .archive-title {
        font-size: 1.75rem;
    }

    .year-divider {
        font-size: 0.75rem;
    }

    .article-title {
        font-size: 1rem;
    }

    .article-excerpt {
        font-size: 0.875rem;
    }
}
