/* History Page Styles */

.history-hero {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

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

.history-hero .hero-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #e74c3c;
}

.history-hero .hero-description {
    font-size: 1.15rem;
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.8;
}

.history-hero .hero-description strong {
    color: #e74c3c;
}

.history-hero .hero-description em {
    font-style: italic;
    color: #3498db;
}

/* Timeline Introduction */
.timeline-intro {
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
    padding: 2rem;
    background: #d1ecf1;
    border-left: 4px solid #17a2b8;
    border-radius: 8px;
}

.timeline-intro h2 {
    color: #17a2b8;
    margin-bottom: 1rem;
}

.timeline-intro p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #2c3e50;
}

/* Period Navigation */
.timeline-navigation {
    margin: 2rem 0 4rem;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.timeline-navigation h3 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

.period-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.period-link {
    padding: 0.75rem 1.5rem;
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    text-decoration: none;
    color: #2c3e50;
    font-weight: 600;
    transition: all 0.3s;
}

.period-link:hover,
.period-link.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

/* Timeline Container */
.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 0;
}

/* Vertical Timeline Spine */
.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #95a5a6 0%, #e74c3c 100%);
}

/* Period Sections */
.timeline-period {
    margin-bottom: 4rem;
    position: relative;
}

.period-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.period-header h2 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.period-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-wwii {
    background: #95a5a6;
    color: white;
}

.badge-80s {
    background: #3498db;
    color: white;
}

.badge-blair {
    background: #e74c3c;
    color: white;
}

.badge-modern {
    background: #f39c12;
    color: white;
}

.badge-britcard {
    background: #c0392b;
    color: white;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Timeline Events */
.timeline-event {
    position: relative;
    margin-bottom: 3rem;
    display: flex;
    align-items: flex-start;
}

.timeline-event:nth-child(odd) {
    flex-direction: row;
}

.timeline-event:nth-child(even) {
    flex-direction: row-reverse;
}

/* Event Marker (Date Circle) */
.event-marker {
    position: relative;
    z-index: 10;
    flex-shrink: 0;
    width: 120px;
    display: flex;
    justify-content: center;
}

.event-date {
    width: 80px;
    height: 80px;
    background: white;
    border: 4px solid #667eea;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1rem;
    color: #2c3e50;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
    padding: 0.5rem;
    line-height: 1.2;
}

/* Event Content */
.event-content {
    flex: 1;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin: 0 2rem;
    transition: all 0.3s;
}

.event-content:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.event-content h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.event-details p {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
    color: #34495e;
}

.event-details ul {
    list-style: none;
    padding-left: 0;
    margin: 1rem 0;
}

.event-details ul li {
    padding-left: 2rem;
    margin-bottom: 0.75rem;
    position: relative;
    line-height: 1.6;
}

.event-details ul li:before {
    content: "▸";
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Special Boxes */
.warning-box,
.success-box,
.info-box,
.danger-box,
.action-box,
.stats-box {
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 8px;
    border-left: 4px solid;
}

.warning-box {
    background: #fff3cd;
    border-color: #ffc107;
}

.warning-box strong {
    color: #856404;
}

.success-box {
    background: #d4edda;
    border-color: #28a745;
}

.success-box strong,
.success-box p strong {
    color: #155724;
}

.info-box {
    background: #d1ecf1;
    border-color: #17a2b8;
}

.info-box strong {
    color: #0c5460;
}

.danger-box {
    background: #f8d7da;
    border-color: #dc3545;
}

.danger-box strong,
.danger-box p strong {
    color: #721c24;
}

.action-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #764ba2;
}

.action-box h4 {
    color: white;
    margin-bottom: 1rem;
}

.action-box ul li {
    color: white;
}

.action-box ul li:before {
    color: white;
}

.action-box .cta-buttons {
    margin-top: 1.5rem;
}

.stats-box {
    background: #e8f4f8;
    border-color: #3498db;
}

.stats-box h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.stats-box ul li {
    font-weight: 600;
    color: #2c3e50;
}

.stats-box ul li:before {
    color: #3498db;
}

/* Blockquotes */
blockquote {
    background: #f8f9fa;
    border-left: 4px solid #667eea;
    padding: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #495057;
    border-radius: 4px;
}

blockquote p {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

cite {
    display: block;
    margin-top: 0.5rem;
    font-style: normal;
    font-weight: 600;
    color: #667eea;
    font-size: 0.95rem;
}

/* Current Event Highlight */
.current-event .event-content {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe5e5 100%);
    border: 3px solid #e74c3c;
}

.current-event .event-date {
    border-color: #e74c3c;
    background: #e74c3c;
    color: white;
    font-size: 1.1rem;
    animation: glow 2s infinite;
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(231, 76, 60, 0.5);
    }
    50% {
        box-shadow: 0 0 30px rgba(231, 76, 60, 0.8);
    }
}

.current-period {
    padding: 2rem;
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.05) 0%, rgba(192, 57, 43, 0.05) 100%);
    border-radius: 12px;
}

/* Lessons Learned Section */
.lessons-learned {
    max-width: 1000px;
    margin: 0 auto;
}

.lessons-learned h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #2c3e50;
    font-size: 2rem;
}

.lessons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.lesson-item {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.lesson-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.lesson-item h3 {
    color: #667eea;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.lesson-item p {
    line-height: 1.7;
    color: #2c3e50;
}

.lesson-item strong {
    color: #e74c3c;
}

/* History Conclusion */
.history-conclusion {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.history-conclusion h2 {
    color: #2c3e50;
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.conclusion-text {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #34495e;
}

.conclusion-quote {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    margin: 2rem 0;
    border: none;
    font-size: 1.5rem;
    font-weight: 600;
    border-radius: 12px;
}

.conclusion-quote p {
    margin: 0;
    font-style: normal;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.btn-tertiary {
    background: #6c757d;
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-tertiary:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .history-hero h1 {
        font-size: 2rem;
    }

    .history-hero .hero-subtitle {
        font-size: 1.2rem;
    }

    .history-hero .hero-description {
        font-size: 1rem;
    }

    /* Collapse timeline to single column on mobile */
    .timeline::before {
        left: 40px;
    }

    .timeline-event {
        flex-direction: row !important;
        padding-left: 0;
    }

    .event-marker {
        width: 80px;
    }

    .event-date {
        width: 60px;
        height: 60px;
        font-size: 0.85rem;
    }

    .event-content {
        margin: 0 0 0 1rem;
    }

    .period-links {
        flex-direction: column;
    }

    .period-link {
        width: 100%;
        text-align: center;
    }

    .lessons-grid {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-buttons .btn,
    .cta-buttons .btn-tertiary {
        width: 100%;
    }

    .timeline-navigation {
        padding: 1rem;
    }

    .period-header {
        padding: 1rem;
    }
}

@media print {
    .timeline-navigation,
    .cta-buttons,
    .action-box .cta-buttons {
        display: none;
    }

    .timeline::before {
        background: #333;
    }

    .event-content,
    .period-header,
    .lesson-item {
        box-shadow: none;
        border: 1px solid #ddd;
    }

    .history-hero {
        background: white;
        color: black;
        border-bottom: 3px solid #000;
    }
}
