/* Archive Page Specific Styles */

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 0;
}

.main-nav {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 a {
    color: white;
    text-decoration: none;
    font-size: 2rem;
    font-weight: 700;
}

.tagline {
    font-size: 0.9rem;
    opacity: 0.8;
    font-style: italic;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 10px 15px;
    border-radius: 20px;
}

.nav-menu a:hover,
.nav-menu a.active {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

/* Archive Main */
.archive-main {
    background: white;
}

/* Archive Hero */
.archive-hero {
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f2ff 100%);
    padding: 80px 0;
    text-align: center;
}

.archive-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 700;
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.archive-hero .lead {
    font-size: 1.3rem;
    color: #666;
    line-height: 1.7;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.archive-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    margin-top: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.stat {
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.stat:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 5px;
}

.stat-label {
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Archive Filters */
.archive-filters {
    padding: 60px 0;
    background: white;
}

.filter-controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.filter-group label {
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
}

.filter-group select,
.filter-group input {
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.filter-group select:focus,
.filter-group input:focus {
    border-color: #667eea;
    outline: none;
    box-shadow: 0 0 0 3px rgba(102,126,234,0.1);
}

.btn-secondary {
    background: transparent;
    color: #667eea;
    padding: 12px 25px;
    border: 2px solid #667eea;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: end;
}

.btn-secondary:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

/* Archive Content */
.archive-content {
    padding: 80px 0;
    background: #f8f9ff;
}

.archive-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 60px;
}

/* Archive Sidebar */
.archive-sidebar {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.sidebar-section {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.sidebar-section h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.month-browser {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.year-section h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #333;
    padding-bottom: 5px;
    border-bottom: 2px solid #f0f2ff;
}

.year-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.year-section li {
    margin-bottom: 8px;
}

.year-section a {
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: block;
    padding: 5px 10px;
    border-radius: 8px;
}

.year-section a:hover {
    color: #667eea;
    background: #f8f9ff;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    background: #f8f9ff;
    color: #667eea;
    padding: 6px 12px;
    border-radius: 15px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tag:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

.popular-posts {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.popular-post {
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f2ff;
}

.popular-post:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.popular-post h4 {
    font-size: 0.95rem;
    margin-bottom: 5px;
}

.popular-post a {
    color: #333;
    text-decoration: none;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.popular-post a:hover {
    color: #667eea;
}

.post-meta {
    font-size: 0.8rem;
    color: #999;
    font-style: italic;
}

/* Archive Posts */
.archive-posts {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.posts-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.posts-header h2 {
    font-size: 2rem;
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sort-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-controls label {
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
}

.sort-controls select {
    padding: 8px 12px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 0.9rem;
    background: white;
}

.posts-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.month-section h3 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: #333;
    padding-bottom: 10px;
    border-bottom: 3px solid #f0f2ff;
}

.posts-month {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.archive-post {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.archive-post:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.12);
}

.post-image {
    height: 200px;
    overflow: hidden;
}

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

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

.post-content {
    padding: 25px;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.post-date {
    color: #667eea;
    font-weight: 500;
    font-size: 0.9rem;
}

.post-category {
    background: #f8f9ff;
    color: #667eea;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.post-content h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

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

.post-content h4 a:hover {
    color: #667eea;
}

.post-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.post-tags .tag {
    background: #f0f2ff;
    color: #667eea;
    padding: 4px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Load More Section */
.load-more-section {
    text-align: center;
    padding: 40px 0;
}

.btn-primary {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(102,126,234,0.3);
}

.load-info {
    margin-top: 15px;
    color: #666;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .archive-hero h1 {
        font-size: 2.5rem;
    }
    
    .archive-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .filter-controls {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .archive-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .posts-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .posts-month {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .archive-hero h1 {
        font-size: 2rem;
    }
    
    .archive-stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .sidebar-section {
        padding: 20px;
    }
    
    .post-content {
        padding: 20px;
    }
}
