/**
 * First Contact - Styles
 *
 * Clean, educational UI that doesn't overwhelm beginners
 */

/* CSS Variables */
:root {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --accent-primary: #3b82f6;
    --accent-success: #22c55e;
    --accent-warning: #eab308;
    --accent-danger: #ef4444;
    --border-color: #475569;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
}

/* Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100vh;
    overflow: hidden;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
}

/* Layout */
.app-container {
    display: grid;
    grid-template-columns: 280px 1fr 320px;
    grid-template-rows: auto 1fr;
    height: 100vh;
    gap: 1px;
    background-color: var(--border-color);
}

.app-header {
    grid-column: 1 / -1;
    background-color: var(--bg-secondary);
    padding: 0.5rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.app-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.app-subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.header-button {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: background-color 0.2s, border-color 0.2s;
}

.header-button:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
}

/* Parent Branding - Header Logo */
.parent-logo-container {
    display: none; /* Hidden by default, shown via JS when configured */
    align-items: center;
    margin-right: 1rem;
}

.parent-logo-container.visible {
    display: flex;
}

.parent-logo-link {
    display: flex;
    align-items: center;
}

.parent-logo {
    height: 150px;
    width: auto;
    object-fit: contain;
}

.app-branding {
    flex: 1;
}

/* Parent Branding - Footer */
.parent-branding-container {
    display: none; /* Hidden by default, shown via JS when configured */
    justify-content: center;
    margin-bottom: 0.5rem;
}

.parent-branding-container.visible {
    display: flex;
}

.parent-branding-text {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.parent-branding-text a {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 500;
}

.parent-branding-text a:hover {
    text-decoration: underline;
}

/* SVG Icons */
.header-icon,
.event-icon svg,
.season-svg {
    display: inline-block;
    vertical-align: middle;
    stroke: currentColor;
    fill: none;
}

.btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.season-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.season-svg {
    color: var(--accent-primary);
}

.version {
    color: var(--text-muted);
    font-size: 0.75rem;
}

/* Help Modal */
.help-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease;
}

.help-modal {
    background: var(--bg-secondary);
    border-radius: 12px;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideIn 0.3s ease;
}

.help-modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.help-modal-header h2 {
    font-size: 1.3rem;
    margin: 0;
}

.help-modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
}

.help-modal-close:hover {
    color: var(--text-primary);
}

.help-modal-content {
    padding: 1.5rem;
}

.help-section {
    margin-bottom: 1.5rem;
}

.help-section:last-child {
    margin-bottom: 0;
}

.help-section h3 {
    color: var(--accent-primary);
    font-size: 1rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.help-section p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.help-section ul {
    color: var(--text-secondary);
    margin-left: 1.5rem;
    margin-top: 0.5rem;
}

.help-section li {
    margin-bottom: 0.4rem;
}

.help-tip {
    background: var(--bg-tertiary);
    border-left: 3px solid var(--accent-warning);
    padding: 0.75rem 1rem;
    border-radius: 0 6px 6px 0;
    margin-top: 0.75rem;
}

.help-tip strong {
    color: var(--accent-warning);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Panels */
.panel {
    background-color: var(--bg-secondary);
    padding: 0.75rem;
    overflow-y: auto;
    overflow-x: hidden;
}

.panel-left {
    grid-column: 1;
}

.panel-center {
    grid-column: 2;
    display: flex;
    flex-direction: column;
    padding: 0.25rem;
    overflow: hidden;
    min-height: 0;
}

.panel-right {
    grid-column: 3;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Controls Panel */
.controls-panel {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    min-width: 0;
    padding-bottom: 1.5rem;
}

.control-section {
    width: 100%;
    min-width: 0;
}

.control-section h3 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

/* Language Selector */
.language-section {
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 0.25rem;
}

.language-selector {
    display: flex;
    gap: 0.5rem;
}

.lang-button {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.75rem;
    background-color: var(--bg-tertiary);
    border: 2px solid transparent;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-primary);
    font-size: 0.85rem;
}

.lang-button:hover {
    background-color: rgba(59, 130, 246, 0.1);
    border-color: var(--accent-primary);
}

.lang-button.selected {
    background-color: rgba(59, 130, 246, 0.2);
    border-color: var(--accent-primary);
}

.lang-flag {
    font-size: 1.1rem;
}

.lang-name {
    font-weight: 500;
}

/* Location Selector */
.location-section {
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 0.25rem;
}

.location-selector {
    margin-bottom: 0.5rem;
}

.location-dropdown {
    width: 100%;
    padding: 0.5rem;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    color: var(--text-primary);
    font-size: 0.85rem;
    cursor: pointer;
}

.location-dropdown:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.location-custom {
    margin-bottom: 0.5rem;
}

.name-input-group {
    margin-bottom: 0.5rem;
}

.name-input-group input {
    font-family: inherit;
}

.location-coords {
    display: flex;
    gap: 0.5rem;
    align-items: flex-end;
}

.coord-input-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.coord-input-group label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.coord-input-group input {
    width: 100%;
    padding: 0.4rem 0.5rem;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 0.25rem;
    color: var(--text-primary);
    font-size: 0.8rem;
    font-family: monospace;
}

.coord-input-group input:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.location-set-btn {
    padding: 0.4rem 0.75rem;
    background-color: var(--accent-primary);
    border: none;
    border-radius: 0.25rem;
    color: white;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
    white-space: nowrap;
}

.location-set-btn:hover {
    background-color: var(--accent-primary-hover);
}

.location-current {
    font-size: 0.75rem;
    color: var(--text-secondary);
    padding: 0.3rem 0.5rem;
    background-color: var(--bg-tertiary);
    border-radius: 0.25rem;
    text-align: center;
}

/* Month/Season Selector */
.month-selector {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.month-dropdown {
    width: 100%;
    padding: 0.5rem;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    color: var(--text-primary);
    font-size: 0.85rem;
    cursor: pointer;
}

.month-dropdown:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.season-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.4rem 0.5rem;
    background-color: var(--bg-tertiary);
    border-radius: 0.25rem;
    font-size: 0.85rem;
}

.season-icon {
    font-size: 1rem;
}

.season-name {
    color: var(--text-secondary);
    font-weight: 500;
}

/* Band Selector */
.band-selector {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.band-button {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0.75rem 1rem;
    background-color: var(--bg-tertiary);
    border: 2px solid transparent;
    border-left: 4px solid var(--band-color, var(--accent-primary));
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-primary);
    text-align: left;
}

.band-button:hover {
    background-color: rgba(59, 130, 246, 0.1);
    border-color: var(--band-color, var(--accent-primary));
}

.band-button.selected {
    background-color: rgba(59, 130, 246, 0.2);
    border-color: var(--band-color, var(--accent-primary));
}

.band-name {
    font-weight: 600;
    font-size: 1.1rem;
}

.band-personality {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Band Info */
.band-info {
    margin-top: 0.5rem;
}

.band-details {
    background-color: var(--bg-tertiary);
    border-radius: 0.5rem;
    padding: 0.75rem;
}

.band-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.band-icon {
    font-size: 1.5rem;
}

.band-tagline {
    font-style: italic;
    color: var(--text-secondary);
}

.band-description {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.band-hint {
    font-size: 0.85rem;
    color: var(--accent-warning);
    background-color: rgba(234, 179, 8, 0.1);
    padding: 0.5rem;
    border-radius: 0.25rem;
}

/* Power Selector */
.power-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.power-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem 0.25rem;
    background-color: var(--bg-tertiary);
    border: 2px solid transparent;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-primary);
}

.power-button:hover {
    background-color: rgba(59, 130, 246, 0.1);
    border-color: var(--accent-primary);
}

.power-button.selected {
    background-color: rgba(59, 130, 246, 0.2);
    border-color: var(--accent-primary);
}

.power-icon {
    font-size: 1.25rem;
    margin-bottom: 0.15rem;
}

.power-watts {
    font-size: 0.9rem;
    font-weight: 600;
}

.power-name {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

/* Power Info */
.power-info {
    margin-bottom: 0.5rem;
}

.power-details {
    background-color: var(--bg-tertiary);
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
}

.power-description {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.power-challenge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    padding: 0.35rem 0.5rem;
    background-color: rgba(234, 179, 8, 0.1);
    border-radius: 0.25rem;
    color: var(--accent-warning);
    font-size: 0.8rem;
}

.challenge-icon {
    font-size: 1rem;
}

/* Antenna Selector */
.antenna-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.antenna-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem 0.25rem;
    background-color: var(--bg-tertiary);
    border: 2px solid transparent;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-primary);
}

.antenna-button:hover {
    background-color: rgba(59, 130, 246, 0.1);
    border-color: var(--accent-primary);
}

.antenna-button.selected {
    background-color: rgba(59, 130, 246, 0.2);
    border-color: var(--accent-primary);
}

.antenna-icon {
    font-size: 1.25rem;
    margin-bottom: 0.15rem;
}

.antenna-name {
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-align: center;
}

/* Antenna Info */
.antenna-info {
    margin-bottom: 0.5rem;
}

.antenna-details {
    background-color: var(--bg-tertiary);
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
}

.antenna-description {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.35rem;
}

.antenna-specs {
    display: flex;
    gap: 1rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.antenna-spec {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Direction Selector (for Yagi) */
.antenna-direction-container {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.direction-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
    text-align: center;
}

.direction-selector {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 0.25rem;
}

.direction-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.15rem;
    background-color: var(--bg-tertiary);
    border: 2px solid transparent;
    border-radius: 0.35rem;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-secondary);
    font-size: 0.65rem;
    font-weight: 600;
}

.direction-button:hover {
    background-color: rgba(251, 191, 36, 0.1);
    border-color: var(--accent-warning);
    color: var(--text-primary);
}

.direction-button.selected {
    background-color: rgba(251, 191, 36, 0.2);
    border-color: var(--accent-warning);
    color: var(--accent-warning);
}

/* Time Control */
.time-control {
    margin-bottom: 0.75rem;
}

#time-slider {
    width: 100%;
    height: 8px;
    -webkit-appearance: none;
    appearance: none;
    background: var(--bg-tertiary);
    border-radius: 4px;
    outline: none;
}

#time-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--accent-primary);
    border-radius: 50%;
    cursor: pointer;
}

#time-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: var(--accent-primary);
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.time-display {
    text-align: center;
    margin-top: 0.5rem;
    font-size: 1.1rem;
    font-weight: 500;
}

.time-presets {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.time-preset {
    padding: 0.5rem;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 0.25rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: background-color 0.2s;
}

.time-preset:hover {
    background-color: var(--accent-primary);
}

/* Solar Activity Selector */
.solar-activity-selector {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.solar-activity-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.75rem 1rem;
    background-color: var(--bg-tertiary);
    border: 2px solid transparent;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-primary);
}

.solar-activity-button:hover {
    background-color: rgba(59, 130, 246, 0.1);
    border-color: var(--activity-color, var(--accent-primary));
}

.solar-activity-button.selected {
    background-color: rgba(59, 130, 246, 0.2);
    border-color: var(--activity-color, var(--accent-primary));
    box-shadow: 0 0 8px var(--activity-color, var(--accent-primary));
}

.activity-icon {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.activity-name {
    font-size: 0.8rem;
    font-weight: 500;
}

/* Solar Activity Info */
.solar-activity-info {
    margin-bottom: 0.75rem;
}

.solar-activity-details {
    background-color: var(--bg-tertiary);
    border-radius: 0.5rem;
    padding: 0.75rem;
}

.solar-description {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.solar-hint {
    font-size: 0.8rem;
    color: var(--accent-warning);
    background-color: rgba(234, 179, 8, 0.1);
    padding: 0.5rem;
    border-radius: 0.25rem;
}

/* Special Events Control (Mögel-Dellinger & Aurora) */
.special-events-control {
    border-top: 1px solid var(--border-color);
    padding-top: 0.75rem;
    margin-top: 0.5rem;
}

.event-button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.mogel-dellinger-button,
.aurora-button,
.sporadic-e-button {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    padding: 0.5rem 0.6rem;
    background-color: var(--bg-tertiary);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.75rem;
    flex: 1 1 auto;
    min-width: 70px;
}

.mogel-dellinger-button {
    border: 2px solid #e74c3c;
}

.aurora-button {
    border: 2px solid #2ecc71;
}

.sporadic-e-button {
    border: 2px solid #9b59b6;
}

.mogel-dellinger-button:hover {
    background-color: rgba(231, 76, 60, 0.1);
}

.aurora-button:hover {
    background-color: rgba(46, 204, 113, 0.1);
}

.sporadic-e-button:hover {
    background-color: rgba(155, 89, 182, 0.1);
}

.mogel-dellinger-button.active {
    background-color: #e74c3c;
    color: white;
    animation: pulse-red 1.5s ease-in-out infinite;
}

.aurora-button.active {
    background-color: #2ecc71;
    color: white;
    animation: pulse-green 1.5s ease-in-out infinite;
}

.sporadic-e-button.active {
    background-color: #9b59b6;
    color: white;
    animation: pulse-purple 1.5s ease-in-out infinite;
}

@keyframes pulse-red {
    0%, 100% {
        box-shadow: 0 0 5px #e74c3c;
    }
    50% {
        box-shadow: 0 0 20px #e74c3c, 0 0 40px rgba(231, 76, 60, 0.5);
    }
}

@keyframes pulse-green {
    0%, 100% {
        box-shadow: 0 0 5px #2ecc71;
    }
    50% {
        box-shadow: 0 0 20px #2ecc71, 0 0 40px rgba(46, 204, 113, 0.5);
    }
}

@keyframes pulse-purple {
    0%, 100% {
        box-shadow: 0 0 5px #9b59b6;
    }
    50% {
        box-shadow: 0 0 20px #9b59b6, 0 0 40px rgba(155, 89, 182, 0.5);
    }
}

.event-icon {
    font-size: 1rem;
}

.event-label {
    text-align: center;
    line-height: 1.2;
}

.event-hints {
    display: none;
}

/* Conditions Display */
.conditions-display {
    background-color: var(--bg-tertiary);
    border-radius: 0.5rem;
    padding: 0.75rem;
    padding-bottom: 1rem;
    font-size: 0.9rem;
    margin-bottom: 2rem;
    box-sizing: border-box;
    width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.condition-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.25rem;
    gap: 0.5rem;
    min-width: 0;
}

.condition-label {
    color: var(--text-secondary);
}

.condition-value {
    font-weight: 500;
    text-align: right;
    overflow-wrap: break-word;
    word-wrap: break-word;
    min-width: 0;
}

.condition-note {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
}

.target-conditions {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
}

/* Solar Indicators */
.solar-indicators {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
}

.solar-indicators-title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.solar-indicator-value {
    font-family: monospace;
    font-size: 0.85rem;
}

.xray-quiet {
    color: var(--accent-success);
}

.xray-elevated {
    color: #eab308;
}

.xray-active {
    color: #f97316;
}

.xray-flaring {
    color: #ef4444;
    font-weight: 700;
    animation: xray-pulse 1s infinite;
}

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

/* Geomagnetic Indicators */
.geomag-indicators {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
}

.geomag-indicator-value {
    font-family: monospace;
    font-size: 0.85rem;
}

.geomag-quiet {
    color: var(--accent-success);
}

.geomag-unsettled {
    color: #eab308;
}

.geomag-disturbed {
    color: #f97316;
}

.aurora-none {
    color: var(--text-muted);
}

.aurora-possible {
    color: #eab308;
}

.aurora-active {
    color: #2ecc71;
    font-weight: 700;
    animation: aurora-glow 2s infinite;
}

@keyframes aurora-glow {
    0%, 100% { text-shadow: 0 0 4px rgba(46, 204, 113, 0.5); }
    50% { text-shadow: 0 0 8px rgba(46, 204, 113, 0.8); }
}

.polar-good {
    color: var(--accent-success);
}

.polar-degraded {
    color: #eab308;
}

.polar-poor {
    color: #ef4444;
}

/* Band Conditions */
.band-conditions {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
}

.band-condition-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.35rem;
    gap: 0.5rem;
}

.band-group-label {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-primary);
}

.band-condition-value {
    font-size: 0.8rem;
    text-align: right;
}

.band-good {
    color: var(--accent-success);
}

.band-fair {
    color: #eab308;
}

.band-poor {
    color: #ef4444;
}

/* Transient Effects */
.transient-effects {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
}

.transient-effect {
    display: flex;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: 0.375rem;
    margin-bottom: 0.5rem;
}

.transient-effect:last-child {
    margin-bottom: 0;
}

.transient-effect-icon {
    font-size: 1rem;
    flex-shrink: 0;
}

.transient-effect-text {
    font-size: 0.8rem;
    line-height: 1.4;
    margin: 0;
}

.transient-effect--flare {
    background-color: rgba(231, 76, 60, 0.1);
    border: 1px solid rgba(231, 76, 60, 0.3);
    color: var(--text-secondary);
}

.transient-effect--flare .transient-effect-icon {
    color: #e74c3c;
}

.transient-effect--sporadic-e {
    background-color: rgba(155, 89, 182, 0.1);
    border: 1px solid rgba(155, 89, 182, 0.3);
    color: var(--text-secondary);
}

.transient-effect--sporadic-e .transient-effect-icon {
    color: #9b59b6;
}

/* Learning Disclaimer */
.learning-disclaimer {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.75rem;
    background-color: rgba(52, 152, 219, 0.1);
    border: 1px solid rgba(52, 152, 219, 0.2);
    border-radius: 6px;
    font-size: 0.75rem;
    line-height: 1.4;
}

.disclaimer-icon {
    flex-shrink: 0;
    font-size: 0.9rem;
}

.disclaimer-text {
    color: var(--text-secondary);
    font-style: italic;
}

/* World Map */
.map-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #0a1628 0%, #0f1f3a 50%, #0a1628 100%);
    border-radius: 0.25rem;
    overflow: hidden;
    padding: 0;
    position: relative;
    min-height: 0;
}

.map-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at center, transparent 50%, rgba(0, 0, 0, 0.4) 100%);
    pointer-events: none;
    z-index: 1;
    border-radius: 0.75rem;
}

#world-map {
    border-radius: 0.5rem;
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(26, 58, 92, 0.3),
        inset 0 0 60px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(100, 150, 200, 0.2);
    position: relative;
    z-index: 0;
    /* Mobile touch optimization */
    touch-action: none;
    -webkit-tap-highlight-color: transparent;
    max-width: 100%;
    height: auto;
}

/* Map Zoom Controls */
.map-zoom-controls {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    z-index: 20;
    pointer-events: auto;
}

.zoom-btn {
    width: 32px;
    height: 32px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    background: rgba(15, 23, 42, 0.85);
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.zoom-btn:hover {
    background: rgba(59, 130, 246, 0.9);
    border-color: rgba(59, 130, 246, 0.5);
}

.zoom-btn:active {
    transform: scale(0.9);
}

.zoom-reset {
    font-size: 0.9rem;
}

/* Map Overlay Controls */
.map-overlay-controls {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    z-index: 20;
    pointer-events: auto;
}

.overlay-toggle {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.6rem;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.75rem;
    color: var(--text-secondary);
    transition: all 0.15s;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.overlay-toggle:hover {
    background: rgba(30, 41, 59, 0.95);
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--text-primary);
}

.overlay-toggle input[type="checkbox"] {
    display: none;
}

.overlay-toggle input[type="checkbox"]:checked + .toggle-icon {
    color: var(--accent-primary);
}

.overlay-toggle input[type="checkbox"]:checked ~ .toggle-label {
    color: var(--accent-primary);
}

.overlay-toggle:has(input:checked) {
    border-color: rgba(59, 130, 246, 0.5);
    background: rgba(59, 130, 246, 0.2);
}

.toggle-icon {
    display: flex;
    align-items: center;
}

.toggle-icon svg {
    stroke: currentColor;
}

.toggle-label {
    font-weight: 500;
}

/* Feedback Panel */
.feedback-panel {
    display: flex;
    flex-direction: column;
    padding-bottom: 2rem;
}

.feedback-welcome {
    padding: 1rem;
}

.feedback-welcome h2 {
    margin-bottom: 0.5rem;
}

.getting-started {
    margin-top: 1rem;
    padding: 1rem;
    background-color: var(--bg-tertiary);
    border-radius: 0.5rem;
}

.getting-started h3 {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.getting-started ol {
    padding-left: 1.25rem;
    font-size: 0.9rem;
}

.getting-started li {
    margin-bottom: 0.5rem;
}

/* Result Container */
.result-container {
    padding: 1rem;
}

.result-container.success {
    border-left: 4px solid var(--accent-success);
}

.result-container.failure {
    border-left: 4px solid var(--accent-danger);
}

.result-headline {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

/* Signal Meter */
.signal-meter {
    margin-bottom: 1rem;
}

.signal-bar {
    height: 12px;
    background-color: var(--bg-tertiary);
    border-radius: 6px;
    overflow: hidden;
}

.signal-fill {
    height: 100%;
    border-radius: 6px;
    transition: width 0.5s ease-out;
}

.signal-label {
    text-align: center;
    margin-top: 0.25rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Path Mode Indicator (Short/Long Path) */
.path-mode-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    margin: 0.75rem 0;
    border-radius: 0.5rem;
    font-size: 0.85rem;
}

.path-mode-indicator.long-path {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(236, 72, 153, 0.2));
    border: 1px solid rgba(168, 85, 247, 0.4);
    flex-direction: column;
    align-items: flex-start;
}

.path-mode-indicator.short-path {
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.path-mode-indicator .path-icon {
    font-size: 1.1rem;
}

.path-mode-indicator .path-label {
    font-weight: 600;
    color: var(--text-primary);
}

.path-mode-indicator.long-path .path-label {
    color: #a855f7;
}

.path-mode-indicator .path-comparison {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.result-summary {
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

/* Factors Section */
.factors-section {
    margin-bottom: 1rem;
}

.factors-section h3 {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.factors-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.factor-item {
    background-color: var(--bg-tertiary);
    border-radius: 0.25rem;
    padding: 0.75rem;
    border-left: 3px solid var(--text-muted);
}

.factor-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
    overflow: hidden;
}

.factor-icon {
    font-size: 1rem;
    flex-shrink: 0;
}

.factor-name {
    font-weight: 500;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.factor-impact {
    font-size: 0.8rem;
    font-weight: 600;
    flex-shrink: 0;
    white-space: nowrap;
}

.factor-description {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.factor-details {
    margin-top: 0.5rem;
}

.factor-details summary {
    font-size: 0.8rem;
    color: var(--accent-primary);
    cursor: pointer;
}

.factor-details p {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    padding-left: 0.5rem;
    border-left: 2px solid var(--border-color);
}

/* Learning Section */
.learning-section {
    margin-bottom: 1rem;
    padding: 0.75rem;
    background-color: rgba(59, 130, 246, 0.1);
    border-radius: 0.5rem;
}

.learning-section h3 {
    font-size: 0.9rem;
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
}

.learning-point {
    margin-bottom: 0.75rem;
}

.learning-point h4 {
    font-size: 0.85rem;
    font-weight: 600;
}

.learning-point p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.experiment-hint {
    margin-top: 0.25rem;
    font-size: 0.8rem;
    color: var(--accent-warning);
}

/* Suggestions Section */
.suggestions-section {
    margin-bottom: 1rem;
}

.suggestions-section h3 {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.suggestions-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.suggestion-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.5rem;
    background-color: var(--bg-tertiary);
    border-radius: 0.25rem;
}

.suggestion-icon {
    font-size: 1.25rem;
}

.suggestion-content strong {
    display: block;
    font-size: 0.9rem;
}

.suggestion-content p {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Encouragement */
.encouragement {
    padding: 0.75rem;
    background-color: var(--bg-tertiary);
    border-radius: 0.5rem;
    text-align: center;
}

.encouragement strong {
    display: block;
    color: var(--accent-success);
    margin-bottom: 0.25rem;
}

.encouragement p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Discovery Overlay */
.discovery-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 1000;
}

.discovery-overlay.visible {
    opacity: 1;
}

.discovery-modal {
    background-color: var(--bg-secondary);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    max-width: 400px;
    transform: scale(0.9);
    transition: transform 0.3s;
}

.discovery-overlay.visible .discovery-modal {
    transform: scale(1);
}

.discovery-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.discovery-modal h2 {
    color: var(--accent-warning);
    margin-bottom: 0.5rem;
}

.discovery-modal h3 {
    margin-bottom: 1rem;
}

.discovery-modal p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.discovery-dismiss {
    padding: 0.75rem 2rem;
    background-color: var(--accent-primary);
    border: none;
    border-radius: 0.5rem;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.discovery-dismiss:hover {
    background-color: #2563eb;
}

/* Hint Overlay */
.hint-overlay {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background-color: var(--accent-primary);
    border-radius: 0.5rem;
    padding: 1rem;
    max-width: 250px;
    animation: slideIn 0.3s ease-out;
}

.hint-overlay.fade-out {
    animation: fadeOut 0.3s ease-out forwards;
}

.hint-content h4 {
    margin-bottom: 0.25rem;
}

.hint-content p {
    font-size: 0.85rem;
    opacity: 0.9;
}

/* Comparison Modal */
.comparison-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 1rem;
    max-width: 280px;
    animation: slideIn 0.3s ease-out;
    z-index: 100;
}

.comparison-modal.fade-out {
    animation: fadeOut 0.3s ease-out forwards;
}

.comparison-content h3 {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.comparison-bands {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.comparison-arrow {
    color: var(--text-muted);
}

.comparison-result {
    text-align: center;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.comparison-result.positive {
    color: var(--accent-success);
}

.comparison-result.negative {
    color: var(--accent-danger);
}

.comparison-reason {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Loading State */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
}

.radio-wave {
    width: 60px;
    height: 60px;
    border: 3px solid var(--accent-primary);
    border-radius: 50%;
    animation: wave 1s ease-out infinite;
}

.loading-state p {
    margin-top: 1rem;
    color: var(--text-secondary);
}

/* Animations */
@keyframes wave {
    0% {
        transform: scale(0.5);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

@keyframes slideIn {
    from {
        transform: translateX(20px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* Responsive */
@media (max-width: 1200px) {
    .app-container {
        grid-template-columns: 250px 1fr 280px;
    }
}

@media (max-width: 900px) {
    html, body {
        height: 100%;
        overflow: auto;
    }

    .app-container {
        grid-template-columns: 1fr;
        grid-template-rows: auto 50vh auto auto;
        height: auto;
        min-height: 100vh;
    }

    .app-header {
        flex-direction: row;
        gap: 0.5rem;
        padding: 0.5rem 0.75rem;
    }

    .app-subtitle {
        display: none;
    }

    .header-actions {
        gap: 0.5rem;
    }

    /* Map first on mobile */
    .panel-center {
        grid-column: 1;
        grid-row: 2;
        min-height: 50vh;
        overflow: hidden;
    }

    /* Controls below map */
    .panel-left {
        grid-column: 1;
        grid-row: 3;
        overflow-y: auto;
    }

    /* Results at bottom */
    .panel-right {
        grid-column: 1;
        grid-row: 4;
    }

    .map-container {
        height: 100%;
    }

    #world-map {
        max-width: 100%;
        height: 100%;
    }

    /* Compact controls on mobile */
    .controls-panel {
        gap: 0.75rem;
    }

    .control-section h3 {
        margin-bottom: 0.5rem;
        font-size: 0.75rem;
    }

    .band-info,
    .solar-activity-info {
        display: none;
    }
}

/* Mobile phones */
@media (max-width: 600px) {
    .app-header {
        padding: 0.75rem;
    }

    .app-title {
        font-size: 1.2rem;
    }

    .app-subtitle {
        font-size: 0.8rem;
    }

    .header-actions {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .header-button {
        padding: 0.4rem 0.75rem;
        font-size: 0.8rem;
    }

    .panel {
        padding: 0.75rem;
    }

    .control-section h3 {
        font-size: 0.75rem;
    }

    .band-button {
        padding: 0.5rem;
        font-size: 0.85rem;
    }

    .time-presets {
        flex-wrap: wrap;
    }

    .time-preset {
        flex: 1 1 45%;
        padding: 0.4rem;
        font-size: 0.75rem;
    }

    /* Language buttons */
    .lang-button {
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
    }

    .lang-name {
        display: none;
    }

    /* Feedback panel */
    .result-card {
        padding: 1rem;
    }

    .result-title {
        font-size: 1.1rem;
    }

    .factor-item {
        padding: 0.5rem;
    }

    /* Help modal */
    .help-modal {
        margin: 0.5rem;
        max-height: 90vh;
    }

    .help-modal-header {
        padding: 1rem;
    }

    .help-modal-header h2 {
        font-size: 1.1rem;
    }

    .help-modal-content {
        padding: 1rem;
    }

    .help-section h3 {
        font-size: 0.9rem;
    }

    .help-section p,
    .help-section li {
        font-size: 0.85rem;
    }

    /* Tutorial */
    .tutorial-tooltip {
        max-width: 280px;
        padding: 1rem;
    }

    .tutorial-tooltip h3 {
        font-size: 1rem;
    }

    .tutorial-tooltip p {
        font-size: 0.85rem;
    }

    .tutorial-nav button {
        padding: 0.4rem 0.75rem;
        font-size: 0.8rem;
    }
}

/* Touch-friendly adjustments */
@media (hover: none) and (pointer: coarse) {
    /* Larger touch targets */
    .band-button,
    .time-preset,
    .header-button,
    .lang-button {
        min-height: 44px;
        min-width: 44px;
    }

    /* Better spacing for touch */
    .band-selector {
        gap: 0.5rem;
    }

    /* Remove hover effects that don't work on touch */
    .band-button:hover,
    .time-preset:hover {
        transform: none;
    }
}

/* ========================================
   Tutorial System
   ======================================== */

/* Tutorial Overlay */
.tutorial-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    pointer-events: none;
}

.tutorial-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    pointer-events: auto;
}

/* Tutorial Highlight */
.tutorial-highlight {
    position: absolute;
    border: 3px solid var(--accent-primary);
    border-radius: 8px;
    box-shadow:
        0 0 0 9999px rgba(0, 0, 0, 0.6),
        0 0 20px var(--accent-primary),
        inset 0 0 20px rgba(59, 130, 246, 0.1);
    z-index: 10000;
    transition: all 0.3s ease-out;
    animation: tutorial-pulse 2s infinite;
}

@keyframes tutorial-pulse {
    0%, 100% {
        box-shadow:
            0 0 0 9999px rgba(0, 0, 0, 0.6),
            0 0 20px var(--accent-primary),
            inset 0 0 20px rgba(59, 130, 246, 0.1);
    }
    50% {
        box-shadow:
            0 0 0 9999px rgba(0, 0, 0, 0.6),
            0 0 30px var(--accent-primary),
            inset 0 0 30px rgba(59, 130, 246, 0.2);
    }
}

/* Tutorial Tooltip */
.tutorial-tooltip {
    position: absolute;
    width: 320px;
    background-color: var(--bg-secondary);
    border: 2px solid var(--accent-primary);
    border-radius: 12px;
    padding: 1rem;
    z-index: 10001;
    pointer-events: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    animation: tutorial-tooltip-appear 0.3s ease-out;
}

@keyframes tutorial-tooltip-appear {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tutorial-tooltip-center {
    animation: tutorial-tooltip-appear-center 0.3s ease-out;
}

@keyframes tutorial-tooltip-appear-center {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.tutorial-tooltip-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.tutorial-step-indicator {
    font-size: 0.8rem;
    color: var(--text-muted);
    background-color: var(--bg-tertiary);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.tutorial-skip-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
    transition: color 0.2s;
}

.tutorial-skip-btn:hover {
    color: var(--text-primary);
}

.tutorial-tooltip-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.tutorial-tooltip-content {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

.tutorial-tooltip-action {
    font-size: 0.85rem;
    color: var(--accent-primary);
    font-style: italic;
    margin-bottom: 1rem;
    padding: 0.5rem;
    background-color: rgba(59, 130, 246, 0.1);
    border-radius: 6px;
}

.tutorial-tooltip-buttons {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.tutorial-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.tutorial-btn-back {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
}

.tutorial-btn-back:hover {
    background-color: var(--border-color);
}

.tutorial-btn-next {
    background-color: var(--accent-primary);
    color: white;
}

.tutorial-btn-next:hover {
    background-color: #2563eb;
}

/* Tutorial Prompt (Initial Dialog) */
.tutorial-prompt-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease-out;
}

.tutorial-prompt-overlay.visible {
    opacity: 1;
}

.tutorial-prompt {
    background-color: var(--bg-secondary);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    max-width: 420px;
    transform: scale(0.9);
    transition: transform 0.3s ease-out;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.tutorial-prompt-overlay.visible .tutorial-prompt {
    transform: scale(1);
}

.tutorial-prompt-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.tutorial-prompt h2 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.tutorial-prompt p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.tutorial-prompt-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.tutorial-prompt-buttons .tutorial-btn {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

.tutorial-btn-skip {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
}

.tutorial-btn-skip:hover {
    background-color: var(--border-color);
}

.tutorial-btn-start {
    background-color: var(--accent-primary);
    color: white;
}

.tutorial-btn-start:hover {
    background-color: #2563eb;
}

/* === Footer === */
.app-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    padding: 0.75rem 1rem;
    text-align: center;
    z-index: 9999;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--accent-primary);
    text-decoration: underline;
}

.footer-separator {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Adjust body to account for fixed footer */
body {
    padding-bottom: 3rem;
}

/* === Legal Modals (Imprint/Privacy) === */
.legal-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    padding: 1rem;
}

.legal-modal {
    background-color: var(--bg-secondary);
    border-radius: 12px;
    max-width: 600px;
    max-height: 85vh;
    width: 100%;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.legal-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.legal-modal-header h2 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--text-primary);
}

.legal-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
    transition: color 0.2s;
}

.legal-modal-close:hover {
    color: var(--text-primary);
}

.legal-modal-content {
    padding: 1.5rem;
    overflow-y: auto;
    max-height: calc(85vh - 80px);
}

.legal-section {
    margin-bottom: 1.5rem;
}

.legal-section:last-child {
    margin-bottom: 0;
}

.legal-section h3 {
    color: var(--accent-primary);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.legal-section p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

.legal-section ul {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0.5rem 0 0 1.5rem;
    padding: 0;
}

.legal-section li {
    margin-bottom: 0.25rem;
}

.legal-info {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-style: italic;
    margin-bottom: 1.5rem;
}

.legal-address {
    background-color: var(--bg-tertiary);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 0.5rem;
}

.legal-address p {
    margin: 0.25rem 0;
}

.legal-email {
    color: var(--accent-primary);
    text-decoration: none;
}

.legal-email:hover {
    text-decoration: underline;
}

/* ========================================
   Solar Weather Panel
   ======================================== */

.solar-weather-panel {
    background-color: var(--bg-tertiary);
    border-radius: 0.5rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.solar-weather-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background-color: var(--bg-secondary);
    cursor: pointer;
    transition: background-color 0.2s;
    user-select: none;
}

.solar-weather-header:hover {
    background-color: rgba(59, 130, 246, 0.1);
}

.solar-weather-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.solar-weather-title-icon {
    font-size: 1.1rem;
}

.solar-weather-toggle {
    color: var(--text-muted);
    font-size: 1rem;
    transition: transform 0.3s;
}

.solar-weather-panel.collapsed .solar-weather-toggle {
    transform: rotate(-90deg);
}

.solar-weather-content {
    padding: 1rem;
    padding-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.solar-weather-panel.collapsed .solar-weather-content {
    display: none;
}

/* Overall Rating Badge */
.solar-weather-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
}

.solar-weather-rating-icon {
    font-size: 1.25rem;
}

.condition-badge--excellent {
    background-color: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.4);
}

.condition-badge--good {
    background-color: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.4);
}

.condition-badge--fair {
    background-color: rgba(234, 179, 8, 0.2);
    color: #eab308;
    border: 1px solid rgba(234, 179, 8, 0.4);
}

.condition-badge--poor {
    background-color: rgba(249, 115, 22, 0.2);
    color: #f97316;
    border: 1px solid rgba(249, 115, 22, 0.4);
}

.condition-badge--severe {
    background-color: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.4);
}

/* Weather Item Row */
.weather-item {
    padding: 0.5rem;
    background-color: var(--bg-secondary);
    border-radius: 0.375rem;
}

.weather-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.25rem;
}

.weather-item-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.weather-item-value {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.weather-item--stacked {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.weather-item--stacked .weather-item-label {
    margin-bottom: 0.1rem;
}

.weather-item-sun {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.weather-item-icon {
    font-size: 1rem;
}

.weather-item-personality {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
}

.weather-item-description {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Event Alerts */
.event-alerts {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.event-alert {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.85rem;
    font-weight: 500;
}

.event-alert-icon {
    font-size: 1rem;
}

.event-alert-content {
    flex: 1;
}

.event-alert-name {
    font-weight: 600;
}

.event-alert-effect {
    font-size: 0.75rem;
    opacity: 0.9;
}

.event-alert--flare {
    background-color: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.4);
    animation: event-pulse-red 2s infinite;
}

.event-alert--aurora {
    background-color: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.4);
    animation: event-pulse-green 2s infinite;
}

.event-alert--sporadic-e {
    background-color: rgba(155, 89, 182, 0.2);
    color: #9b59b6;
    border: 1px solid rgba(155, 89, 182, 0.4);
    animation: event-pulse-purple 2s infinite;
}

@keyframes event-pulse-red {
    0%, 100% { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.4); }
    50% { box-shadow: 0 0 8px 2px rgba(231, 76, 60, 0.3); }
}

@keyframes event-pulse-green {
    0%, 100% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.4); }
    50% { box-shadow: 0 0 8px 2px rgba(46, 204, 113, 0.3); }
}

@keyframes event-pulse-purple {
    0%, 100% { box-shadow: 0 0 0 0 rgba(155, 89, 182, 0.4); }
    50% { box-shadow: 0 0 8px 2px rgba(155, 89, 182, 0.3); }
}

/* Band Recommendations */
.band-rec-section {
    margin-top: 0.25rem;
}

.band-rec-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 0.5rem;
}

.band-rec-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.band-rec {
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.band-rec--excellent {
    background-color: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.band-rec--good {
    background-color: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.band-rec--fair {
    background-color: rgba(234, 179, 8, 0.2);
    color: #eab308;
    border: 1px solid rgba(234, 179, 8, 0.3);
}

.band-rec--poor {
    background-color: rgba(249, 115, 22, 0.15);
    color: #f97316;
    border: 1px solid rgba(249, 115, 22, 0.3);
}

.band-rec--closed {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--text-muted);
    border: 1px solid rgba(239, 68, 68, 0.2);
    text-decoration: line-through;
}

/* Educational Note */
.solar-weather-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    padding: 0.5rem;
    background-color: rgba(59, 130, 246, 0.05);
    border-radius: 0.25rem;
    border-left: 2px solid var(--accent-primary);
    line-height: 1.4;
}

/* Mobile adjustments for solar weather panel */
@media (max-width: 900px) {
    .solar-weather-panel {
        margin-top: 0.75rem;
    }

    .solar-weather-header {
        padding: 0.5rem 0.75rem;
    }

    .solar-weather-title {
        font-size: 0.85rem;
    }

    .solar-weather-content {
        padding: 0.75rem;
        gap: 0.5rem;
    }

    .solar-weather-rating {
        padding: 0.5rem;
        font-size: 0.9rem;
    }

    .band-rec {
        padding: 0.2rem 0.4rem;
        font-size: 0.7rem;
    }
}

/* Mobile adjustments for footer */
@media (max-width: 600px) {
    .app-footer {
        padding: 0.4rem 0.75rem;
    }

    .footer-links a {
        font-size: 0.75rem;
    }

    .footer-separator {
        font-size: 0.75rem;
    }

    .legal-modal {
        max-height: 90vh;
        margin: 0.5rem;
    }

    .legal-modal-header {
        padding: 1rem;
    }

    .legal-modal-header h2 {
        font-size: 1.1rem;
    }

    .legal-modal-content {
        padding: 1rem;
        max-height: calc(90vh - 70px);
    }
}
