/* ==========================================
   Australia NEM - Theme Override
   ========================================== */

:root {
    /* Australian theme colors - Green and Gold */
    --primary: #00843D;          /* Australian green */
    --primary-light: #00A651;
    --primary-dark: #006B32;
    --accent: #FFCD00;           /* Australian gold */
    --accent-light: #FFE066;

    /* Keep dark theme from base */
    --bg-dark: #1a1a2e;
    --bg-card: #16213e;
    --text-primary: #ffffff;
    --text-secondary: #a0aec0;

    /* Chart colors */
    --chart-line: #00A651;
    --chart-fill: rgba(0, 166, 81, 0.1);
    --chart-range: rgba(255, 205, 0, 0.2);
}

/* Logo styling */
.logo svg {
    color: var(--accent);
}

.logo span {
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Header accent */
.header {
    border-bottom: 2px solid var(--primary);
}

/* Summary card icons - Australian theme */
.card-icon.avg {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
}

.card-icon.min {
    background: linear-gradient(135deg, #2196F3, #64B5F6);
}

.card-icon.max {
    background: linear-gradient(135deg, #FF5722, #FF8A65);
}

.card-icon.spread {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
}

/* Button active state */
.btn.active,
.btn:hover {
    background: var(--primary);
    border-color: var(--primary);
}

/* Chart legend colors */
.legend-color.predicted {
    background: var(--primary-light);
}

.legend-color.range {
    background: var(--accent);
    opacity: 0.5;
}

/* Alert styling */
.alert-item.warning {
    border-left-color: var(--accent);
}

.alert-item.success {
    border-left-color: var(--primary);
}

.alert-item.danger {
    border-left-color: #FF5722;
}

.alert-item.info {
    border-left-color: #2196F3;
}

/* Negative price indicator (common in SA) */
.price-negative {
    color: #4CAF50;
    font-weight: 600;
}

.price-negative::before {
    content: '';
}

/* High price indicator */
.price-high {
    color: #FF5722;
    font-weight: 600;
}

/* Region-specific indicators */
.region-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.85rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
}

.region-indicator.sa1 {
    border-color: var(--accent);
}

.region-indicator.vic1 {
    border-color: var(--primary);
}

/* Footer links */
.footer a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s;
}

.footer a:hover {
    color: var(--primary-light);
}

/* Select dropdowns - Australian theme */
.region-select,
.lang-select {
    background: var(--bg-card);
    border: 1px solid var(--primary);
    color: var(--text-primary);
}

.region-select:focus,
.lang-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(255, 205, 0, 0.2);
}

/* NEM-specific: 5-minute interval indicator */
.interval-badge {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    background: var(--primary);
    color: white;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

/* Price spike warning banner */
.price-spike-banner {
    background: linear-gradient(135deg, #FF5722, #FF8A65);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.price-spike-banner svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

/* Renewable indicator */
.renewable-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 166, 81, 0.1);
    border: 1px solid var(--primary);
    border-radius: 8px;
    font-size: 0.9rem;
}

.renewable-indicator .percentage {
    font-weight: 700;
    color: var(--primary-light);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .nav {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .region-select,
    .lang-select {
        font-size: 0.85rem;
        padding: 0.4rem 0.6rem;
    }
}

/* Dark mode enhancements */
@media (prefers-color-scheme: dark) {
    .card {
        background: var(--bg-card);
        border: 1px solid rgba(0, 132, 61, 0.2);
    }

    .card:hover {
        border-color: var(--primary);
    }
}
