/**
 * NADTN Master Stylesheet
 * Consistent styling for all pages
 */

/* ===== RESET & BASICS ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #f5f5f5;
    color: #2c3e50;
    line-height: 1.6;
}

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

/* ===== TRAFFIC LIGHT BUTTONS ===== */
.voice-controls {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px 0;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.voice-btn {
    background: white;
    border: 4px solid #2c3e50;
    padding: 18px 40px;
    margin: 0 15px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 20px;
    font-weight: 800;
    color: #2c3e50;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.2s;
}

.voice-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

.voice-btn:focus {
    outline: 3px solid #ffd700;
    outline-offset: 3px;
}

/* BLUE - Playing/Start */
.btn-blue {
    background: #3498db !important;
    color: white !important;
    border-color: #2c3e50 !important;
}

.btn-blue:hover {
    background: #2980b9 !important;
}

/* AMBER - Paused */
.btn-amber {
    background: #f39c12 !important;
    color: white !important;
    border-color: #2c3e50 !important;
}

.btn-amber:hover {
    background: #e67e22 !important;
}

/* GREY - Stopped */
.btn-grey {
    background: #7f8c8d !important;
    color: white !important;
    border-color: #2c3e50 !important;
}

.btn-grey:hover {
    background: #95a5a6 !important;
}

/* Mobile responsive buttons */
@media (max-width: 768px) {
    .voice-btn {
        display: block;
        margin: 10px auto;
        width: 90%;
        max-width: 300px;
    }
}

/* ===== HEADER WITH LOGOS ===== */
header {
    background: #2c3e50;
    color: white;
    padding: 30px 0;
    text-align: center;
}

header .header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    flex-wrap: wrap;
}

header .logo {
    height: 80px;
    width: auto;
}

header .title-area {
    flex: 1;
    min-width: 300px;
}

header h1 {
    margin: 0 0 10px 0;
    font-size: 2.5em;
    color: white;
}

header p {
    margin: 0;
    font-style: italic;
    opacity: 0.9;
}

@media (max-width: 768px) {
    header .header-content {
        flex-direction: column;
    }
    
    header h1 {
        font-size: 1.8em;
    }
    
    header .logo {
        height: 60px;
    }
}

/* ===== NAVIGATION ===== */
nav {
    background: #34495e;
    padding: 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

nav li {
    margin: 0;
}

nav a {
    display: block;
    padding: 15px 20px;
    color: white;
    text-decoration: none;
    transition: background 0.3s;
    font-weight: 600;
}

nav a:hover,
nav a.active {
    background: #2c3e50;
}

nav a:focus {
    outline: 3px solid #ffd700;
    outline-offset: -3px;
}

@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
    }
    
    nav a {
        text-align: center;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
}

/* ===== FOOTER ===== */
footer {
    background: #2c3e50;
    color: white;
    padding: 40px 20px;
    margin-top: 60px;
    text-align: center;
}

footer p {
    margin: 10px 0;
}

footer a {
    color: #3498db;
    text-decoration: none;
}

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

/* ===== ACCESSIBILITY MODES ===== */

/* High Contrast Mode */
body.high-contrast {
    background: #000 !important;
    color: #fff !important;
}

body.high-contrast header,
body.high-contrast nav,
body.high-contrast footer,
body.high-contrast .voice-controls {
    background: #000 !important;
    border: 3px solid #fff !important;
}

body.high-contrast .voice-btn {
    border-color: #fff !important;
}

body.high-contrast a {
    color: #ffff00 !important;
    text-decoration: underline !important;
}

body.high-contrast .btn-blue {
    background: #0066ff !important;
}

body.high-contrast .btn-amber {
    background: #ff9900 !important;
}

body.high-contrast .btn-grey {
    background: #666 !important;
}

/* Large Text Mode */
body.large-text {
    font-size: 1.4em !important;
}

body.large-text h1 {
    font-size: 3em !important;
}

body.large-text h2 {
    font-size: 2.5em !important;
}

body.large-text h3 {
    font-size: 2em !important;
}

body.large-text .voice-btn {
    font-size: 24px !important;
    padding: 22px 50px !important;
}

body.large-text nav a {
    font-size: 1.2em !important;
    padding: 18px 25px !important;
}

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

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #3498db;
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 10000;
}

.skip-link:focus {
    top: 0;
}
