/* Sacred Timeline Website Styles */

/* === TVA SACRED TIMELINE STYLES === */
* {
    box-sizing: border-box;
}

body {
    font-family: 'IBM Plex Mono', 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.5;
    color: #ffb347;
    background: #0a0a0a;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow-x: hidden;
}

/* TVA Orange Glow Effect */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 20%, rgba(255, 140, 0, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

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

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 600;
    color: #ffd700;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.7);
}

h1 { font-size: 2.2em; }
h2 { font-size: 1.8em; }
h3 { font-size: 1.4em; }

p {
    margin: 1em 0;
    color: #ffb347;
}

/* === TVA HEADER === */
.site-header {
    background: #0f0f0f;
    color: #ff8c00;
    padding: 1rem 0;
    border-bottom: 2px solid #ff8c00;
    border-top: 2px solid #ff8c00;
    position: relative;
}

/* TVA Scanline Effect */
.site-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.03) 2px,
        rgba(0, 0, 0, 0.03) 4px
    );
    pointer-events: none;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.site-branding h1 {
    font-size: 1.8em;
    margin: 0;
    color: #ffd700;
    text-shadow: 0 0 12px rgba(255, 215, 0, 0.9);
    font-family: 'IBM Plex Mono', monospace;
    font-weight: bold;
    letter-spacing: -0.02em;
}

.site-branding h1 a {
    color: inherit;
    text-decoration: none;
}

.site-branding h1 a:hover {
    text-shadow: 
        0 0 20px rgba(255, 215, 0, 1),
        0 0 35px rgba(255, 140, 0, 0.8),
        0 0 5px rgba(255, 20, 147, 0.4),
        2px 2px 4px rgba(0, 0, 0, 0.4);
}

.site-subtitle {
    color: #ff6347;
    font-size: 0.85em;
    margin: 0.2rem 0 0 0;
    font-family: 'IBM Plex Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 400;
    text-shadow: 0 0 5px rgba(255, 99, 71, 0.8);
}

.site-navigation {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.nav-link {
    color: #ffb347;
    text-decoration: none;
    font-weight: 500;
    font-family: 'IBM Plex Mono', monospace;
    text-transform: uppercase;
    font-size: 0.9em;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    padding: 0.6rem 1.2rem;
    border-radius: 0;
    border: 1px solid rgba(26, 15, 10, 0.3);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(2px);
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: #ff1493;
    background: rgba(26, 15, 10, 0.6);
    box-shadow: 
        inset 0 0 10px rgba(255, 20, 147, 0.4),
        0 2px 8px rgba(255, 140, 0, 0.3);
    text-shadow: 0 0 10px rgba(255, 20, 147, 0.9);
}

/* TVA Button Glow Effect */
.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 20, 147, 0.1) 50%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-link:hover::before {
    opacity: 1;
}

/* === TVA MAIN CONTENT === */
.site-content {
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
    position: relative;
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
    border-bottom: 3px solid #ffd700;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.08) 0%, transparent 100%);
    border-radius: 0;
    box-shadow: 
        0 2px 20px rgba(255, 140, 0, 0.15),
        inset 0 1px 0 rgba(255, 215, 0, 0.3);
}

.page-header h1 {
    margin-bottom: 0.5rem;
    color: #ffd700;
    font-family: 'IBM Plex Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-shadow: 
        0 0 10px rgba(255, 140, 45, 0.6),
        0 0 20px rgba(255, 140, 45, 0.3);
}

.page-subtitle {
    font-size: 1.1em;
    color: #8b4513;
    font-family: 'IBM Plex Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0;
    font-weight: 400;
}

/* === TVA TERMINAL INTERFACE === */
.tva-terminal {
    background: #0a0a0a;
    border: 3px solid #ff8c00;
    box-shadow: 
        0 0 30px rgba(255, 140, 45, 0.4),
        inset 0 0 20px rgba(255, 140, 45, 0.05);
    font-family: 'IBM Plex Mono', monospace;
    margin: 3rem 0;
    position: relative;
}

/* Terminal Header */
.terminal-header {
    background: linear-gradient(135deg, #1a0f0a 0%, #2d1b0f 100%);
    border-bottom: 2px solid #ff8c00;
    padding: 1rem 1.5rem;
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.terminal-title {
    color: #ff8c00;
    font-weight: bold;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 8px rgba(255, 140, 45, 0.6);
}

.terminal-stats {
    color: #d2691e;
    margin-bottom: 0.3rem;
}

.system-info {
    color: #8b4513;
    font-size: 0.9em;
}

.separator {
    color: #5a3219;
    margin: 0 0.8rem;
}

.warning {
    color: #ff4500;
    text-shadow: 0 0 5px rgba(255, 69, 0, 0.8);
    animation: pulse 2s infinite;
}

.success {
    color: #32cd32;
    text-shadow: 0 0 5px rgba(50, 205, 50, 0.6);
}

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

/* Terminal Controls */
.terminal-controls {
    background: #111;
    border-bottom: 1px solid #ff8c00;
    padding: 1rem 1.5rem;
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    align-items: center;
}

.control-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.control-group label {
    color: #d2691e;
    font-size: 0.8em;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 0.05em;
}

.terminal-input, .terminal-select {
    background: #1a0f0a;
    border: 1px solid #8b4513;
    color: #ff8c00;
    padding: 0.4rem 0.8rem;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.85em;
    transition: all 0.3s ease;
}

.terminal-input:focus, .terminal-select:focus {
    border-color: #ff8c00;
    outline: none;
    box-shadow: 0 0 8px rgba(255, 140, 45, 0.4);
}

.terminal-input::placeholder {
    color: #5a3219;
    opacity: 1;
}

/* Terminal Checkbox Styling */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.8em;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.terminal-checkbox {
    opacity: 0;
    position: absolute;
    width: 0;
    height: 0;
}

.checkbox-text {
    color: #d2691e;
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 500;
    transition: all 0.3s ease;
    user-select: none;
}

.terminal-checkbox:checked + .checkbox-text {
    color: #ff8c00;
    text-shadow: 0 0 5px rgba(255, 140, 45, 0.6);
}

.terminal-checkbox:checked + .checkbox-text:before {
    content: "☑";
}

.checkbox-text:before {
    content: "☐";
    margin-right: 0.3rem;
    font-size: 1.1em;
}

.checkbox-label:hover .checkbox-text {
    color: #ff8c00;
    text-shadow: 0 0 3px rgba(255, 140, 45, 0.4);
}

/* Timeline Stream */
.timeline-stream {
    background: #0f0f0f;
}

.stream-header {
    background: #1a0f0a;
    color: #d2691e;
    padding: 0.8rem 1.5rem;
    border-bottom: 1px solid #ff8c00;
    display: grid;
    grid-template-columns: 120px 200px 1fr 100px;
    gap: 1rem;
    font-weight: 600;
    font-size: 0.8em;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.event-log {
    max-height: 50vh;
    overflow-y: auto;
    border-bottom: 1px solid #ff8c00;
    
    /* Custom Scrollbar */
    scrollbar-width: thin;
    scrollbar-color: #ff8c00 #1a0f0a;
}

.event-log::-webkit-scrollbar {
    width: 8px;
}

.event-log::-webkit-scrollbar-track {
    background: #1a0f0a;
}

.event-log::-webkit-scrollbar-thumb {
    background: #ff8c00;
    border-radius: 0;
}

.event-log::-webkit-scrollbar-thumb:hover {
    background: #ffa500;
}

/* Event Rows */
.event-row {
    display: grid;
    grid-template-columns: 120px 200px 1fr 100px;
    gap: 1rem;
    padding: 0.6rem 1.5rem;
    border-bottom: 1px solid rgba(255, 140, 45, 0.1);
    color: #d2691e;
    font-size: 0.85em;
    transition: all 0.3s ease;
    cursor: pointer;
    
    /* Subtle scanlines */
    background: linear-gradient(
        transparent 50%,
        rgba(255, 140, 45, 0.02) 50%
    );
    background-size: 100% 2px;
}

.event-row:hover {
    background: rgba(255, 140, 45, 0.08);
    color: #ff8c00;
    text-shadow: 0 0 5px rgba(255, 140, 45, 0.4);
}

.event-time {
    color: #ffa500;
    font-weight: 600;
    font-family: 'IBM Plex Mono', monospace;
}

.event-type {
    color: #ff8c00;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9em;
}

.event-desc {
    color: #d2691e;
    line-height: 1.3;
}

.event-status {
    text-align: center;
    font-weight: 600;
    font-size: 0.8em;
}

.event-status.verified {
    color: #32cd32;
    text-shadow: 0 0 5px rgba(50, 205, 50, 0.4);
}

.event-status.variant {
    color: #ff4500;
    text-shadow: 0 0 5px rgba(255, 69, 0, 0.4);
}

.event-status.processing {
    color: #1e90ff;
    text-shadow: 0 0 5px rgba(30, 144, 255, 0.4);
    animation: spin 2s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Stream Footer */
.stream-footer {
    background: #1a0f0a;
    padding: 1rem 1.5rem;
    font-size: 0.8em;
    color: #8b4513;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.access-full {
    color: #ff8c00;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.access-full:hover {
    color: #ffa500;
    text-shadow: 0 0 8px rgba(255, 140, 45, 0.6);
}

.get-started {
    text-align: center;
    margin: 4rem 0;
    padding: 3rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
}

/* === BUTTONS === */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: background 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: #2980b9;
    color: white;
}

.btn-primary {
    background: #e74c3c;
}

.btn-primary:hover {
    background: #c0392b;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9em;
}

/* === TIMELINE STYLES === */
.timeline-container {
    position: relative;
}

.timeline-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.view-options, .filter-options {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.search-input, .filter-select {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.search-input {
    width: 300px;
}

.timeline-nav {
    background: white;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    position: sticky;
    top: 20px;
    z-index: 100;
}

.nav-sections {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.nav-section {
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-section.cosmic { background: #1f1f2e; color: white; }
.nav-section.geological { background: #8b4513; color: white; }
.nav-section.ancient { background: #b8860b; color: white; }
.nav-section.classical { background: #4169e1; color: white; }
.nav-section.medieval { background: #800080; color: white; }
.nav-section.modern { background: #228b22; color: white; }

.nav-section:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* === TIMELINE CONTENT === */
.timeline-section {
    margin-bottom: 3rem;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.timeline-section h2 {
    background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
    color: white;
    padding: 1.5rem 2rem;
    margin: 0;
    cursor: pointer;
    position: relative;
}

.timeline-section h2:after {
    content: '▼';
    position: absolute;
    right: 2rem;
    transition: transform 0.3s ease;
}

.timeline-section.collapsed h2:after {
    transform: rotate(-90deg);
}

.timeline-content {
    padding: 2rem;
}

.timeline-section.collapsed .timeline-content {
    display: none;
}

.timeline-event {
    margin: 1.5rem 0;
    padding: 1rem;
    border-left: 4px solid #3498db;
    background: #f8f9fa;
    border-radius: 0 8px 8px 0;
    transition: all 0.3s ease;
}

.timeline-event:hover {
    background: #e3f2fd;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.timeline-event strong {
    color: #2c3e50;
    font-weight: 600;
}

/* === REFERENCE SYSTEM === */
a[href^="["], .reference-link {
    background: #3498db;
    color: white;
    text-decoration: none;
    padding: 0.1rem 0.4rem;
    border-radius: 3px;
    font-size: 0.8em;
    margin: 0 0.1rem;
    font-weight: 500;
    transition: background 0.3s ease;
}

a[href^="["]:hover, .reference-link:hover {
    background: #2980b9;
    cursor: pointer;
}

.reference-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 400px;
    height: 100vh;
    background: white;
    box-shadow: -5px 0 15px rgba(0,0,0,0.2);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 1000;
}

.reference-panel:not(.hidden) {
    transform: translateX(0);
}

.panel-header {
    padding: 1.5rem;
    background: #2c3e50;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.5em;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.panel-content {
    padding: 2rem;
    overflow-y: auto;
    height: calc(100% - 80px);
}

.reference-item {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #eee;
}

.ref-number {
    background: #e74c3c;
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    font-weight: bold;
    margin-right: 1rem;
}

.ref-title {
    font-weight: 600;
    margin: 0.5rem 0;
}

.ref-details {
    color: #7f8c8d;
    font-size: 0.9em;
}

.ref-link {
    color: #3498db;
    text-decoration: none;
    font-size: 0.9em;
}

/* Highlighted references */
.highlighted {
    background: #fff3cd !important;
    animation: highlight 2s ease-out;
}

@keyframes highlight {
    0% { background: #ffeaa7 !important; }
    100% { background: #fff3cd !important; }
}

/* === FOOTER === */
.site-footer {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 2rem 0;
    margin-top: 4rem;
}

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

.footer-info p {
    margin: 0.5rem 0;
}

.footer-subtitle {
    color: #bdc3c7;
    font-style: italic;
}

.footer-links {
    margin: 1.5rem 0;
}

.footer-links a {
    color: #3498db;
    text-decoration: none;
    margin: 0 0.5rem;
}

.footer-links a:hover {
    color: #5dade2;
}

.footer-links span {
    color: #7f8c8d;
    margin: 0 0.5rem;
}

.footer-stats {
    font-size: 0.9em;
    color: #bdc3c7;
    margin-top: 1rem;
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .timeline-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .view-options, .filter-options {
        justify-content: center;
    }
    
    .search-input {
        width: 100%;
        max-width: 300px;
    }
    
    .reference-panel {
        width: 100%;
    }
    
    .timeline-sections {
        grid-template-columns: 1fr;
    }
    
    .nav-sections {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 16px;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .timeline-event {
        padding: 0.8rem;
        margin: 1rem 0;
    }
    
    .site-navigation {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }
    
    .nav-link {
        text-align: center;
    }
}

/* === FULL PAGE TERMINAL INTERFACE === */

/* Full Page Terminal Container */
.tva-terminal.full-page {
    background: #0a0a0a;
    border: 2px solid #ff8c00;
    border-radius: 0;
    box-shadow: none;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    width: 100%;
}

/* Clickable Event Rows */
.event-row.clickable {
    cursor: pointer;
    transition: all 0.2s ease;
}

.event-row.clickable:hover {
    background: rgba(255, 140, 45, 0.12) !important;
    color: #ffa500 !important;
    text-shadow: 0 0 8px rgba(255, 140, 45, 0.6) !important;
    transform: translateX(4px);
}

.event-row.clickable:hover .event-desc {
    color: #ffa500 !important;
}

.event-row.clickable:hover .event-time {
    color: #fff !important;
}

.event-row.clickable:hover .event-type {
    color: #fff !important;
}

/* Load More Button */
.load-more-btn {
    background: transparent;
    border: 1px solid #ff8c00;
    color: #ff8c00;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.85em;
    padding: 0.5rem 1rem;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
}

.load-more-btn:hover {
    background: #ff8c00;
    color: #0a0a0a;
    text-shadow: none;
    box-shadow: 0 0 10px rgba(255, 140, 45, 0.6);
}

/* Terminal Menu */
.terminal-menu {
    background: #111;
    border-top: 1px solid #ff8c00;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}

.menu-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.menu-label {
    color: #ff8c00;
    font-weight: bold;
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.3rem;
}

.terminal-link {
    color: #d2691e;
    text-decoration: none;
    font-size: 0.9em;
    font-family: 'IBM Plex Mono', monospace;
    transition: all 0.3s ease;
    padding: 0.2rem 0;
}

.terminal-link:hover {
    color: #ff8c00;
    text-shadow: 0 0 5px rgba(255, 140, 45, 0.6);
    transform: translateX(3px);
}

.status-item {
    color: #8b4513;
    font-size: 0.85em;
    font-family: 'IBM Plex Mono', monospace;
}

/* Terminal Footer */
.terminal-footer {
    background: #0f0f0f;
    border-top: 2px solid #ff8c00;
    padding: 1rem;
}

.footer-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: 0.3rem 0;
    font-size: 0.8em;
    color: #8b4513;
    font-family: 'IBM Plex Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-label {
    color: #ff8c00;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(255, 140, 45, 0.6);
}

.footer-item {
    color: #d2691e;
}

/* Terminal Modal */
.terminal-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.terminal-modal.hidden {
    display: none;
}

.modal-header {
    background: #0f0f0f;
    border: 2px solid #ff8c00;
    border-bottom: 1px solid #ff8c00;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    color: #ff8c00;
    font-weight: bold;
    font-size: 1.1em;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-shadow: 0 0 8px rgba(255, 140, 45, 0.6);
}

.modal-close {
    background: transparent;
    border: 1px solid #ff8c00;
    color: #ff8c00;
    font-size: 1.5em;
    width: 2rem;
    height: 2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #ff8c00;
    color: #0a0a0a;
}

.modal-content {
    background: #0a0a0a;
    border: 2px solid #ff8c00;
    border-top: none;
    max-width: 800px;
    max-height: 70vh;
    overflow-y: auto;
    padding: 2rem;
}

.event-detail-header {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #333;
    flex-wrap: wrap;
}

.event-detail-time {
    color: #ffa500;
    font-weight: bold;
    font-size: 1.2em;
}

.event-detail-type {
    color: #ff8c00;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.event-detail-status {
    color: #32cd32;
    font-weight: bold;
}

.event-detail-status.variant {
    color: #ff4500;
}

.event-detail-description {
    color: #d2691e;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 1.05em;
}

.event-detail-sources {
    margin-bottom: 1.5rem;
}

.event-detail-sources h4 {
    color: #ff8c00;
    margin-bottom: 0.5rem;
    font-size: 1em;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.event-detail-alternatives h4 {
    color: #ff4500;
    margin-bottom: 0.5rem;
    font-size: 1em;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Improved Contrast for Better Readability */
.site-content {
    background: #0a0a0a;
    color: #d2691e;
}

.page-header h1 {
    color: #ff8c00;
    text-shadow: 0 0 10px rgba(255, 140, 45, 0.8);
}

.page-subtitle {
    color: #d2691e;
    text-shadow: 0 0 5px rgba(210, 105, 30, 0.6);
}

/* Footer Updates */
.site-footer {
    background: #0f0f0f;
    color: #d2691e;
    border-top: 2px solid #ff8c00;
    padding: 2rem 0;
}

.footer-links a {
    color: #ff8c00;
    text-decoration: none;
}

.footer-links a:hover {
    color: #ffa500;
    text-shadow: 0 0 5px rgba(255, 140, 45, 0.6);
}

.footer-subtitle {
    color: #8b4513;
}

.footer-links span {
    color: #5a3219;
}

/* Loading Indicator Styles */
.loading-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    text-align: center;
}

.loading-text {
    color: #ff8c00;
    font-size: 1.1em;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    text-shadow: 0 0 10px rgba(255, 140, 45, 0.6);
}

.loading-dots {
    color: #d2691e;
    font-size: 1.5em;
    animation: loading-pulse 1.5s infinite;
}

@keyframes loading-pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* Error Indicator Styles */
.error-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    text-align: center;
}

.error-text {
    color: #ff4500;
    font-size: 1.1em;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 8px rgba(255, 69, 0, 0.6);
}

.error-detail {
    color: #8b4513;
    font-size: 0.9em;
    font-style: italic;
}

/* Responsive Terminal Modal */
@media (max-width: 768px) {
    .terminal-modal {
        padding: 1rem;
    }
    
    .modal-content {
        max-height: 80vh;
        padding: 1.5rem;
    }
    
    .event-detail-header {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .terminal-menu {
        flex-direction: column;
        gap: 1rem;
    }
    
    .footer-row {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .loading-text, .error-text {
        font-size: 1em;
    }
}