/* modern-theme.css */

/* Define CSS Variables for the Modern Theme */
html[data-theme="modern"] {
    --modern-bg: #0A0914;
    --modern-card-bg: #181726;
    --modern-header-bg: rgba(24, 23, 38, 0.85);
    --modern-primary: #1A73E8;
    --modern-primary-hover: #4285F4;
    --modern-text: #F0F0F5;
    --modern-text-muted: #A0A0B0;
    --modern-border: rgba(26, 115, 232, 0.2);
    --modern-glow: 0 0 15px rgba(26, 115, 232, 0.4);
    --modern-accent: #E50914;
    
    --font-heading: 'Fredoka', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* Base Body Styles */
html[data-theme="modern"] body {
    background-color: var(--modern-bg);
    color: var(--modern-text);
    font-family: var(--font-body);
}

html[data-theme="modern"] h1,
html[data-theme="modern"] h2,
html[data-theme="modern"] h3,
html[data-theme="modern"] h4,
html[data-theme="modern"] h5,
html[data-theme="modern"] h6 {
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
}

/* Header Styles */
html[data-theme="modern"] #main-header {
    background: var(--modern-header-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--modern-border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

html[data-theme="modern"] #main-header h1 {
    color: var(--modern-text);
    font-weight: 600;
}

html[data-theme="modern"] .settings-cog-btn {
    border-radius: 8px;
    transition: all 0.2s ease;
}

html[data-theme="modern"] .settings-cog-btn:hover {
    background-color: rgba(26, 115, 232, 0.2);
    color: var(--modern-primary-hover);
    box-shadow: var(--modern-glow);
}

/* Stream Containers (Cards) */
html[data-theme="modern"] .stream-container {
    background-color: var(--modern-card-bg);
    border: 1px solid var(--modern-border) !important;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

html[data-theme="modern"] .stream-container:hover {
    box-shadow: var(--modern-glow);
    border-color: var(--modern-primary) !important;
}

html[data-theme="modern"] .desktop-controls {
    background-color: var(--modern-card-bg);
    border-top: 1px solid var(--modern-border);
}

html[data-theme="modern"] .desktop-controls button:hover {
    color: var(--modern-primary-hover) !important;
    background-color: rgba(26, 115, 232, 0.15) !important;
}

html[data-theme="modern"] .channel-label {
    font-family: var(--font-heading);
    color: var(--modern-text);
}

html[data-theme="modern"] .view-count-display {
    color: var(--modern-text-muted);
    font-family: var(--font-body);
}

/* Modals */
html[data-theme="modern"] .modal-content {
    background-color: var(--modern-card-bg);
    border: 1px solid var(--modern-border);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), 0 0 20px rgba(26, 115, 232, 0.15);
    color: var(--modern-text);
    font-family: var(--font-body);
}

html[data-theme="modern"] .modal-content h2,
html[data-theme="modern"] .modal-content h3 {
    color: var(--modern-primary);
    border-bottom-color: rgba(26, 115, 232, 0.3);
}

html[data-theme="modern"] .save-settings-btn,
html[data-theme="modern"] .contact-report-btn {
    background-color: var(--modern-primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-weight: 600;
    transition: all 0.2s ease;
    box-shadow: 0 4px 10px rgba(26, 115, 232, 0.3);
}

html[data-theme="modern"] .save-settings-btn:hover,
html[data-theme="modern"] .contact-report-btn:hover {
    background-color: var(--modern-primary-hover);
    box-shadow: var(--modern-glow);
    transform: translateY(-2px);
}

html[data-theme="modern"] select,
html[data-theme="modern"] input[type="number"],
html[data-theme="modern"] input[type="text"] {
    background-color: #242236;
    border: 1px solid rgba(26, 115, 232, 0.4);
    color: var(--modern-text);
    border-radius: 6px;
    font-family: var(--font-body);
}

html[data-theme="modern"] select:focus,
html[data-theme="modern"] input[type="number"]:focus,
html[data-theme="modern"] input[type="text"]:focus {
    outline: none;
    border-color: var(--modern-primary);
    box-shadow: 0 0 5px rgba(26, 115, 232, 0.5);
}

/* Chat Panel / Sidebar */
html[data-theme="modern"] .chat-panel,
html[data-theme="modern"] .chat-slideout,
html[data-theme="modern"] .mobile-nav {
    background-color: var(--modern-card-bg);
    border-color: var(--modern-border);
}

html[data-theme="modern"] .chat-header {
    background-color: #242236;
    border-bottom: 1px solid var(--modern-border);
}

html[data-theme="modern"] .chat-room-item.active {
    background-color: rgba(26, 115, 232, 0.2);
    border-left-color: var(--modern-primary);
}

html[data-theme="modern"] .chat-input-container {
    background-color: #242236;
    border-top: 1px solid var(--modern-border);
}

html[data-theme="modern"] .chat-input-container input {
    background-color: #181726;
    border: 1px solid rgba(26, 115, 232, 0.4);
}

html[data-theme="modern"] #chat-send-btn {
    background-color: var(--modern-primary);
}

html[data-theme="modern"] #chat-send-btn:hover {
    background-color: var(--modern-primary-hover);
}

/* Scrollbars */
html[data-theme="modern"] ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

html[data-theme="modern"] ::-webkit-scrollbar-track {
    background: var(--modern-bg);
}

html[data-theme="modern"] ::-webkit-scrollbar-thumb {
    background: #3a3654;
    border-radius: 4px;
}

html[data-theme="modern"] ::-webkit-scrollbar-thumb:hover {
    background: var(--modern-primary);
}

/* Wait Times Bar */
html[data-theme="modern"] .scrolling-wait-times {
    background-color: var(--modern-header-bg);
    border-top: 1px solid var(--modern-border);
    backdrop-filter: blur(10px);
}

/* Mobile Focus Indicator */
html[data-theme="modern"] .mobile-focus-indicator {
    background: rgba(26, 115, 232, 0.2);
}

html[data-theme="modern"] .focus-dot.active {
    background: var(--modern-primary);
    box-shadow: 0 0 8px var(--modern-primary);
}
