/* On This Day Page Styles */

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

/* Navigation styling to match journal */
.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;
}

/* Main content area */
.onthisday-main {
    padding: 30px 0;
}

.onthisday-header {
    text-align: center;
    margin-bottom: 50px;
    padding: 20px;
}

.onthisday-header h1 {
    font-size: 36px;
    font-weight: 300;
    margin-bottom: 10px;
    color: #fff;
}

.onthisday-header .lead {
    font-size: 28px;
    color: #888;
    font-weight: 300;
}

/* Year sections */
.year-section {
    margin-bottom: 50px;
}

.year-header {
    font-size: 48px;
    font-weight: 200;
    color: #666;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #444;
}

.year-images {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-start;
}

/* Featured (first) image */
.featured-image {
    width: 100%;
    margin-bottom: 15px;
    background-color: #363636;
    border-radius: 4px;
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
}

.image-caption {
    padding: 15px;
    margin: 0;
    color: #aaa;
    font-size: 14px;
    line-height: 1.5;
}

/* Thumbnail images */
.thumb-link {
    display: block;
    flex: 0 0 auto;
    border-radius: 3px;
    overflow: hidden;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.thumb-link:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.thumb-image {
    display: block;
    width: auto;
    max-width: 150px;
    height: auto;
    max-height: 100px;
}

/* No content message */
.no-content {
    text-align: center;
    padding: 60px 20px;
}

.no-content p {
    font-size: 24px;
    color: #666;
    margin-bottom: 10px;
}

.no-content .sub-text {
    font-size: 16px;
    color: #555;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .onthisday-header h1 {
        font-size: 28px;
    }
    
    .onthisday-header .lead {
        font-size: 22px;
    }
    
    .year-header {
        font-size: 36px;
    }
    
    .thumb-image {
        max-width: 100px;
        max-height: 70px;
    }
}

@media (max-width: 480px) {
    .year-header {
        font-size: 28px;
    }
    
    .thumb-image {
        max-width: 80px;
        max-height: 60px;
    }
}
