/* ============================================================
   ELYSIUM-WOW – GEMEINSAMES DESIGN SYSTEM
   Tailwind + Custom WoW/Glassmorphism Utilities
   ============================================================ */

/* ===== GOOGLE FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700;900&family=Inter:wght@300;400;500;600;700&display=swap');

/* ===== CSS VARIABLEN ===== */
:root {
    --ely-cyan:        #7fdcff;
    --ely-blue:        #4fc3ff;
    --ely-light:       #c9f2ff;
    --ely-text:        #e8f7ff;
    --ely-muted:       #9fb5c5;
    --ely-dark:        rgba(15, 35, 60, 0.40);
    --ely-darker:      rgba(10, 25, 45, 0.45);
    --ely-border:      rgba(120, 200, 255, 0.25);
    --ely-glow:        rgba(120, 210, 255, 0.20);
    --ely-glow-strong: rgba(120, 210, 255, 0.55);
    --ely-success:     #6dff9e;
    --ely-error:       #ff6d6d;
    --ely-gold:        #ffd76a;
    --ely-radius:      18px;
    --ely-radius-sm:   10px;
    --ely-radius-lg:   24px;
}

/* ===== GLOBALE BASIS ===== */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    color: var(--ely-text);
    background: transparent;
    margin: 0;
    -webkit-font-smoothing: antialiased;
}

/* ===== CINZEL HEADINGS ===== */
h1, h2, h3, .font-cinzel {
    font-family: 'Cinzel', 'Segoe UI', serif;
    letter-spacing: 0.5px;
}

/* ===== GLASS PANEL ===== */
.ely-panel {
    background: var(--ely-dark);
    backdrop-filter: blur(20px) saturate(1.3);
    -webkit-backdrop-filter: blur(20px) saturate(1.3);
    border-radius: var(--ely-radius);
    border: 1px solid var(--ely-border);
    box-shadow:
        0 0 40px var(--ely-glow),
        inset 0 0 30px rgba(0, 120, 255, 0.10);
}

.ely-panel-sm {
    background: var(--ely-darker);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: var(--ely-radius-sm);
    border: 1px solid var(--ely-border);
}

/* ===== CARD ===== */
.ely-card {
    background: var(--ely-darker);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: var(--ely-radius);
    border: 1px solid rgba(120, 210, 255, 0.18);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ely-card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 0 30px rgba(120, 210, 255, 0.25),
        inset 0 0 20px rgba(0, 120, 255, 0.12);
}

/* ===== BUTTONS ===== */
.ely-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 22px;
    border-radius: var(--ely-radius-sm);
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.22s ease;
    min-height: 44px; /* Touch-freundlich */
}

.ely-btn-primary {
    background: linear-gradient(135deg, rgba(120,210,255,0.90), rgba(70,180,255,0.85));
    color: #051018;
    box-shadow: 0 0 20px rgba(120, 210, 255, 0.35);
}

.ely-btn-primary:hover {
    background: linear-gradient(135deg, #a8f0ff, #7fdcff);
    box-shadow: 0 0 30px rgba(120, 210, 255, 0.65);
    transform: translateY(-2px);
    color: #051018;
}

.ely-btn-outline {
    background: rgba(120, 210, 255, 0.10);
    color: var(--ely-light);
    border: 1px solid rgba(120, 210, 255, 0.35);
}

.ely-btn-outline:hover {
    background: rgba(120, 210, 255, 0.22);
    border-color: rgba(120, 210, 255, 0.65);
    box-shadow: 0 0 18px rgba(120, 210, 255, 0.25);
}

.ely-btn-danger {
    background: rgba(220, 50, 50, 0.18);
    color: #ffb3b3;
    border: 1px solid rgba(255, 80, 80, 0.40);
}

.ely-btn-danger:hover {
    background: rgba(220, 50, 50, 0.35);
    border-color: rgba(255, 80, 80, 0.70);
}

.ely-btn-full {
    width: 100%;
}

/* ===== FORMULARE ===== */
.ely-label {
    display: block;
    font-weight: 600;
    font-size: 13px;
    color: var(--ely-light);
    margin-bottom: 6px;
    letter-spacing: 0.3px;
}

.ely-input {
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--ely-radius-sm);
    border: 1px solid rgba(120, 210, 255, 0.22);
    background: rgba(10, 25, 45, 0.40);
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
    -webkit-appearance: none;
    min-height: 44px;
}

.ely-input:focus {
    outline: none;
    border-color: rgba(120, 210, 255, 0.65);
    box-shadow: 0 0 0 3px rgba(120, 210, 255, 0.15);
}

.ely-input::placeholder {
    color: rgba(200, 230, 255, 0.35);
}

/* ===== NACHRICHTEN ===== */
.ely-msg {
    padding: 12px 16px;
    border-radius: var(--ely-radius-sm);
    font-weight: 600;
    font-size: 14px;
    text-align: center;
    margin-bottom: 16px;
}

.ely-msg-error {
    background: rgba(255, 80, 80, 0.12);
    border: 1px solid rgba(255, 120, 120, 0.45);
    color: #ffb3b3;
}

.ely-msg-success {
    background: rgba(50, 200, 100, 0.12);
    border: 1px solid rgba(80, 220, 130, 0.45);
    color: #9dffc5;
}

.ely-msg-warning {
    background: rgba(255, 200, 0, 0.08);
    border: 1px solid rgba(255, 215, 0, 0.30);
    border-left: 4px solid #ffd54a;
    color: #ffe38a;
    text-align: left;
}

/* ===== BADGE ===== */
.ely-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.ely-badge-recommended {
    background: rgba(120, 210, 255, 0.90);
    color: #06121c;
    box-shadow: 0 0 12px rgba(120, 210, 255, 0.50);
}

.ely-badge-optional {
    background: rgba(255, 255, 255, 0.10);
    color: var(--ely-light);
    border: 1px solid rgba(170, 230, 255, 0.28);
}

.ely-badge-exclusive {
    background: linear-gradient(135deg, #ffd54a, #ffb300);
    color: #2b1700;
    border: 1px solid rgba(255, 235, 140, 0.75);
    box-shadow: 0 0 12px rgba(255, 210, 70, 0.45);
}

.ely-badge-main {
    background: rgba(255, 215, 0, 0.15);
    border: 1px solid rgba(255, 215, 0, 0.45);
    color: #ffd76a;
}

.ely-badge-twink {
    background: rgba(120, 210, 255, 0.15);
    border: 1px solid rgba(120, 210, 255, 0.35);
    color: #dff6ff;
}

/* ===== STAT BOX ===== */
.ely-stat-box {
    background: rgba(10, 25, 45, 0.40);
    border: 1px solid rgba(120, 210, 255, 0.22);
    border-radius: var(--ely-radius-sm);
    padding: 14px;
    text-align: center;
}

.ely-stat-label {
    font-size: 12px;
    color: var(--ely-muted);
    font-weight: 500;
    margin-bottom: 4px;
}

.ely-stat-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--ely-cyan);
    font-family: 'Cinzel', serif;
}

/* ===== INLINE INFO BOX ===== */
.ely-info-box {
    padding: 14px 18px;
    background: rgba(120, 210, 255, 0.06);
    border-left: 3px solid rgba(120, 210, 255, 0.50);
    border-radius: var(--ely-radius-sm);
    font-size: 14px;
    color: var(--ely-text);
}

/* ===== TRENNLINIE ===== */
.ely-divider {
    border: none;
    border-top: 1px solid var(--ely-border);
    margin: 20px 0;
}

/* ===== LINK ===== */
.ely-link {
    color: var(--ely-cyan);
    text-decoration: none;
    transition: color 0.2s, text-shadow 0.2s;
}

.ely-link:hover {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(120, 210, 255, 0.80);
}

/* ===== CHALLENGE BADGES ===== */
.ely-challenge { display: inline-block; padding: 4px 9px; border-radius: 7px; font-size: 11px; font-weight: 600; margin: 2px; }
.ely-challenge-hardcore { background: rgba(220,50,50,.18); border: 1px solid rgba(255,80,80,.45); color: #ffd2d2; }
.ely-challenge-semi     { background: rgba(255,165,0,.16); border: 1px solid rgba(255,190,90,.40); color: #ffe4af; }
.ely-challenge-self     { background: rgba(70,180,70,.18); border: 1px solid rgba(120,255,120,.35); color: #d8ffd8; }
.ely-challenge-quality  { background: rgba(80,150,255,.18); border: 1px solid rgba(120,190,255,.40); color: #dcefff; }
.ely-challenge-slow     { background: rgba(170,120,255,.18); border: 1px solid rgba(190,150,255,.40); color: #f0e4ff; }
.ely-challenge-vslow    { background: rgba(120,90,255,.18); border: 1px solid rgba(160,130,255,.40); color: #ece2ff; }
.ely-challenge-quest    { background: rgba(255,90,220,.16); border: 1px solid rgba(255,140,230,.35); color: #ffe4fb; }
.ely-challenge-iron     { background: rgba(255,215,0,.16); border: 1px solid rgba(255,215,80,.40); color: #fff2be; }

/* ===== FEATURE LINK ITEM ===== */
.ely-feature-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: rgba(120, 210, 255, 0.07);
    border: 1px solid rgba(170, 230, 255, 0.18);
    border-radius: 14px;
    color: var(--ely-text);
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.22s ease;
}

.ely-feature-link:hover {
    background: rgba(120, 210, 255, 0.16);
    transform: translateX(6px);
    box-shadow: 0 0 22px rgba(120, 210, 255, 0.22);
    color: var(--ely-text);
}

.ely-feature-link.disabled {
    opacity: 0.50;
    cursor: not-allowed;
    pointer-events: none;
}

/* ===== TIMELINE ===== */
.ely-timeline {
    position: relative;
    margin-left: 20px;
    padding-left: 40px;
    border-left: 2px solid rgba(120, 210, 255, 0.30);
}

.ely-timeline-dot::before {
    content: '';
    position: absolute;
    left: -52px;
    top: 10px;
    width: 18px;
    height: 18px;
    background: var(--ely-cyan);
    border-radius: 50%;
    box-shadow: 0 0 18px rgba(120, 210, 255, 0.90);
}

/* ===== SNOWFLAKE ANIMATION ===== */
.ely-snow span {
    position: absolute;
    top: -10px;
    font-size: 12px;
    opacity: 0.75;
    animation: ely-fall linear infinite;
    user-select: none;
    pointer-events: none;
}

@keyframes ely-fall {
    to { transform: translateY(110vh); }
}

/* ===== CODE BOX ===== */
.ely-code {
    background: rgba(0, 0, 0, 0.50);
    padding: 14px 18px;
    border-radius: var(--ely-radius-sm);
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    color: var(--ely-cyan);
    word-break: break-all;
    border: 1px solid rgba(120, 210, 255, 0.18);
}

/* ===== ADDON IMAGE ===== */
.ely-addon-img {
    width: 100%;
    max-height: 180px;
    object-fit: contain;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.20);
    padding: 10px;
    box-shadow: 0 0 18px rgba(120, 210, 255, 0.10);
    margin-bottom: 14px;
}

/* ===== NAV DISABLED TOOLTIP ===== */
.ely-nav-disabled {
    display: inline-block;
    position: relative;
    padding: 8px 16px;
    color: #6f7b88;
    opacity: 0.45;
    cursor: default;
    user-select: none;
}

.ely-nav-disabled::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    top: 115%;
    transform: translateX(-50%);
    padding: 6px 10px;
    background: rgba(15, 35, 60, 0.95);
    border: 1px solid rgba(120, 210, 255, 0.35);
    border-radius: 8px;
    color: #dff6ff;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    z-index: 100;
}

.ely-nav-disabled:hover::after {
    opacity: 1;
}

/* ===== POPUP ===== */
.ely-popup {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: 20px;
}

@keyframes ely-popup-scale {
    from { opacity: 0; transform: scale(0.85); }
    to   { opacity: 1; transform: scale(1); }
}

@keyframes ely-frost-glow {
    0%   { box-shadow: 0 0 25px rgba(120,210,255,0.4), 0 0 50px rgba(120,210,255,0.2); }
    100% { box-shadow: 0 0 65px rgba(120,210,255,0.9), 0 0 120px rgba(120,210,255,0.4); }
}

/* ===== STATUS COLORS ===== */
.ely-online  { color: #6dff9e; font-weight: 700; }
.ely-offline { color: #ff6d6d; font-weight: 700; }

/* ===== PASSWORD STRENGTH ===== */
.ely-pw-bar-wrap {
    width: 100%;
    height: 7px;
    background: rgba(255, 255, 255, 0.10);
    border-radius: 6px;
    overflow: hidden;
    margin-top: 8px;
}

#ely-strength-bar {
    height: 100%;
    width: 0%;
    transition: width 0.3s, background 0.3s;
    border-radius: 6px;
}

/* ===== RESPONSIVE HELPERS ===== */
/* Mobile-First Container */
.ely-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Responsive Grids */
.ely-grid-1 { display: grid; grid-template-columns: 1fr; gap: 16px; }
.ely-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.ely-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ely-grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }

@media (max-width: 767px) {
    .ely-grid-2,
    .ely-grid-3 { grid-template-columns: 1fr; gap: 14px; }
    .ely-container { padding: 0 12px; }
    .ely-panel { border-radius: 14px; }
    .ely-card  { border-radius: 12px; }
    h1 { font-size: 1.6rem !important; }
    h2 { font-size: 1.2rem !important; }
}

@media (min-width: 640px) and (max-width: 1023px) {
    .ely-grid-3 { grid-template-columns: repeat(2, 1fr); }
}
