/* Clean, minimal styles for Anton de Kom timeline */

/* Surinamese colors */
:root {
    --suriname-red: #ce1126;
    --suriname-white: #ffffff;
    --suriname-blue: #003082;
    --suriname-green: #00a86b;
    --suriname-gold: #ffd700;
}

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

body {
    font-family: 'Georgia', serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    scroll-behavior: smooth;
}

/* Language switcher */
.language-switcher {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    display: flex;
    gap: 10px;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--suriname-gold);
    color: var(--suriname-gold);
    padding: 8px 12px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.lang-btn:hover,
.lang-btn.active {
    background: var(--suriname-gold);
    color: #000;
}

/* Skip navigation for accessibility */
.skip-nav {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--suriname-red);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 1001;
}

.skip-nav:focus {
    top: 6px;
}

/* Main container */
.story-container {
    scroll-snap-type: y mandatory;
    height: 100vh;
    overflow-y: scroll;
}

.story-section {
    scroll-snap-align: start;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 2rem;
}

.container {
    max-width: 800px;
    width: 100%;
    text-align: center;
}

/* Hero section */
.hero-section {
    background: linear-gradient(135deg, 
        rgba(206, 17, 38, 0.8) 0%,
        rgba(255, 215, 0, 0.6) 50%,
        rgba(0, 168, 107, 0.8) 100%);
    color: white;
}

.hero-section h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-style: italic;
}

.intro {
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto;
}

/* Timeline sections */
.timeline-section {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    position: relative;
}

.timeline-section:nth-child(even) {
    background: rgba(0, 48, 130, 0.8);
}

.section-number {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: var(--suriname-gold);
    color: #000;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
}

.timeline-section h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--suriname-gold);
}

/* Timeline cards */
.timeline-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
    text-align: left;
    transition: transform 0.3s ease;
}

.timeline-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.card-date {
    background: var(--suriname-red);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    font-weight: bold;
}

.card-location {
    color: var(--suriname-gold);
    font-size: 0.9rem;
}

.timeline-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--suriname-gold);
}

.timeline-card p {
    font-size: 1.1rem;
    line-height: 1.7;
}

/* Hero GIF section */
.hero-gif-section {
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-gif-container {
    text-align: center;
}

.hero-gif {
    max-width: 100%;
    max-height: 80vh;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* References section */
.references-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    color: white;
}

.references-section h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--suriname-gold);
}

.references-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.reference-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 10px;
    padding: 1.5rem;
    text-align: left;
}

.reference-author {
    font-weight: bold;
    color: var(--suriname-gold);
    margin-bottom: 0.5rem;
}

.reference-title {
    font-style: italic;
    margin-bottom: 0.5rem;
}

.reference-details a {
    color: var(--suriname-blue);
    text-decoration: none;
}

.reference-details a:hover {
    color: var(--suriname-gold);
    text-decoration: underline;
}

.project-attribution {
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid var(--suriname-gold);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
}

.project-attribution a {
    color: var(--suriname-gold);
    text-decoration: none;
}

.project-attribution a:hover {
    text-decoration: underline;
}

/* Navigation dots */
.navigation-dots {
    position: fixed;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 1000;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid var(--suriname-gold);
    transition: all 0.3s ease;
    display: block;
}

.dot:hover,
.dot.active {
    background: var(--suriname-gold);
    transform: scale(1.2);
}

/* Responsive design */
@media (max-width: 1200px) {
    .timeline-section {
        padding: 3rem 2rem;
    }
    
    .timeline-card {
        max-width: 700px;
    }
}

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1.2rem;
    }
    
    .intro {
        font-size: 1rem;
    }
    
    .timeline-section {
        padding: 2rem 1rem;
    }
    
    .timeline-section h2 {
        font-size: 2rem;
    }
    
    .timeline-card {
        padding: 1.5rem;
        margin: 0 auto;
    }
    
    .card-header {
        flex-direction: column;
        text-align: center;
    }
    
    .navigation-dots {
        right: 1rem;
        gap: 0.8rem;
    }
    
    .dot {
        width: 10px;
        height: 10px;
    }
    
    .language-switcher {
        top: 10px;
        left: 10px;
        gap: 5px;
    }
    
    .lang-btn {
        padding: 6px 10px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 2rem 1rem;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .timeline-section {
        padding: 1.5rem 0.5rem;
    }
    
    .timeline-section h2 {
        font-size: 1.8rem;
    }
    
    .timeline-card {
        padding: 1rem;
        font-size: 0.9rem;
    }
    
    .card-back img {
        max-width: 100%;
        height: auto;
    }
    
    .navigation-dots {
        right: 0.5rem;
        gap: 0.6rem;
    }
    
    .dot {
        width: 8px;
        height: 8px;
        border-width: 1px;
    }
    
    .language-switcher {
        top: 5px;
        left: 5px;
        gap: 3px;
    }
    
    .lang-btn {
        padding: 4px 8px;
        font-size: 0.8rem;
    }
    
    .references-section {
        padding: 2rem 1rem;
    }
    
    .reference-item {
        padding: 1rem;
        font-size: 0.9rem;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .story-container {
        scroll-behavior: auto;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .timeline-card {
        border: 2px solid white;
        background: rgba(0, 0, 0, 0.9);
    }
    
    .reference-item {
        border: 2px solid white;
        background: rgba(0, 0, 0, 0.9);
    }
}

/* Focus styles for keyboard navigation */
.lang-btn:focus,
.dot:focus,
.skip-nav:focus {
    outline: 3px solid var(--suriname-gold);
    outline-offset: 2px;
}

/* Screen reader only class */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
