/* =========================================
   Midnight Tokyo (Cyberpunk)
   ========================================= */
body.theme-midnight {
    /* Typografie: Modern & Tech */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Formen: Kantig / Tech-Look */
    --radius-container: 0px;
    --radius-card: 2px;
    --radius-button: 0px; /* Komplett eckige Buttons */
    --radius-badge: 2px;
    
    /* Farben */
    --bg-app: #050505;
    --bg-main-container: rgba(10, 10, 15, 0.9);
    --bg-card: rgba(0, 0, 0, 0.7);
    
    --text-primary: #00fff2; /* Neon Cyan */
    --text-secondary: #ff00ff; /* Neon Pink */
    --text-accent: #00fff2;
    
    /* Buttons: Neon-Blau mit schwarzem Text für Kontrast */
    --bg-button-primary: #00fff2;
    --bg-button-primary-hover: #00cccc;
    --text-on-primary-btn: #000000;
    
    --bg-button-special: #ff00ff;
    --bg-button-special-hover: #cc00cc;
    --text-on-button-special: #000000;
    
    /* Rahmen & Glow */
    --border-container: 1px solid rgba(0, 255, 242, 0.3);
    --border-card: 1px solid rgba(255, 0, 255, 0.3);
    --shadow-glow: 0 0 15px rgba(0, 255, 242, 0.2);
    
    /* Cyberpunk Grid-Hintergrund */
    background-color: #050505;
    background-image: 
        linear-gradient(rgba(0, 255, 242, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 242, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: center;
}

/* Spezifische Overrides für Midnight */
body.theme-midnight .achievement-card {
    border-left: 4px solid var(--text-secondary); /* Pinker Indikator links */
}
body.theme-midnight .btn-primary {
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 10px rgba(0, 255, 242, 0.4); /* Neon Glow Button */
}

/* =========================================
   Royal Gold (Luxus)
   ========================================= */
body.theme-royal {
    /* Typografie */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
    
    /* Formen */
    --radius-container: 8px;
    --radius-card: 4px;
    --radius-button: 2px;
    --radius-badge: 4px;
    
    /* Farben: Tiefes Braun statt Schwarz */
    --bg-app: radial-gradient(circle at center, #3e2723 0%, #1a0f0a 100%);
    --bg-main-container: rgba(45, 30, 25, 0.95); /* Dunkle Schokolade */
    --bg-card: rgba(62, 39, 35, 0.7);
    
    --text-primary: #ffecb3; /* Champagner */
    --text-secondary: #d7ccc8; /* Helles Taupe */
    --text-accent: #ffd700; /* Gold */
    
    /* Buttons: Solide Farben für Fallback */
    --bg-button-primary: #FFD700; 
    --bg-button-primary-hover: #C5A000;
    --text-on-primary-btn: #261C19; /* Sehr dunkles Braun */
    
    --bg-button-special: #8d6e63;
    --bg-button-special-hover: #795548;
    --text-on-button-special: #ffffff;
    
    --bg-badge: linear-gradient(135deg, #3e2723, #4e342e);
    --text-on-badge: #ffecb3;

    /* Rahmen */
    --border-container: 1px solid rgba(255, 215, 0, 0.3);
    --border-card: 1px solid rgba(255, 215, 0, 0.2);
    --shadow-glow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

/* Royal Overrides */
body.theme-royal .btn-primary {
    /* Hier erzwingen wir den Verlauf statt der soliden Farbe */
    background: linear-gradient(135deg, #ffd700 0%, #b8860b 100%) !important;
    border: 1px solid #ffecb3;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-shadow: none;
}
body.theme-royal .btn-primary:hover {
    background: linear-gradient(135deg, #ffecb3 0%, #d4af37 100%) !important;
}

/* =========================================
   Sunset Vibes (Modern)
   ========================================= */
body.theme-sunset {
    /* Typografie */
    --font-heading: 'Quicksand', sans-serif;
    --font-body: 'Quicksand', sans-serif;
    
    /* Formen: Pillen */
    --radius-container: 24px;
    --radius-card: 20px;
    --radius-button: 9999px;
    --radius-badge: 9999px;
    
    /* Farben */
    --bg-app: linear-gradient(180deg, #ff9a9e 0%, #fecfef 99%, #fecfef 100%);
    --bg-main-container: rgba(255, 255, 255, 0.85); /* Milchglas Hell */
    --bg-card: rgba(255, 255, 255, 0.6);
    
    --text-primary: #c0392b; /* Dunkles Rot */
    --text-secondary: #d35400; /* Dunkles Orange */
    --text-accent: #e84393; /* Pink */
    
    /* Buttons: Solide Farben für Fallback */
    --bg-button-primary: #ff6b6b;
    --bg-button-primary-hover: #ff4757;
    --text-on-primary-btn: #ffffff;
    
    --bg-button-special: #a29bfe;
    --bg-button-special-hover: #6c5ce7;
    --text-on-button-special: #ffffff;
    
    --bg-badge: #ffeaa7;
    --text-on-badge: #d35400;

    /* Rahmen */
    --border-container: 2px solid rgba(255, 255, 255, 1);
    --border-card: 2px solid rgba(255, 255, 255, 0.8);
    --shadow-glow: 0 10px 25px rgba(255, 107, 107, 0.2);
}

/* Sunset Overrides */
body.theme-sunset .btn-primary {
    /* Verlauf erzwingen */
    background: linear-gradient(to right, #ff9966, #ff5e62) !important;
    box-shadow: 0 4px 15px rgba(255, 94, 98, 0.4);
    border: none;
    font-weight: 700;
}
body.theme-sunset .btn-primary:hover {
    background: linear-gradient(to right, #ff5e62, #ff9966) !important;
    transform: scale(1.05);
}
body.theme-sunset .achievement-card {
    backdrop-filter: blur(10px);
}
/* XP Bar in Sunset Farben */
body.theme-sunset #xp-bar {
    background: linear-gradient(to right, #f6d365 0%, #fda085 100%);
}

/* =========================================
   GENERIC BADGE STYLES (Wählbar im Admin)
   ========================================= */

.premium-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.8rem;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: transform 0.2s;
    cursor: default;
    border: 1px solid transparent;
}

.premium-badge:hover {
    transform: scale(1.05) translateY(-2px);
}

.premium-badge > span {
    /* Gibt dem Emoji einen harten Schlagschatten für besseren Kontrast auf Gold/Hell */
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.6));
    font-size: 1.1em; /* Emoji leicht größer als Text */
    line-height: 1;
}

/* STYLE: RAINBOW (Animiert, für Ultra/Special) */
.badge-style-rainbow {
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    background-image: linear-gradient(90deg, #ff4b4b, #ffac38, #fff24a, #4bff66, #38d1ff, #6c4bff, #ff4b4b);
    background-size: 400% 400%;
    animation: rainbow-shift 3s ease infinite;
    border: none;
}

/* STYLE: GOLD (Luxus, Founder) */
.badge-style-gold {
    background: linear-gradient(135deg, #FFD700 0%, #DAA520 100%);
    color: #000;
    border: 1px solid #B8860B;
    box-shadow: 0 2px 10px rgba(218, 165, 32, 0.3);
}

/* STYLE: NEON (Cyber, Tech) */
.badge-style-neon {
    background: rgba(0, 0, 0, 0.6);
    color: #00fff2;
    border: 1px solid #00fff2;
    box-shadow: 0 0 8px rgba(0, 255, 242, 0.4);
}

/* STYLE: LOVE (Pink, Herz) */
.badge-style-love {
    background: rgba(236, 72, 153, 0.15);
    color: #f472b6;
    border: 1px solid #ec4899;
}

/* STYLE: NATURE (Grün, Eco) */
.badge-style-nature {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border: 1px solid #22c55e;
}

/* STYLE: DARK (Elegant, Black) */
.badge-style-dark {
    background: #1e293b;
    color: #e2e8f0;
    border: 1px solid #475569;
}

/* Spezifische Badge Designs */

/* 1. Founders Club (Gold/Schwarz) */
.badge-founder {
    background: linear-gradient(135deg, #FFD700 0%, #DAA520 100%);
    color: #000;
    border: 1px solid #B8860B;
}

/* 2. Soulmates (Pink/Herz) */
.badge-soulmates {
    background: rgba(236, 72, 153, 0.15);
    color: #ec4899;
    border: 1px solid #ec4899;
}

/* 3. Globetrotter (Blau/Erde) */
.badge-traveler {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
    border: 1px solid #3b82f6;
}

/* 4. Power Couple (Lila/Blitz) */
.badge-power {
    background: linear-gradient(45deg, #6366f1, #a855f7);
    color: white;
    border: none;
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.4);
}

/* 5. 1 Year (Jubiläum) */
.badge-anniversary {
    background: #fff;
    color: #333;
    border: 1px solid #ddd;
}