/* ===============================
   GM-Shop – Christmas Edition CSS (Snow Glow + Big Layer)
   =============================== */

/* Ensure background fills entire viewport */
html, body {
    min-height: 100vh;
    width: 100%;
    margin: 0;
    padding: 0;
    background-attachment: fixed !important;
}

/* Color Theme */
:root {
    --bg: #0b0f16;
    --bg2: #101827;
    --card: #121a27;
    --accent: #0ea5a4;   /* Türkis */
    --accent2: #e11d48;  /* Weihnachtsrot */
    --accent3: #22c55e;  /* Weihnachtsgrün */

    --muted: #9ca3af;
    --text: #e5edf5;
    --glass: rgba(255,255,255,0.05);

    --maxw: 1100px;
}

/* Global ---------------------------- */
* { box-sizing: border-box; }

body {
    font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%);
    color: var(--text);
}

/* ============================================================
   REALISTIC SNOW – 4 LAYERS (Glow + Big Snowflakes)
   ============================================================ */

#snow, #snow2, #snow3, #snowBig {
    pointer-events: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    background-repeat: repeat;
}

/* --- LAYER 1 (Bright foreground snow, glowing, medium-big) --- */
#snow {
    background-image:
        radial-gradient(4px 4px at 20% 20%, rgba(255,255,255,0.95) 60%, transparent 60%),
        radial-gradient(3px 3px at 80% 40%, rgba(255,255,255,0.90) 60%, transparent 60%),
        radial-gradient(3px 3px at 50% 70%, rgba(255,255,255,0.85) 60%, transparent 60%);
    background-size: 350px 350px;
    filter: drop-shadow(0 0 6px rgba(255,255,255,0.8));
    animation: snowFall 14s linear infinite;
}

/* --- NEW: LAYER 4 (Huge flakes, close, high glow) --- */
#snowBig {
    background-image:
        radial-gradient(7px 7px at 30% 10%, rgba(255,255,255,0.95) 70%, transparent 70%),
        radial-gradient(8px 8px at 70% 60%, rgba(255,255,255,0.85) 70%, transparent 70%),
        radial-gradient(6px 6px at 10% 80%, rgba(255,255,255,0.90) 70%, transparent 70%);
    background-size: 500px 500px;
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.9));
    animation: snowBigFall 18s linear infinite;
    z-index: 2;
}

/* --- LAYER 2 (midlayer snow, softer glow) --- */
#snow2 {
    background-image:
        radial-gradient(2px 2px at 60% 10%, rgba(255,255,255,0.6) 50%, transparent 50%),
        radial-gradient(2px 2px at 10% 80%, rgba(255,255,255,0.5) 50%, transparent 50%);
    background-size: 250px 250px;
    filter: drop-shadow(0 0 4px rgba(255,255,255,0.5));
    animation: snowFall2 22s linear infinite;
}

/* --- LAYER 3 (background tiny snow) --- */
#snow3 {
    background-image:
        radial-gradient(1px 1px at 30% 30%, rgba(255,255,255,0.3) 50%, transparent 50%),
        radial-gradient(1px 1px at 70% 90%, rgba(255,255,255,0.25) 50%, transparent 50%);
    background-size: 200px 200px;
    filter: drop-shadow(0 0 2px rgba(255,255,255,0.3));
    animation: snowFall3 35s linear infinite;
}

/* Animations */
@keyframes snowFall {
    0% { transform: translateY(-120px); }
    100% { transform: translateY(120px); }
}

@keyframes snowBigFall {
    0% { transform: translateY(-200px); }
    100% { transform: translateY(200px); }
}

@keyframes snowFall2 {
    0% { transform: translateY(-200px); }
    100% { transform: translateY(200px); }
}

@keyframes snowFall3 {
    0% { transform: translateY(-300px); }
    100% { transform: translateY(300px); }
}

/* Container ---------------------------- */
.container {
    max-width: var(--maxw);
    margin: 40px auto;
    background: var(--card);
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 6px 30px rgba(0,0,0,0.5);
    position: relative;
    z-index: 10; /* container above snow */
}

/* Header ---------------------------- */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.brand {
    display: flex;
    gap: 12px;
    align-items: center;
}

.logo {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--accent2), var(--accent3));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    filter: drop-shadow(0 0 6px rgba(255,255,255,0.4));
}

.site-title {
    font-size: 20px;
    font-weight: 700;
}

/* Navigation ---------------------------- */
.nav a {
    color: var(--muted);
    text-decoration: none;
    margin-left: 16px;
    font-weight: 600;
}

.nav a:hover {
    color: var(--accent);
}

/* Hero Banner ---------------------------- */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px;
    background: var(--glass);
    border-radius: 10px;
    margin-bottom: 18px;
}

/* Products Grid ---------------------------- */
.products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
}

.card {
    background: rgba(255,255,255,0.03);
    padding: 12px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: 0.2s;
}

.card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
}

/* Buttons ---------------------------- */
.btn {
    background: var(--accent);
    color: #001;
    padding: 8px 12px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 700;
    transition: 0.2s;
}

.btn:hover {
    background: var(--accent3);
}

/* Inputs ---------------------------- */
.form-row { margin-bottom: 8px; }

.input, textarea, select {
    width: 100%;
    padding: 8px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(0,0,0,0.2);
    color: var(--text);
}

/* Tables ---------------------------- */
.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 8px;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.table th {
    color: var(--accent);
}

/* Footer ---------------------------- */
.footer {
    margin-top: 18px;
    color: var(--muted);
    font-size: 13px;
}

/* Tags / Badges ---------------------------- */
.badge {
    background: rgba(255,255,255,0.09);
    padding: 4px 8px;
    border-radius: 6px;
}
