/* ===== EWNET THEME ENGINE ===== */
/* Default: Light Mode */
:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-card: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --accent-primary: #0ea5e9;
    --accent-secondary: #0284c7;
    --accent-glow: rgba(14, 165, 233, 0.1);
    --border-color: #e2e8f0;
    --nav-bg: rgba(255, 255, 255, 0.95);
    --nav-text: #1e293b;
    --footer-bg: #1a1a2e;
    --footer-text: rgba(255, 255, 255, 0.8);
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.07);
    --glass-blur: none;
    --glass-bg: transparent;
    --glass-border: transparent;
    --gradient-hero: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    --neon-glow: none;
}

/* Dark Mode 🌙 */
[data-theme="dark"] {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-card: #1e293b;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --accent-primary: #38bdf8;
    --accent-secondary: #0ea5e9;
    --accent-glow: rgba(56, 189, 248, 0.15);
    --border-color: #334155;
    --nav-bg: rgba(15, 23, 42, 0.95);
    --nav-text: #f1f5f9;
    --footer-bg: #020617;
    --footer-text: rgba(255, 255, 255, 0.7);
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --gradient-hero: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

/* Gradient Mode 🌈 */
[data-theme="gradient"] {
    --bg-primary: #0f172a;
    --bg-secondary: #1e1b4b;
    --bg-card: rgba(255, 255, 255, 0.05);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.8);
    --text-muted: rgba(255, 255, 255, 0.5);
    --accent-primary: #a78bfa;
    --accent-secondary: #818cf8;
    --accent-glow: rgba(167, 139, 250, 0.2);
    --border-color: rgba(255, 255, 255, 0.1);
    --nav-bg: rgba(15, 23, 42, 0.8);
    --nav-text: #ffffff;
    --footer-bg: #0c0a1d;
    --footer-text: rgba(255, 255, 255, 0.7);
    --card-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --glass-blur: blur(16px);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --gradient-hero: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4c1d95 100%);
}

/* Corporate Blue */
[data-theme="corporate-blue"] {
    --bg-primary: #ffffff;
    --bg-secondary: #eff6ff;
    --bg-card: #ffffff;
    --text-primary: #1e3a5f;
    --text-secondary: #3b6fa0;
    --text-muted: #6b9bc7;
    --accent-primary: #1e40af;
    --accent-secondary: #1e3a8a;
    --accent-glow: rgba(30, 64, 175, 0.08);
    --border-color: #bfdbfe;
    --nav-bg: rgba(255, 255, 255, 0.98);
    --nav-text: #1e3a5f;
    --footer-bg: #1e3a5f;
    --footer-text: rgba(255, 255, 255, 0.85);
    --card-shadow: 0 2px 4px rgba(30, 58, 95, 0.06);
    --gradient-hero: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
}

/* Midnight Blue */
[data-theme="midnight-blue"] {
    --bg-primary: #0a1628;
    --bg-secondary: #0f2035;
    --bg-card: #132743;
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --accent-primary: #22d3ee;
    --accent-secondary: #06b6d4;
    --accent-glow: rgba(34, 211, 238, 0.15);
    --border-color: #1e3a5f;
    --nav-bg: rgba(10, 22, 40, 0.95);
    --nav-text: #e2e8f0;
    --footer-bg: #050d1a;
    --footer-text: rgba(255, 255, 255, 0.7);
    --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    --gradient-hero: linear-gradient(135deg, #0a1628 0%, #0f2035 100%);
    --neon-glow: 0 0 20px rgba(34, 211, 238, 0.3);
}

/* Glass (Glassmorphism) */
[data-theme="glass"] {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-card: rgba(255, 255, 255, 0.03);
    --text-primary: #f8fafc;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.4);
    --accent-primary: #38bdf8;
    --accent-secondary: #0ea5e9;
    --accent-glow: rgba(56, 189, 248, 0.1);
    --border-color: rgba(255, 255, 255, 0.08);
    --nav-bg: rgba(15, 23, 42, 0.6);
    --nav-text: #f8fafc;
    --footer-bg: rgba(2, 6, 23, 0.8);
    --footer-text: rgba(255, 255, 255, 0.7);
    --card-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    --glass-blur: blur(20px);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --gradient-hero: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

/* Minimal */
[data-theme="minimal"] {
    --bg-primary: #ffffff;
    --bg-secondary: #fafafa;
    --bg-card: #ffffff;
    --text-primary: #171717;
    --text-secondary: #525252;
    --text-muted: #a3a3a3;
    --accent-primary: #2563eb;
    --accent-secondary: #1d4ed8;
    --accent-glow: rgba(37, 99, 235, 0.05);
    --border-color: #f0f0f0;
    --nav-bg: rgba(255, 255, 255, 0.98);
    --nav-text: #171717;
    --footer-bg: #171717;
    --footer-text: rgba(255, 255, 255, 0.7);
    --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    --gradient-hero: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
}

/* Neon Tech */
[data-theme="neon-tech"] {
    --bg-primary: #000000;
    --bg-secondary: #0a0a0a;
    --bg-card: #111111;
    --text-primary: #e5e5e5;
    --text-secondary: #a3a3a3;
    --text-muted: #525252;
    --accent-primary: #22d3ee;
    --accent-secondary: #4ade80;
    --accent-glow: rgba(34, 211, 238, 0.2);
    --border-color: #262626;
    --nav-bg: rgba(0, 0, 0, 0.9);
    --nav-text: #e5e5e5;
    --footer-bg: #000000;
    --footer-text: rgba(255, 255, 255, 0.6);
    --card-shadow: 0 0 15px rgba(34, 211, 238, 0.1);
    --gradient-hero: linear-gradient(135deg, #000000 0%, #0a0a0a 100%);
    --neon-glow: 0 0 30px rgba(34, 211, 238, 0.4), 0 0 60px rgba(74, 222, 128, 0.2);
}

/* ===== GLOBAL THEME APPLICATIONS ===== */
body {
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: background 0.3s ease, color 0.3s ease;
}

.hero { background: var(--gradient-hero); }

.card, .glass-card {
    background: var(--glass-bg, var(--bg-card));
    backdrop-filter: var(--glass-blur, none);
    border: 1px solid var(--glass-border, var(--border-color));
    box-shadow: var(--card-shadow);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.site-footer, footer.footer {
    background: var(--footer-bg) !important;
    color: var(--footer-text) !important;
}

.navbar, .top-bar {
    background: var(--nav-bg);
    color: var(--nav-text);
}

.btn-primary {
    background: var(--accent-primary);
    box-shadow: var(--neon-glow, none);
}

h1, h2, h3, h4, h5, h6 { color: var(--text-primary); }
p, li, span, small { color: var(--text-secondary); }
.text-muted { color: var(--text-muted) !important; }
a { color: var(--accent-primary); }
.section-subtitle { color: var(--accent-primary); }

/* Red White New (WorldLink-inspired) */
[data-theme="red-white-new"] {
    --bg-primary: #ffffff;
    --bg-secondary: #f5f7fa;
    --bg-card: #ffffff;
    --text-primary: #1a1a2e;
    --text-secondary: #4a5568;
    --text-muted: #a0aec0;
    --accent-primary: #e53e3e;
    --accent-secondary: #c53030;
    --accent-glow: rgba(229, 62, 62, 0.08);
    --border-color: #e2e8f0;
    --nav-bg: rgba(255, 255, 255, 0.98);
    --nav-text: #1a1a2e;
    --footer-bg: #1a1a2e;
    --footer-text: rgba(255, 255, 255, 0.8);
    --card-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    --glass-blur: none;
    --glass-bg: transparent;
    --glass-border: transparent;
    --gradient-hero: linear-gradient(135deg, #fff5f5 0%, #fed7d7 50%, #ffffff 100%);
    --neon-glow: none;
}

/* ISP Clean specific overrides */
[data-theme="red-white-new"] .btn-primary {
    background: #e53e3e;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 14px rgba(229, 62, 62, 0.3);
}
[data-theme="red-white-new"] .btn-primary:hover {
    background: #c53030;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(229, 62, 62, 0.4);
}
[data-theme="red-white-new"] .card,
[data-theme="red-white-new"] .glass-card {
    border-radius: 16px;
    border: 1px solid #edf2f7;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
[data-theme="red-white-new"] .card:hover,
[data-theme="red-white-new"] .glass-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}
[data-theme="red-white-new"] h1, [data-theme="red-white-new"] h2, [data-theme="red-white-new"] h3 {
    color: #1a1a2e;
    font-weight: 800;
}
[data-theme="red-white-new"] .section-subtitle {
    color: #e53e3e;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.8rem;
}
[data-theme="red-white-new"] .navbar {
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
[data-theme="red-white-new"] .top-bar {
    background: #1a1a2e;
    color: rgba(255,255,255,0.9);
}
[data-theme="red-white-new"] .top-bar a {
    color: rgba(255,255,255,0.9);
}
[data-theme="red-white-new"] .hero {
    border-radius: 0 0 40px 40px;
}

/* ===== SECTION-LEVEL STYLE OVERRIDES ===== */
/* These work independently of the global site theme */

/* Dark section override */
.section-dark {
    background: #1a1a2e !important;
    color: white !important;
}
.section-dark h2, .section-dark h3, .section-dark h4 {
    color: white !important;
}
.section-dark p, .section-dark li, .section-dark span, .section-dark small {
    color: rgba(255,255,255,0.8) !important;
}
.section-dark .text-muted {
    color: rgba(255,255,255,0.5) !important;
}
.section-dark .card, .section-dark .glass-card {
    background: rgba(255,255,255,0.05) !important;
    border-color: rgba(255,255,255,0.1) !important;
    color: white !important;
}
.section-dark a {
    color: var(--accent-primary) !important;
}

/* Light section override (for dark global themes) */
.section-light {
    background: #ffffff !important;
    color: #1e293b !important;
}
.section-light h2, .section-light h3, .section-light h4 {
    color: #1e293b !important;
}
.section-light p, .section-light li, .section-light span, .section-light small {
    color: #475569 !important;
}
.section-light .text-muted {
    color: #94a3b8 !important;
}
.section-light .card, .section-light .glass-card {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
    color: #1e293b !important;
}
.section-light a {
    color: var(--accent-primary) !important;
}

/* Gradient section override */
.section-gradient {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4c1d95 100%) !important;
    color: white !important;
}
.section-gradient h2, .section-gradient h3, .section-gradient h4 {
    color: white !important;
}
.section-gradient p, .section-gradient li, .section-gradient span {
    color: rgba(255,255,255,0.8) !important;
}
.section-gradient .card, .section-gradient .glass-card {
    background: rgba(255,255,255,0.05) !important;
    backdrop-filter: blur(16px) !important;
    border-color: rgba(255,255,255,0.1) !important;
    color: white !important;
}

/* ===== SECTION-LEVEL STYLE OVERRIDES ===== */
/* These work independently of the global site theme */

/* Dark section override */
.section-dark {
    background: #1a1a2e !important;
    color: white !important;
}
.section-dark h2, .section-dark h3, .section-dark h4 {
    color: white !important;
}
.section-dark p, .section-dark li, .section-dark span, .section-dark small {
    color: rgba(255,255,255,0.8) !important;
}
.section-dark .text-muted {
    color: rgba(255,255,255,0.5) !important;
}
.section-dark .card, .section-dark .glass-card {
    background: rgba(255,255,255,0.05) !important;
    border-color: rgba(255,255,255,0.1) !important;
    color: white !important;
}
.section-dark a {
    color: var(--accent-primary) !important;
}

/* Light section override (for dark global themes) */
.section-light {
    background: #ffffff !important;
    color: #1e293b !important;
}
.section-light h2, .section-light h3, .section-light h4 {
    color: #1e293b !important;
}
.section-light p, .section-light li, .section-light span, .section-light small {
    color: #475569 !important;
}
.section-light .text-muted {
    color: #94a3b8 !important;
}
.section-light .card, .section-light .glass-card {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
    color: #1e293b !important;
}
.section-light a {
    color: var(--accent-primary) !important;
}

/* Gradient section override */
.section-gradient {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4c1d95 100%) !important;
    color: white !important;
}
.section-gradient h2, .section-gradient h3, .section-gradient h4 {
    color: white !important;
}
.section-gradient p, .section-gradient li, .section-gradient span {
    color: rgba(255,255,255,0.8) !important;
}
.section-gradient .card, .section-gradient .glass-card {
    background: rgba(255,255,255,0.05) !important;
    backdrop-filter: blur(16px) !important;
    border-color: rgba(255,255,255,0.1) !important;
    color: white !important;
}


/* ===== 10 NEW THEMES ===== */

/* 10. Sunset Warm */
[data-theme="sunset-warm"] {
    --bg-primary: #fffaf5;
    --bg-secondary: #fef3e2;
    --bg-card: #ffffff;
    --text-primary: #4a2c2a;
    --text-secondary: #7c4d4a;
    --text-muted: #b07d7a;
    --accent-primary: #e85d3a;
    --accent-secondary: #d44a28;
    --accent-glow: rgba(232, 93, 58, 0.1);
    --border-color: #f5ddd5;
    --nav-bg: rgba(255, 250, 245, 0.98);
    --nav-text: #4a2c2a;
    --footer-bg: #3d1f1d;
    --footer-text: rgba(255, 255, 255, 0.8);
    --card-shadow: 0 4px 12px rgba(74, 44, 42, 0.06);
    --gradient-hero: linear-gradient(135deg, #fffaf5 0%, #fef3e2 50%, #fde8d0 100%);
}

/* 11. Ocean Breeze */
[data-theme="ocean-breeze"] {
    --bg-primary: #f0f9ff;
    --bg-secondary: #e0f2fe;
    --bg-card: #ffffff;
    --text-primary: #0c4a6e;
    --text-secondary: #0369a1;
    --text-muted: #7dd3fc;
    --accent-primary: #0284c7;
    --accent-secondary: #0369a1;
    --accent-glow: rgba(2, 132, 199, 0.1);
    --border-color: #bae6fd;
    --nav-bg: rgba(240, 249, 255, 0.98);
    --nav-text: #0c4a6e;
    --footer-bg: #0c4a6e;
    --footer-text: rgba(255, 255, 255, 0.8);
    --card-shadow: 0 4px 12px rgba(12, 74, 110, 0.06);
    --gradient-hero: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #bae6fd 100%);
}

/* 12. Forest Green */
[data-theme="forest-green"] {
    --bg-primary: #f0fdf4;
    --bg-secondary: #dcfce7;
    --bg-card: #ffffff;
    --text-primary: #14532d;
    --text-secondary: #166534;
    --text-muted: #86efac;
    --accent-primary: #16a34a;
    --accent-secondary: #15803d;
    --accent-glow: rgba(22, 163, 74, 0.1);
    --border-color: #bbf7d0;
    --nav-bg: rgba(240, 253, 244, 0.98);
    --nav-text: #14532d;
    --footer-bg: #14532d;
    --footer-text: rgba(255, 255, 255, 0.8);
    --card-shadow: 0 4px 12px rgba(20, 83, 45, 0.06);
    --gradient-hero: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 50%, #bbf7d0 100%);
}

/* 13. Royal Purple */
[data-theme="royal-purple"] {
    --bg-primary: #faf5ff;
    --bg-secondary: #f3e8ff;
    --bg-card: #ffffff;
    --text-primary: #3b0764;
    --text-secondary: #6b21a8;
    --text-muted: #c084fc;
    --accent-primary: #9333ea;
    --accent-secondary: #7e22ce;
    --accent-glow: rgba(147, 51, 234, 0.1);
    --border-color: #e9d5ff;
    --nav-bg: rgba(250, 245, 255, 0.98);
    --nav-text: #3b0764;
    --footer-bg: #3b0764;
    --footer-text: rgba(255, 255, 255, 0.8);
    --card-shadow: 0 4px 12px rgba(59, 7, 100, 0.06);
    --gradient-hero: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 50%, #e9d5ff 100%);
}

/* 14. Slate Modern */
[data-theme="slate-modern"] {
    --bg-primary: #f8fafc;
    --bg-secondary: #f1f5f9;
    --bg-card: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #94a3b8;
    --accent-primary: #475569;
    --accent-secondary: #334155;
    --accent-glow: rgba(71, 85, 105, 0.08);
    --border-color: #e2e8f0;
    --nav-bg: rgba(248, 250, 252, 0.98);
    --nav-text: #0f172a;
    --footer-bg: #0f172a;
    --footer-text: rgba(255, 255, 255, 0.8);
    --card-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    --gradient-hero: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

/* 15. Cherry Blossom */
[data-theme="cherry-blossom"] {
    --bg-primary: #fff5f7;
    --bg-secondary: #ffe4e6;
    --bg-card: #ffffff;
    --text-primary: #881337;
    --text-secondary: #be123c;
    --text-muted: #fda4af;
    --accent-primary: #e11d48;
    --accent-secondary: #be123c;
    --accent-glow: rgba(225, 29, 72, 0.1);
    --border-color: #fecdd3;
    --nav-bg: rgba(255, 245, 247, 0.98);
    --nav-text: #881337;
    --footer-bg: #881337;
    --footer-text: rgba(255, 255, 255, 0.8);
    --card-shadow: 0 4px 12px rgba(136, 19, 55, 0.06);
    --gradient-hero: linear-gradient(135deg, #fff5f7 0%, #ffe4e6 50%, #fecdd3 100%);
}

/* 16. Amber Gold */
[data-theme="amber-gold"] {
    --bg-primary: #fffbeb;
    --bg-secondary: #fef3c7;
    --bg-card: #ffffff;
    --text-primary: #78350f;
    --text-secondary: #92400e;
    --text-muted: #fcd34d;
    --accent-primary: #d97706;
    --accent-secondary: #b45309;
    --accent-glow: rgba(217, 119, 6, 0.1);
    --border-color: #fde68a;
    --nav-bg: rgba(255, 251, 235, 0.98);
    --nav-text: #78350f;
    --footer-bg: #78350f;
    --footer-text: rgba(255, 255, 255, 0.8);
    --card-shadow: 0 4px 12px rgba(120, 53, 15, 0.06);
    --gradient-hero: linear-gradient(135deg, #fffbeb 0%, #fef3c7 50%, #fde68a 100%);
}

/* 17. Cyber Dark */
[data-theme="cyber-dark"] {
    --bg-primary: #0a0a0a;
    --bg-secondary: #171717;
    --bg-card: #1c1c1c;
    --text-primary: #e5e5e5;
    --text-secondary: #a3a3a3;
    --text-muted: #525252;
    --accent-primary: #f97316;
    --accent-secondary: #ea580c;
    --accent-glow: rgba(249, 115, 22, 0.2);
    --border-color: #262626;
    --nav-bg: rgba(10, 10, 10, 0.95);
    --nav-text: #e5e5e5;
    --footer-bg: #000000;
    --footer-text: rgba(255, 255, 255, 0.6);
    --card-shadow: 0 0 20px rgba(249, 115, 22, 0.08);
    --gradient-hero: linear-gradient(135deg, #0a0a0a 0%, #171717 100%);
    --neon-glow: 0 0 20px rgba(249, 115, 22, 0.3);
}

/* 18. Arctic Frost */
[data-theme="arctic-frost"] {
    --bg-primary: #f0f4f8;
    --bg-secondary: #e2e8f0;
    --bg-card: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --accent-primary: #0891b2;
    --accent-secondary: #0e7490;
    --accent-glow: rgba(8, 145, 178, 0.08);
    --border-color: #cbd5e1;
    --nav-bg: rgba(240, 244, 248, 0.98);
    --nav-text: #1e293b;
    --footer-bg: #1e293b;
    --footer-text: rgba(255, 255, 255, 0.8);
    --card-shadow: 0 2px 8px rgba(30, 41, 59, 0.05);
    --gradient-hero: linear-gradient(135deg, #f0f4f8 0%, #e2e8f0 50%, #cbd5e1 100%);
}

/* 19. Emerald Night */
[data-theme="emerald-night"] {
    --bg-primary: #022c22;
    --bg-secondary: #064e3b;
    --bg-card: #065f46;
    --text-primary: #ecfdf5;
    --text-secondary: #a7f3d0;
    --text-muted: #6ee7b7;
    --accent-primary: #34d399;
    --accent-secondary: #10b981;
    --accent-glow: rgba(52, 211, 153, 0.15);
    --border-color: #065f46;
    --nav-bg: rgba(2, 44, 34, 0.95);
    --nav-text: #ecfdf5;
    --footer-bg: #020617;
    --footer-text: rgba(255, 255, 255, 0.7);
    --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    --gradient-hero: linear-gradient(135deg, #022c22 0%, #064e3b 100%);
    --neon-glow: 0 0 20px rgba(52, 211, 153, 0.2);
}
