/* ================================================
   ADVENTURE ENGINE - THEME SYSTEM
   Dynamic themes för olika äventyr
   ================================================ */

/* ================================================
   HALLOWEEN THEME (Default)
   ================================================ */
.theme-halloween {
    --primary-color: #ff6b35;
    --primary-hover: #ff8c42;
    --secondary-color: #39ff14;
    --accent-color: #9d4edd;
    --background-color: #1a1a2e;
    --card-background: #16213e;
    --text-color: #ffffff;
    --text-secondary: #b8b8b8;
    --success-color: #2ecc71;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --info-color: #3498db;
    
    /* Theme-specific */
    --theme-gradient: linear-gradient(135deg, #ff6b35 0%, #9d4edd 100%);
    --theme-background-image: url('/images/halloween-bg.jpg');
    --theme-pattern: url('/images/cobweb.svg');
}

/* ================================================
   HALLOWEEN PREMIUM THEME
   ================================================ */
.theme-halloween-premium {
    --primary-color: #ff4500;
    --primary-hover: #ff6347;
    --secondary-color: #00ff00;
    --accent-color: #8b00ff;
    --background-color: #0a0a0a;
    --card-background: #1a1a1a;
    --text-color: #ffffff;
    --text-secondary: #cccccc;
    --success-color: #00ff00;
    --warning-color: #ffaa00;
 --danger-color: #ff0000;
    --info-color: #00aaff;
    
    /* Theme-specific */
    --theme-gradient: linear-gradient(135deg, #ff4500 0%, #8b00ff 50%, #00ff00 100%);
    --theme-background-image: url('/images/halloween-premium-bg.jpg');
    --theme-pattern: url('/images/blood-drip.svg');
}

/* ================================================
   CHRISTMAS THEME
   ================================================ */
.theme-christmas {
    --primary-color: #e74c3c;
    --primary-hover: #c0392b;
    --secondary-color: #2ecc71;
    --accent-color: #f1c40f;
    --background-color: #1e3a5f;
    --card-background: #2c5f8d;
    --text-color: #ffffff;
    --text-secondary: #d4d4d4;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --danger-color: #c0392b;
    --info-color: #3498db;
    
    /* Theme-specific */
 --theme-gradient: linear-gradient(135deg, #e74c3c 0%, #f1c40f 100%);
    --theme-background-image: url('/images/christmas-bg.jpg');
--theme-pattern: url('/images/snowflakes.svg');
}

/* ================================================
   MARKET QUIZ THEME
   ================================================ */
.theme-market {
  --primary-color: #2ecc71;
    --primary-hover: #27ae60;
    --secondary-color: #3498db;
    --accent-color: #f39c12;
    --background-color: #ecf0f1;
    --card-background: #ffffff;
 --text-color: #2c3e50;
    --text-secondary: #7f8c8d;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --info-color: #3498db;
    
    /* Theme-specific */
  --theme-gradient: linear-gradient(135deg, #2ecc71 0%, #3498db 100%);
    --theme-background-image: url('/images/market-bg.jpg');
    --theme-pattern: url('/images/market-pattern.svg');
}

/* ================================================
   HISTORY TOUR THEME
   ================================================ */
.theme-history {
    --primary-color: #8e44ad;
    --primary-hover: #9b59b6;
    --secondary-color: #3498db;
    --accent-color: #e67e22;
    --background-color: #2c3e50;
    --card-background: #34495e;
    --text-color: #ecf0f1;
    --text-secondary: #bdc3c7;
 --success-color: #2ecc71;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --info-color: #3498db;
    
    /* Theme-specific */
    --theme-gradient: linear-gradient(135deg, #8e44ad 0%, #3498db 100%);
    --theme-background-image: url('/images/history-bg.jpg');
    --theme-pattern: url('/images/old-map-pattern.svg');
}

/* ================================================
   CORPORATE TEAM-BUILDING THEME
   ================================================ */
.theme-corporate {
    --primary-color: #34495e;
    --primary-hover: #2c3e50;
  --secondary-color: #3498db;
    --accent-color: #1abc9c;
    --background-color: #f8f9fa;
    --card-background: #ffffff;
    --text-color: #2c3e50;
    --text-secondary: #7f8c8d;
    --success-color: #1abc9c;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --info-color: #3498db;
    
    /* Theme-specific */
    --theme-gradient: linear-gradient(135deg, #34495e 0%, #3498db 100%);
    --theme-background-image: url('/images/corporate-bg.jpg');
    --theme-pattern: none;
}

/* ================================================
   PRINCESS PARTY THEME
   ================================================ */
.theme-princess {
    --primary-color: #e91e63;
    --primary-hover: #c2185b;
    --secondary-color: #9c27b0;
    --accent-color: #f8bbd0;
    --background-color: #fce4ec;
    --card-background: #ffffff;
    --text-color: #880e4f;
    --text-secondary: #ad1457;
    --success-color: #e91e63;
    --warning-color: #ff9800;
  --danger-color: #f44336;
    --info-color: #9c27b0;
    
    /* Theme-specific */
    --theme-gradient: linear-gradient(135deg, #e91e63 0%, #9c27b0 100%);
    --theme-background-image: url('/images/princess-bg.jpg');
    --theme-pattern: url('/images/sparkles.svg');
}

/* ================================================
   THEME APPLICATION
   ================================================ */

/* Apply background */
[class*="theme-"] {
    background-color: var(--background-color);
    color: var(--text-color);
    background-image: var(--theme-background-image);
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
}

/* Apply pattern overlay */
[class*="theme-"]::before {
    content: '';
 position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
background-image: var(--theme-pattern);
    background-repeat: repeat;
    opacity: 0.1;
    pointer-events: none;
    z-index: 0;
}

/* Ensure content is above pattern */
[class*="theme-"] > * {
    position: relative;
    z-index: 1;
}

/* ================================================
   COMPONENT STYLING WITH THEME VARIABLES
   ================================================ */

.game-container {
  background: var(--card-background);
    color: var(--text-color);
    border: 2px solid var(--primary-color);
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-hover);
}

.btn-secondary {
    background: var(--secondary-color);
  color: white;
}

.btn-success {
    background: var(--success-color);
  color: white;
}

.btn-danger {
  background: var(--danger-color);
    color: white;
}

.btn-info {
    background: var(--info-color);
    color: white;
}

.card {
    background: var(--card-background);
    color: var(--text-color);
 border: 1px solid rgba(255,255,255,0.1);
}

.gradient-bg {
    background: var(--theme-gradient);
}

/* Progress bars */
.progress-bar {
    background: var(--theme-gradient);
}

/* Links */
a {
 color: var(--primary-color);
}

a:hover {
    color: var(--primary-hover);
}

/* Headings with gradient */
.gradient-text {
    background: var(--theme-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
