/* =========================================
   1. THEME VARIABLES (The Element System)
   ========================================= */

/* --- LIGHTNING (Default/Gold) --- */
:root {
    --primary: #eab308;           /* Yellow-500 */
    --accent: #fef08a;            /* Yellow-200 */
    --glow: rgba(234, 179, 8, 0.5);
    --bg-gradient-start: #eab308;
    --bg-gradient-end: transparent;
}

/* --- FIRE (Red/Orange) --- */
[data-theme="fire"] {
    --primary: #f97316;            /* Orange-500 (Main Fire Orange) */
    --accent: #fbbf24;             /* Amber-400 (Flame Core Yellow) */
    --glow: rgba(249, 115, 22, 0.5); /* Orange Glow */
    --bg-gradient-start: #f97316;  
    --bg-gradient-end: #7c2d12;    /* Orange-900 (Burnt Embers) */
}

/* --- PLANT (Green/Nature) --- */
[data-theme="plant"] {
    --primary: #22c55e;           /* Green-500 */
    --accent: #86efac;            /* Green-300 */
    --glow: rgba(34, 197, 94, 0.5);
    --bg-gradient-start: #22c55e;
    --bg-gradient-end: #14532d;
}

/* --- WATER (Blue/Ocean) --- */
[data-theme="diamond"] {
    --primary: #b9f2ff;            /* Crystalline Light Blue */
    --accent: #0ea5e9;             /* Brilliant Sky Sparkle */
    --glow: rgba(185, 242, 255, 0.65);
    --bg-gradient-start: #0c4a6e;   /* Deep Sapphire */
    --bg-gradient-end: #020617;     /* Midnight Depth for contrast */
}

/* --- POISON THEME (Purple & Fuchsia - Venom Style) --- */
[data-theme="poison"] {
    --primary: #a855f7;           /* Purple-500 */
    --accent: #f0abfc;            /* Fuchsia-300 (Venom Pink) */
    --glow: rgba(168, 85, 247, 0.5);
    --bg-gradient-start: #a855f7;
    --bg-gradient-end: #4c1d95;   /* Violet-900 */
}

/* --- LOVE THEME (Pink/Rose) --- */
[data-theme="love"] {
    --primary: #ec4899;           /* Pink-500 */
    --accent: #fda4af;            /* Rose-300 */
    --glow: rgba(236, 72, 153, 0.5);
    --bg-gradient-start: #ec4899;
    --bg-gradient-end: #881337;   /* Rose-900 */
}

/* --- SILVER THEME (Metallic/Slate) --- */
[data-theme="silver"] {
    --primary: #cbd5e1;           /* Slate-300 (Base Silver) */
    --accent: #f1f5f9;            /* Slate-100 (High Shine/Highlight) */
    --glow: rgba(203, 213, 225, 0.5);
    --bg-gradient-start: #64748b; /* Slate-500 (Mid-tone Metal) */
    --bg-gradient-end: #0f172a;   /* Slate-900 (Deep Contrast) */
}

/* =========================================
   2. BASE STYLES
   ========================================= */
body { 
    font-family: 'Plus Jakarta Sans', sans-serif; 
}

.font-header { 
    font-family: 'Orbitron', sans-serif; 
}

/* =========================================
   3. CARD COMPONENTS
   ========================================= */
.card-pokemon {
    width: 320px;
    background: #121212;
    /* Uses Theme Color */
    border: 10px solid var(--primary); 
    border-radius: 1.25rem;
    position: relative;
    color: white;
    padding: 12px;
    /* Glow effect based on theme */
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7), 0 0 30px var(--glow);
    overflow: hidden;
    transition: all 0.5s ease;
}

.card-pokemon::after {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border: 1px solid rgba(255,255,255,0.1);
    margin: 2px;
    pointer-events: none;
    border-radius: 0.75rem;
}

.description-box {
    background: #222;
    clip-path: polygon(3% 0%, 100% 0%, 97% 100%, 0% 100%);
    border: 1px solid var(--primary);
    padding: 4px 12px;
    font-size: 10px;
    margin: 10px 0;
    color: #d1d1d1;
    transition: border-color 0.5s ease;
}

.type-icon {
    width: 24px; height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center; justify-content: center;
    font-size: 12px;
}

/* =========================================
   4. DROPDOWN STYLING
   ========================================= */
.theme-select-wrapper {
    position: relative;
    margin-bottom: 25px;
    display: inline-block;
}

select.theme-select {
    appearance: none;       /* Remove default browser arrow */
    -webkit-appearance: none;
    -moz-appearance: none;
    
    background: rgba(20, 20, 20, 0.8);
    backdrop-filter: blur(10px);
    
    /* Dynamic Border Color based on Theme */
    border: 2px solid var(--primary);
    box-shadow: 0 0 15px var(--glow);
    
    color: white;
    padding: 12px 40px 12px 20px;
    border-radius: 12px;
    font-family: 'Orbitron', sans-serif;
    font-size: 14px;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
    width: 200px;
    text-align: left;
}

select.theme-select:hover {
    background: rgba(40, 40, 40, 0.9);
}

/* Custom Dropdown Arrow */
.theme-select-wrapper::after {
    content: '▼';
    font-size: 10px;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary); /* Arrow matches theme */
    pointer-events: none;
    transition: color 0.3s ease;
}

/* Style the Options inside (Dark Mode) */
option {
    background: #18181b;
    color: white;
    padding: 10px;
}

/* --- ADD THIS TO STYLE.CSS FOR THE JOB LIST --- */

.section-header {
    display: flex; align-items: center; justify-content: space-between;
    border-bottom: 1px dashed #3f3f46; padding-bottom: 8px; margin-bottom: 12px;
    margin-top: 20px;
}

.data-item {
    background: rgba(24, 24, 27, 0.5);
    border: 1px solid #27272a;
    padding: 12px; margin-bottom: 8px; border-radius: 8px;
    transition: all 0.2s;
}

/* Hovering over a job item will now use the Theme Color */
.data-item:hover { 
    border-color: var(--primary); 
    background: rgba(24, 24, 27, 0.8); 
}

.active-dot {
    width: 6px; height: 6px; 
    background-color: var(--primary); /* Uses theme color */
    border-radius: 50%; 
    box-shadow: 0 0 8px var(--primary); 
    display: inline-block; margin-left: 4px;
}

/* =========================================
   5. RESPONSIVE
   ========================================= */
@media (min-width: 768px) {
    .mobile-warning { display: flex !important; }
    .app-content { display: none; }
}