/**
 * Light Theme Styles
 * Applied when [data-theme="light"] is set on :root
 */

[data-theme="light"] {
    /* ===== BASE COLORS ===== */
    --bg-base: #f8f9fa;
    --bg-surface: #ffffff;
    --bg-surface-elevated: #f1f3f5;

    /* ===== TEXT COLORS ===== */
    --text-high: #212529;
    --text-mid: #495057;
    --text-low: #6c757d;

    /* ===== ACCENT COLORS (Keep vibrant) ===== */
    --accent-primary: #00d084;
    --accent-secondary: #00a8ff;
    --accent-tertiary: #a855f7;

    /* ===== STATUS COLORS ===== */
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;

    /* ===== GLASSMORPHISM ===== */
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(0, 0, 0, 0.1);
    --glass-border-active: rgba(0, 208, 132, 0.3);
    --glass-blur: blur(10px);

    /* ===== SHADOWS ===== */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.08);

    /* ===== GRADIENTS ===== */
    --grad-premium: linear-gradient(135deg, #00d084 0%, #00a8ff 100%);
    --grad-surface: linear-gradient(145deg,
            rgba(255, 255, 255, 0.95),
            rgba(248, 250, 252, 0.98));
    --grad-card: linear-gradient(145deg,
            rgba(255, 255, 255, 0.7),
            rgba(248, 250, 252, 0.5));
}

/* ===== LIGHT THEME COMPONENT ADJUSTMENTS ===== */

[data-theme="light"] {

    /* Body */
    body {
        color: var(--text-high);
    }

    /* Header */
    .header {
        background: rgba(255, 255, 255, 0.95);
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    }

    /* Cards */
    .card {
        background: rgba(255, 255, 255, 0.9);
        box-shadow: var(--shadow-card);
    }

    /* Coin Rows */
    .coin-row {
        background: rgba(255, 255, 255, 0.7);
        border: 1px solid rgba(0, 0, 0, 0.08);
    }

    .coin-row:active {
        background: rgba(248, 250, 252, 0.9);
    }

    /* Bottom Navigation */
    .bottom-nav {
        background: rgba(255, 255, 255, 0.98);
        border-top: 1px solid rgba(0, 0, 0, 0.08);
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
    }

    .nav-item {
        color: var(--text-mid);
    }

    .nav-item.active {
        color: var(--accent-primary);
    }

    /* Buttons */
    .btn-secondary {
        background: #f1f3f5;
        color: var(--text-high);
        border: 1px solid rgba(0, 0, 0, 0.1);
    }

    .icon-btn {
        background: #f8f9fa;
        border: 1px solid rgba(0, 0, 0, 0.1);
        color: var(--text-mid);
    }

    /* Modals */
    .modal {
        background: rgba(0, 0, 0, 0.6);
    }

    .modal-content {
        background: var(--bg-surface);
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    }

    /* AI Drawer */
    .ai-drawer {
        background: rgba(255, 255, 255, 0.98);
        border-left: 1px solid rgba(0, 0, 0, 0.08);
    }

    .ai-message.assistant {
        background: #f1f3f5;
        color: var(--text-high);
    }

    /* Ticker */
    .ticker-wrap {
        background: rgba(255, 255, 255, 0.95);
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    }

    /* Menu Items */
    .menu-item {
        background: rgba(255, 255, 255, 0.7);
        color: var(--text-high);
    }

    .menu-item:active {
        background: #f1f3f5;
    }

    /* Inputs */
    input,
    textarea,
    select {
        background: #ffffff;
        border: 1px solid rgba(0, 0, 0, 0.15);
        color: var(--text-high);
    }

    input::placeholder {
        color: var(--text-low);
    }

    /* Skeleton Loaders */
    .skeleton {
        background: linear-gradient(90deg,
                rgba(0, 0, 0, 0.05) 25%,
                rgba(0, 0, 0, 0.1) 50%,
                rgba(0, 0, 0, 0.05) 75%);
    }

    /* Search Results */
    .search-results {
        background: rgba(255, 255, 255, 0.98);
        border: 1px solid rgba(0, 0, 0, 0.1);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

    .search-result-item {
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    }

    .search-result-item:active {
        background: #f8f9fa;
    }

    /* Stats Pills */
    .stat-pill {
        background: rgba(255, 255, 255, 0.8);
        border: 1px solid rgba(0, 0, 0, 0.1);
    }

    /* News Cards */
    .news-card {
        background: rgba(255, 255, 255, 0.9);
        border: 1px solid rgba(0, 0, 0, 0.08);
    }

    /* Signal Cards */
    .signal-card {
        background: rgba(255, 255, 255, 0.9);
        border: 1px solid rgba(0, 0, 0, 0.08);
    }

    /* Filter Chips */
    .chip {
        background: #f8f9fa;
        border: 1px solid rgba(0, 0, 0, 0.1);
        color: var(--text-high);
    }

    .chip.active {
        background: var(--accent-primary);
        color: white;
        border-color: var(--accent-primary);
    }
}

/* ===== LIGHT THEME TRANSITIONS ===== */
* {
    transition:
        background-color 0.3s ease,
        border-color 0.3s ease,
        color 0.3s ease;
}

/* Preserve quick transitions for interactive elements */
button,
.btn,
.nav-item,
.icon-btn {
    transition:
        background-color 0.15s ease,
        border-color 0.15s ease,
        color 0.15s ease,
        transform 0.15s ease,
        opacity 0.15s ease;
}