/**
 * ScooterCam - Enhanced Contrast Styles
 * Improves readability and accessibility with better color contrast
 * Uses brand orange #df4a2a for accents
 * 
 * Load this AFTER your main stylesheets
 */

/* ========================================
   BRAND COLORS
   ======================================== */
:root {
    --scootercam-orange: #df4a2a;
    --scootercam-orange-dark: #c13d1f;
    --scootercam-orange-light: #ff6347;
    --text-shadow-dark: 0 1px 2px rgba(0, 0, 0, 0.8);
    --text-shadow-subtle: 0 1px 1px rgba(0, 0, 0, 0.5);
}

/* ========================================
   NAVIGATION MENU - Enhanced Contrast
   ======================================== */

/* Main Navigation Links */
.main-nav a {
    color: #333 !important;
    text-shadow: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.main-nav a:hover {
    color: var(--scootercam-orange) !important;
    background: rgba(223, 74, 42, 0.1);
    text-shadow: none;
}

/* Active/Current Page */
.main-nav a.active {
    background: var(--scootercam-orange) !important;
    color: white !important;
    text-shadow: var(--text-shadow-dark);
    border-bottom: 3px solid var(--scootercam-orange-dark);
}

/* Mobile Menu Toggle Button */
.menu-toggle {
    background: var(--scootercam-orange);
    color: white;
}

.menu-toggle:hover {
    background: var(--scootercam-orange-dark);
}

/* Mobile Menu Open State */
.header-nav.active {
    background: white;
    border: 2px solid var(--scootercam-orange);
}

/* ========================================
   BUTTONS & INTERACTIVE ELEMENTS
   ======================================== */

/* Primary Buttons */
.btn-primary,
.toggle-btn.active,
.mode-button.active {
    background: #f5f5f5 !important;
    color: white !important;
    text-shadow: var(--text-shadow-dark);
    border: 2px solid var(--scootercam-orange-dark) !important;
}

.btn-primary:hover,
.toggle-btn:hover,
.mode-button:hover {
    background: var(--scootercam-orange-dark) !important;
    color: white !important;
    text-shadow: var(--text-shadow-dark);
}

/* Secondary Buttons */
.btn-secondary,
.toggle-btn {
    background: white !important;
    color: #333 !important;
    border: 2px solid #ddd !important;
    text-shadow: none;
}

.btn-secondary:hover {
    background: #333 !important;
    color: white !important;
    text-shadow: var(--text-shadow-dark);
    border-color: #333 !important;
}

/* Back/Navigation Buttons */
.btn-back {
    background: #333 !important;
    color: white !important;
    text-shadow: var(--text-shadow-dark);
}

.btn-back:hover {
    background: var(--scootercam-orange) !important;
    border-color: var(--scootercam-orange-dark) !important;
}

/* ========================================
   GALLERY PAGE - Camera/View Toggles
   ======================================== */

/* View Toggle Buttons (Sunsets/Daily) */
.view-toggle .toggle-btn,
.camera-toggle .toggle-btn {
    background: white;
    color: #333;
    border: 2px solid #ccc;
    font-weight: 600;
    text-shadow: none;
}

.view-toggle .toggle-btn:hover,
.camera-toggle .toggle-btn:hover {
    background: var(--scootercam-orange-light);
    color: white;
    text-shadow: var(--text-shadow-dark);
    border-color: var(--scootercam-orange);
}

.view-toggle .toggle-btn.active,
.camera-toggle .toggle-btn.active {
    background: var(--scootercam-orange);
    color: white;
    text-shadow: var(--text-shadow-dark);
    border: 2px solid var(--scootercam-orange-dark);
}

/* ========================================
   PAGE HEADERS
   ======================================== */

.page-header {
    background: linear-gradient(135deg, var(--scootercam-orange) 0%, var(--scootercam-orange-dark) 100%) !important;
    color: white;
}

.page-header h1,
.page-header .subtitle {
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* ========================================
   CURRENT CONDITIONS SECTION
   ======================================== */

.current-selection {
    background: linear-gradient(135deg, var(--scootercam-orange) 0%, var(--scootercam-orange-dark) 100%) !important;
    color: white;
}

.current-selection strong {
    color: white;
    text-shadow: var(--text-shadow-subtle);
}

/* ========================================
   WEATHER ALERTS
   ======================================== */

.alert-header {
    background: rgba(223, 74, 42, 0.1);
}

.alert-type {
    color: var(--scootercam-orange-dark);
    text-shadow: none;
}

.alert.alert-detailed.alert-severe .alert-header {
    background: var(--scootercam-orange);
    color: white;
}

.alert.alert-detailed.alert-severe .alert-type {
    color: white;
    text-shadow: var(--text-shadow-dark);
}

/* ========================================
   LINKS
   ======================================== */

a {
    color: var(--scootercam-orange);
}

a:hover {
    color: var(--scootercam-orange-dark);
}

/* Content Links */
.forecast-text a,
.gallery-info a,
.guide-column a {
    color: var(--scootercam-orange);
    font-weight: 600;
}

.forecast-text a:hover,
.gallery-info a:hover,
.guide-column a:hover {
    color: var(--scootercam-orange-dark);
}

/* ========================================
   INFO CARDS & SECTIONS
   ======================================== */

.info-card h3 {
    color: var(--scootercam-orange);
    border-bottom-color: var(--scootercam-orange);
}

.guide-column h3 {
    color: var(--scootercam-orange);
}

/* Camera Section Headers */
.camera-header h2 {
    color: #333;
}

.camera-specs {
    background: #f8f8f8;
    border-left: 4px solid var(--scootercam-orange);
}

/* ========================================
   MONTH NAVIGATION (Gallery)
   ======================================== */

.month-nav a {
    background: white;
    color: #333;
    border: 2px solid #ddd;
    font-weight: 600;
}

.month-nav a:hover {
    background: var(--scootercam-orange);
    color: white;
    text-shadow: var(--text-shadow-dark);
    border-color: var(--scootercam-orange-dark);
}

/* ========================================
   DOWNLOAD LINKS
   ======================================== */

.download-link {
    background: var(--scootercam-orange);
    color: white;
    text-shadow: var(--text-shadow-dark);
}

.download-link:hover {
    background: var(--scootercam-orange-dark);
}

/* ========================================
   VIDEO PLAYER MODE CONTROLS
   ======================================== */

.mode-button {
    background: white;
    color: #333;
    border: 2px solid #ddd;
    font-weight: 600;
}

.mode-button:hover {
    background: var(--scootercam-orange-light);
    color: white;
    text-shadow: var(--text-shadow-dark);
}

.mode-button.active {
    background: var(--scootercam-orange);
    color: white;
    text-shadow: var(--text-shadow-dark);
    border: 2px solid var(--scootercam-orange-dark);
}

/* ========================================
   FORECAST SECTIONS
   ======================================== */

.forecast-section h2,
.forecast-section h3 {
    color: #333;
}

.forecast-card {
    border-left: 4px solid var(--scootercam-orange);
}

.forecast-card:hover {
    border-left-color: var(--scootercam-orange-dark);
}

/* ========================================
   GALLERY ITEMS
   ======================================== */

.gallery-item:hover {
    box-shadow: 0 8px 20px rgba(223, 74, 42, 0.3);
}

.gallery-month h2 {
    color: #333;
    border-bottom-color: var(--scootercam-orange);
}

/* ========================================
   FOOTER
   ======================================== */

.site-footer {
    background: #2c2c2c;
    color: #ddd;
}

.site-footer a {
    color: var(--scootercam-orange-light);
}

.site-footer a:hover {
    color: white;
}

/* Patreon Support Blurb */
.patreon-support {
    text-align: center;
    padding: 20px 0;
    margin-bottom: 20px;
    border-top: 2px solid rgba(223, 74, 42, 0.3);
    border-bottom: 2px solid rgba(223, 74, 42, 0.3);
}

.patreon-link {
    display: inline-block;
    padding: 12px 30px;
    background: var(--scootercam-orange);
    color: white !important;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.patreon-link:hover {
    background: var(--scootercam-orange-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    color: white !important;
}

.patreon-icon {
    font-size: 1.2em;
    margin-right: 8px;
}

.patreon-text {
    font-style: italic;
}

/* Mobile Patreon Support */
@media (max-width: 768px) {
    .patreon-support {
        padding: 15px 10px;
    }
    
    .patreon-link {
        padding: 12px 20px;
        font-size: 0.95rem;
        display: block;
        width: 100%;
        box-sizing: border-box;
    }
}

/* ========================================
   ACCESSIBILITY IMPROVEMENTS
   ======================================== */

/* Focus States for Keyboard Navigation */
a:focus,
button:focus,
.toggle-btn:focus,
.mode-button:focus {
    outline: 3px solid var(--scootercam-orange);
    outline-offset: 2px;
}

/* Ensure sufficient contrast for all text */
.condition-item .label {
    color: #555;
    font-weight: 600;
}

.condition-item .value {
    color: #222;
    font-weight: 700;
}

/* ========================================
   RESPONSIVE ADJUSTMENTS
   ======================================== */

@media (max-width: 768px) {
    /* Larger touch targets on mobile */
    .toggle-btn,
    .mode-button,
    .btn {
        min-height: 44px;
        padding: 12px 20px;
        font-size: 1rem;
    }
    
    /* Better contrast for mobile menu */
    .header-nav.active .main-nav a {
        color: #333 !important;
        font-weight: 600;
    }
    
    .header-nav.active .main-nav a:hover,
    .header-nav.active .main-nav a.active {
        background: var(--scootercam-orange);
        color: white !important;
        text-shadow: var(--text-shadow-dark);
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
    .page-header {
        background: white !important;
        color: black !important;
        border: 2px solid black;
    }
    
    .page-header h1,
    .page-header .subtitle {
        color: black !important;
        text-shadow: none !important;
    }
}