/* Archive Page Styles */

body {
    background-color: #1a1a1a;
    color: #fff;
    padding-top: 50px;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* Navigation styling */
.navbar-inverse {
    background-color: #1a1a1a;
    border-color: #000;
}

.navbar-inverse .navbar-brand {
    color: #fff;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 300;
    font-size: 18px;
}

.navbar-inverse .navbar-nav > li > a {
    color: #888;
    font-weight: 300;
}

.navbar-inverse .navbar-nav > li > a:hover,
.navbar-inverse .navbar-nav > li > a:focus {
    color: #fff;
    background-color: transparent;
}

.navbar-inverse .navbar-nav > .active > a,
.navbar-inverse .navbar-nav > .active > a:hover,
.navbar-inverse .navbar-nav > .active > a:focus {
    color: #fff;
    background-color: #000;
}

/* Hero section with scrolling thumbnails */
.archive-hero {
    position: relative;
    height: 350px;
    overflow: hidden;
    background: #111;
}

.archive-hero-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 4px;
    animation: scrollThumbs 60s linear infinite;
}

.hero-thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.hero-thumb:hover {
    opacity: 1;
}

@keyframes scrollThumbs {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}

.archive-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(26, 26, 26, 0) 0%,
        rgba(26, 26, 26, 0) 40%,
        rgba(26, 26, 26, 0.6) 70%,
        rgba(26, 26, 26, 1) 100%
    );
}

.archive-hero-content {
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 2;
}

.archive-hero-content h1 {
    font-size: 48px;
    font-weight: 200;
    margin: 0 0 10px 0;
    letter-spacing: 2px;
}

.archive-hero-content p {
    font-size: 18px;
    color: #888;
    margin: 0 0 15px 0;
}

.archive-stats {
    font-size: 14px;
    color: #666;
}

.archive-stats .stat strong {
    color: #6db3f2;
}

.stat-divider {
    margin: 0 10px;
}

/* Year navigation */
.year-nav-wrapper {
    background: #222;
    position: sticky;
    top: 50px;
    z-index: 100;
    border-bottom: 1px solid #333;
}

.year-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.year-nav::-webkit-scrollbar {
    height: 4px;
}

.year-nav::-webkit-scrollbar-track {
    background: #333;
}

.year-nav::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 2px;
}

.year-nav-label {
    color: #666;
    font-size: 13px;
    white-space: nowrap;
    margin-right: 5px;
}

.year-btn {
    display: inline-block;
    padding: 6px 14px;
    background: #333;
    color: #999;
    border-radius: 20px;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.year-btn:hover {
    background: #444;
    color: #fff;
    text-decoration: none;
}

.year-btn.active {
    background: #6db3f2;
    color: #000;
}

/* Main content area */
.archive-main {
    padding: 40px 0 80px;
}

/* Year header */
.archive-year-header {
    padding: 40px 0 20px;
    margin-bottom: 10px;
    border-bottom: 1px solid #333;
}

.year-number {
    font-size: 64px;
    font-weight: 100;
    color: #333;
    letter-spacing: 4px;
}

/* Month header */
.archive-month-header {
    font-size: 14px;
    font-weight: 500;
    color: #6db3f2;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 25px 0 15px;
}

/* Entry cards */
.archive-entry {
    margin-bottom: 20px;
}

.archive-entry-link {
    display: flex;
    background: #252525;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.archive-entry-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    text-decoration: none;
    color: inherit;
}

/* Entry image */
.archive-entry-images {
    flex-shrink: 0;
    width: 180px;
    height: 140px;
    overflow: hidden;
    background: #1a1a1a;
}

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

.archive-entry-link:hover .entry-image {
    transform: scale(1.08);
}

/* Entry content */
.archive-entry-content {
    flex: 1;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.entry-title {
    font-size: 20px;
    font-weight: 400;
    margin: 0 0 8px 0;
    color: #fff;
    line-height: 1.3;
}

.entry-date {
    font-size: 13px;
    color: #666;
    margin-bottom: 12px;
}

.entry-excerpt {
    font-size: 14px;
    color: #999;
    line-height: 1.6;
    margin: 0;
    flex-grow: 1;
}

.read-more {
    font-size: 13px;
    color: #6db3f2;
    margin-top: 12px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.archive-entry-link:hover .read-more {
    opacity: 1;
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #333;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #6db3f2;
    color: #000;
    text-decoration: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .archive-hero {
        height: 250px;
    }
    
    .archive-hero-content h1 {
        font-size: 32px;
    }
    
    .hero-thumb {
        width: 60px;
        height: 60px;
    }
    
    .year-number {
        font-size: 42px;
    }
    
    .archive-entry-images {
        width: 120px;
        height: 100px;
    }
    
    .entry-title {
        font-size: 16px;
    }
    
    .archive-entry-content {
        padding: 12px 15px;
    }
    
    .entry-excerpt {
        font-size: 13px;
        -webkit-line-clamp: 2;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .read-more {
        display: none;
    }
}

@media (max-width: 480px) {
    .archive-entry-images {
        width: 100px;
        height: 80px;
    }
    
    .year-nav-wrapper {
        position: relative;
        top: 0;
    }
    
    .entry-excerpt {
        display: none;
    }
}
