/* Aurora Forecast Styles */
body {
    font-family: Arial, sans-serif;
    background-color: var(--primary-bg-color, black);
    color: var(--primary-text-color, white);
    min-height: 100vh;
    margin: 0;
    padding: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(0, 255, 100, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(138, 43, 226, 0.1) 0%, transparent 50%);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

h1 {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 10px;
    color: var(--primary-text-color, white);
    text-shadow: 0 0 20px rgba(0, 255, 100, 0.3);
}

.description {
    text-align: center;
    color: var(--secondary-text-color, #999);
    margin-bottom: 40px;
    font-size: 1.1em;
}

/* Current Activity Section */
.current-activity {
    background: rgba(51, 51, 51, 0.8);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 40px;
    border: 2px solid var(--input-border-color, darkred);
}

.current-activity h2 {
    text-align: center;
    margin: 0 0 30px 0;
    color: var(--button-bg-color, darkred);
}

.activity-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.activity-card {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    border: 2px solid rgba(0, 255, 100, 0.2);
    transition: all 0.3s;
}

.activity-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 255, 100, 0.5);
    box-shadow: 0 8px 20px rgba(0, 255, 100, 0.2);
}

.activity-icon {
    font-size: 3em;
    margin-bottom: 15px;
}

.activity-label {
    font-size: 0.95em;
    color: var(--secondary-text-color, #999);
    margin-bottom: 10px;
}

.activity-value {
    font-size: 3em;
    font-weight: bold;
    color: #00ff66;
    margin-bottom: 5px;
    text-shadow: 0 0 10px rgba(0, 255, 100, 0.5);
}

.activity-status {
    font-size: 0.9em;
    color: var(--secondary-text-color, #999);
}

/* KP Index Meter */
.kp-meter-container {
    margin-top: 40px;
}

.kp-meter-container h3 {
    text-align: center;
    color: var(--primary-text-color, white);
    margin-bottom: 20px;
}

.kp-meter {
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.kp-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #00ff00, #ffff00, #ff8800, #ff0000);
    border-radius: 20px;
    transition: width 1s ease-out;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
}

.kp-scale {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    padding: 0 10px;
    font-size: 0.9em;
    color: var(--secondary-text-color, #999);
}

.kp-legend {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.kp-legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.kp-color {
    width: 40px;
    height: 20px;
    border-radius: 5px;
}

/* Forecast Section */
.forecast-section {
    background: rgba(51, 51, 51, 0.8);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 40px;
    border: 2px solid var(--input-border-color, darkred);
}

.forecast-section h2 {
    text-align: center;
    margin: 0 0 30px 0;
    color: var(--button-bg-color, darkred);
}

.forecast-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.forecast-card {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    border: 2px solid rgba(138, 43, 226, 0.3);
    transition: all 0.3s;
}

.forecast-card:hover {
    transform: translateY(-5px);
    border-color: rgba(138, 43, 226, 0.6);
    box-shadow: 0 8px 20px rgba(138, 43, 226, 0.3);
}

.forecast-date {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--primary-text-color, white);
}

.forecast-kp {
    font-size: 2.5em;
    font-weight: bold;
    margin: 15px 0;
}

.forecast-kp.low { color: #00ff00; text-shadow: 0 0 10px rgba(0, 255, 0, 0.5); }
.forecast-kp.moderate { color: #ffaa00; text-shadow: 0 0 10px rgba(255, 170, 0, 0.5); }
.forecast-kp.high { color: #ff4400; text-shadow: 0 0 10px rgba(255, 68, 0, 0.5); }
.forecast-kp.extreme { color: #ff0000; text-shadow: 0 0 10px rgba(255, 0, 0, 0.5); }

.forecast-label {
    font-size: 0.9em;
    color: var(--secondary-text-color, #999);
    margin-bottom: 10px;
}

.forecast-visibility {
    margin-top: 15px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    font-size: 0.9em;
}

/* Aurora Oval Section */
.aurora-oval-section {
    background: rgba(51, 51, 51, 0.8);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 40px;
    border: 2px solid var(--input-border-color, darkred);
}

.aurora-oval-section h2 {
    text-align: center;
    margin: 0 0 30px 0;
    color: var(--button-bg-color, darkred);
}

.oval-display {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.oval-map {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    background: radial-gradient(circle, rgba(0, 50, 100, 0.3) 0%, rgba(0, 0, 0, 0.5) 100%);
    border-radius: 50%;
    border: 2px solid rgba(0, 255, 100, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.oval-ring {
    position: absolute;
    width: 60%;
    height: 60%;
    border-radius: 50%;
    background: radial-gradient(circle,
        transparent 40%,
        rgba(0, 255, 100, 0.6) 50%,
        rgba(138, 43, 226, 0.4) 60%,
        transparent 70%
    );
    animation: pulseOval 3s ease-in-out infinite;
    box-shadow:
        0 0 30px rgba(0, 255, 100, 0.5),
        inset 0 0 30px rgba(0, 255, 100, 0.3);
}

@keyframes pulseOval {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; }
}

.latitude-markers {
    position: absolute;
    left: 10px;
    top: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}

.lat-marker {
    font-size: 0.85em;
    color: var(--secondary-text-color, #999);
    background: rgba(0, 0, 0, 0.5);
    padding: 2px 8px;
    border-radius: 4px;
}

.oval-info h3 {
    color: var(--button-bg-color, darkred);
    margin-bottom: 20px;
}

.visibility-item {
    margin-bottom: 15px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
}

.visibility-item strong {
    display: block;
    margin-bottom: 5px;
    color: var(--primary-text-color, white);
}

.visibility-item span {
    color: #00ff66;
}

.oval-note {
    margin-top: 20px;
    padding: 15px;
    background: rgba(0, 255, 100, 0.1);
    border-left: 4px solid #00ff66;
    border-radius: 5px;
    font-size: 0.95em;
    line-height: 1.6;
}

/* Locations Section */
.locations-section {
    margin-bottom: 40px;
}

.locations-section h2 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--button-bg-color, darkred);
}

.locations-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.location-card {
    background: rgba(51, 51, 51, 0.8);
    border-radius: 15px;
    padding: 25px;
    border: 2px solid rgba(0, 255, 100, 0.2);
    transition: all 0.3s;
}

.location-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 255, 100, 0.5);
    box-shadow: 0 8px 20px rgba(0, 255, 100, 0.3);
}

.location-card h3 {
    margin: 0 0 15px 0;
    color: #00ff66;
    font-size: 1.2em;
}

.location-details p {
    margin: 10px 0;
    font-size: 0.9em;
    line-height: 1.6;
}

.location-details strong {
    color: var(--primary-text-color, white);
}

/* Guide Section */
.guide-section {
    margin-bottom: 40px;
}

.guide-section h2 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--button-bg-color, darkred);
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.guide-card {
    background: rgba(51, 51, 51, 0.8);
    border-radius: 15px;
    padding: 30px;
    border: 2px solid rgba(138, 43, 226, 0.3);
}

.guide-card h3 {
    margin: 0 0 20px 0;
    color: #aa66ff;
}

.guide-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.guide-card li {
    margin-bottom: 12px;
    padding-left: 20px;
    position: relative;
    line-height: 1.6;
}

.guide-card li::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: #00ff66;
}

/* Alert Section */
.alert-section {
    background: rgba(51, 51, 51, 0.8);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 40px;
    border: 2px solid var(--input-border-color, darkred);
    text-align: center;
}

.alert-section h2 {
    margin: 0 0 20px 0;
    color: var(--button-bg-color, darkred);
}

.alert-info p {
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 25px;
}

.alert-btn {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(135deg, #00ff66, #00aa44);
    color: black;
    text-decoration: none;
    border-radius: 10px;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 255, 100, 0.3);
}

.alert-btn:hover {
    background: linear-gradient(135deg, #00ff88, #00cc55);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 255, 100, 0.5);
}

/* Disclaimer */
.disclaimer {
    text-align: center;
    font-size: 0.9em;
    color: var(--secondary-text-color, #999);
    line-height: 1.6;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

.disclaimer a {
    color: #00ff66;
    text-decoration: none;
}

.disclaimer a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .locations-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .oval-display {
        grid-template-columns: 1fr;
    }

    .locations-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2em;
    }

    .activity-grid,
    .forecast-grid {
        grid-template-columns: 1fr;
    }

    .guide-grid {
        grid-template-columns: 1fr;
    }

    .locations-grid {
        grid-template-columns: 1fr;
    }

    .kp-legend {
        flex-direction: column;
        gap: 10px;
    }

    .current-activity,
    .forecast-section,
    .aurora-oval-section,
    .alert-section {
        padding: 30px 20px;
    }
}

/* Light Mode Support */
[data-theme="light"] body {
    background: #f0f2f5;
    color: #333;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(0, 150, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(138, 43, 226, 0.05) 0%, transparent 50%);
}

[data-theme="light"] h1 {
    color: #1a1a1a;
    text-shadow: none;
}

[data-theme="light"] .current-activity,
[data-theme="light"] .forecast-section,
[data-theme="light"] .aurora-oval-section,
[data-theme="light"] .alert-section,
[data-theme="light"] .location-card,
[data-theme="light"] .guide-card {
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    border-color: #0056b3;
}

[data-theme="light"] .current-activity h2,
[data-theme="light"] .forecast-section h2,
[data-theme="light"] .aurora-oval-section h2,
[data-theme="light"] .alert-section h2,
[data-theme="light"] .locations-section h2,
[data-theme="light"] .guide-section h2,
[data-theme="light"] .oval-info h3 {
    color: #0056b3;
}

[data-theme="light"] .activity-card,
[data-theme="light"] .forecast-card {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 100, 255, 0.3);
}

[data-theme="light"] .activity-value {
    color: #00aa44;
}

[data-theme="light"] .location-card h3 {
    color: #00aa44;
}

[data-theme="light"] .guide-card h3 {
    color: #6633cc;
}

[data-theme="light"] .alert-btn {
    background: linear-gradient(135deg, #0056b3, #003d82);
    color: white;
}

[data-theme="light"] .alert-btn:hover {
    background: linear-gradient(135deg, #0066cc, #004d99);
}

[data-theme="light"] .disclaimer {
    background: rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .disclaimer a {
    color: #0056b3;
}
