/**
 * Richard F. Hanson WWII Story Website
 * Modern, readable design optimized for storytelling
 */

:root {
    --primary-color: #1a1a1a;
    --secondary-color: #8b4513;
    --accent-color: #d4af37;
    --text-color: #333;
    --text-light: #666;
    --bg-color: #fafafa;
    --bg-section: #ffffff;
    --border-color: #e0e0e0;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-hover: 0 4px 20px rgba(0,0,0,0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lato', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.7;
    font-size: 18px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.main-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #2d2d2d 100%);
    color: white;
    padding: 40px 0;
    box-shadow: var(--shadow);
}

.header-content {
    text-align: center;
}

.logo-container {
    margin-bottom: 20px;
}

.logo-link {
    display: inline-block;
    transition: transform 0.3s, opacity 0.3s;
}

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

.site-logo {
    height: 120px;
    width: auto;
    max-width: 100%;
    display: block;
    margin: 0 auto;
}

.site-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 10px;
}

.site-title a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.site-title a:hover {
    color: var(--accent-color);
}

.site-tagline {
    font-size: 1.1em;
    font-weight: 300;
    opacity: 0.9;
    font-style: italic;
    margin-bottom: 8px;
}

.logo-meaning {
    font-size: 0.9em;
    font-weight: 300;
    opacity: 0.8;
    font-style: italic;
    margin-top: 5px;
}

/* Navigation */
.main-nav {
    background-color: var(--bg-section);
    border-bottom: 2px solid var(--border-color);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.nav-menu {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
}

.nav-menu li {
    margin: 0;
}

.nav-menu a {
    display: block;
    padding: 18px 25px;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 400;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--secondary-color);
    border-bottom-color: var(--secondary-color);
    background-color: #f9f9f9;
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 300px);
    padding: 40px 0;
}

/* Story Chapter Styles */
.story-chapter {
    background-color: var(--bg-section);
    padding: 50px;
    margin: 30px 0;
    border-radius: 8px;
    box-shadow: var(--shadow);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.chapter-header {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
}

.chapter-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.chapter-subtitle {
    font-size: 1.2em;
    color: var(--text-light);
    font-style: italic;
    font-weight: 300;
}

.story-content {
    font-size: 1.1em;
    line-height: 1.9;
    color: var(--text-color);
}

.story-content p {
    margin-bottom: 25px;
    text-align: justify;
}

.story-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8em;
    color: var(--primary-color);
    margin-top: 40px;
    margin-bottom: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.story-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4em;
    color: var(--secondary-color);
    margin-top: 30px;
    margin-bottom: 15px;
}

.story-content blockquote {
    border-left: 4px solid var(--accent-color);
    padding-left: 25px;
    margin: 30px 0;
    font-style: italic;
    color: var(--text-light);
    font-size: 1.05em;
}

.story-content ul,
.story-content ol {
    margin: 20px 0 20px 30px;
}

.story-content li {
    margin-bottom: 10px;
}

/* Timeline Styles */
.timeline {
    position: relative;
    padding: 40px 0;
}

.timeline-item {
    background-color: var(--bg-section);
    padding: 30px;
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--secondary-color);
    transition: transform 0.3s, box-shadow 0.3s;
}

.timeline-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-hover);
}

.timeline-date {
    font-weight: 700;
    color: var(--secondary-color);
    font-size: 1.1em;
    margin-bottom: 10px;
}

.timeline-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.timeline-content {
    color: var(--text-color);
    line-height: 1.8;
}

/* Navigation between chapters */
.chapter-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid var(--border-color);
}

.chapter-nav a {
    display: inline-block;
    padding: 12px 25px;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s;
    font-weight: 400;
}

.chapter-nav a:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.chapter-nav .nav-prev::before {
    content: "← ";
}

.chapter-nav .nav-next::after {
    content: " →";
}

/* Homepage Styles */
.hero-section {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, rgba(26,26,26,0.9) 0%, rgba(45,45,45,0.9) 100%);
    color: white;
    margin-bottom: 50px;
    border-radius: 8px;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 3em;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.3em;
    font-weight: 300;
    margin-bottom: 30px;
    opacity: 0.95;
}

.hero-description {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1em;
    line-height: 1.8;
    opacity: 0.9;
}

.chapter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.chapter-card {
    background-color: var(--bg-section);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    text-decoration: none;
    color: inherit;
    display: block;
}

.chapter-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-left: 4px solid var(--secondary-color);
}

.chapter-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5em;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.chapter-card p {
    color: var(--text-light);
    font-size: 0.95em;
}

/* Footer */
.main-footer {
    background-color: var(--primary-color);
    color: white;
    padding: 40px 0;
    margin-top: 60px;
}

.footer-content {
    text-align: center;
}

.footer-content p {
    margin-bottom: 10px;
    opacity: 0.9;
}

.footer-note {
    font-size: 0.9em;
    font-style: italic;
    opacity: 0.8;
    margin-top: 15px;
}

.footer-source {
    margin-top: 15px;
    font-size: 0.85em;
}

.footer-source a {
    color: var(--accent-color);
    text-decoration: none;
}

.footer-source a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .site-logo {
        height: 80px;
    }
    
    .logo-meaning {
        font-size: 0.8em;
        padding: 0 10px;
    }
    
    .site-title {
        font-size: 1.8em;
    }
    
    .story-chapter {
        padding: 30px 20px;
    }
    
    .chapter-title {
        font-size: 2em;
    }
    
    .nav-menu {
        flex-direction: column;
    }
    
    .nav-menu a {
        border-bottom: 1px solid var(--border-color);
    }
    
    .chapter-nav {
        flex-direction: column;
        gap: 15px;
    }
    
    .chapter-nav a {
        text-align: center;
    }
    
    .hero-title {
        font-size: 2em;
    }
    
    .chapter-grid {
        grid-template-columns: 1fr;
    }
}

/* Screenplay-ready formatting */
.screenplay-format {
    font-family: 'Courier New', monospace;
    background-color: #f5f5f5;
    padding: 30px;
    border-radius: 5px;
    margin: 30px 0;
}

.scene-heading {
    font-weight: bold;
    text-transform: uppercase;
    margin: 20px 0 10px 0;
}

.action {
    margin: 15px 0;
    line-height: 1.6;
}

.character {
    text-align: center;
    font-weight: bold;
    margin: 20px 0 5px 0;
    text-transform: uppercase;
}

.dialogue {
    margin: 0 auto 15px auto;
    max-width: 65%;
    line-height: 1.6;
}

.parenthetical {
    margin: 0 auto;
    max-width: 50%;
    font-style: italic;
    padding-left: 20px;
}

/* Video Transcription Styles */
.video-transcriptions {
    margin-top: 40px;
}

.transcription-item {
    margin-bottom: 50px;
    padding-bottom: 30px;
}

.transcription-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.8em;
    color: var(--primary-color);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

.video-number {
    font-size: 0.7em;
    color: var(--text-light);
    font-weight: normal;
    margin-left: 10px;
}

.video-link {
    margin: 15px 0;
}

.youtube-link {
    display: inline-block;
    padding: 10px 20px;
    background-color: #c4302b;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s;
}

.youtube-link:hover {
    background-color: #a02620;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.video-description {
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 20px;
    padding-left: 15px;
    border-left: 3px solid var(--accent-color);
}

.transcription-content {
    background-color: #f9f9f9;
    padding: 25px;
    border-radius: 5px;
    margin-top: 20px;
    line-height: 1.9;
    white-space: pre-wrap;
}

.transcription-placeholder {
    color: var(--text-light);
    font-style: italic;
    padding: 20px;
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    border-radius: 4px;
}

.transcription-note {
    margin-top: 20px;
    padding: 15px;
    background-color: #e7f3ff;
    border-left: 4px solid #2196F3;
    border-radius: 4px;
    font-size: 0.95em;
}

.transcription-note ol {
    margin: 10px 0 10px 25px;
}

.transcription-note li {
    margin-bottom: 8px;
}

.transcription-divider {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 40px 0;
}

.transcription-footer {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid var(--border-color);
}

