/* ============================================================
   CountDownToHell – Sticky Footer Styles
   ============================================================ */

/* ── CSS Variables ── */
:root {
    --cdth-bg-start: #0a0a0a;
    --cdth-bg-end: #1a0a0a;
    --cdth-accent: #ff4500;
    --cdth-accent-glow: #ff6347;
    --cdth-text: #f0f0f0;
    --cdth-muted: #aaa;
    --cdth-block-bg: rgba(255, 69, 0, 0.08);
    --cdth-block-border: rgba(255, 69, 0, 0.25);
    --cdth-height: 80px;
}

/* ── Sticky Footer ── */
.cdth-footer {
    position: fixed;
    bottom: 81px;
    left: 0;
    right: 0;
    z-index: 99999;
    height: var(--cdth-height);
    background: linear-gradient(180deg, var(--cdth-bg-start) 0%, var(--cdth-bg-end) 100%);
    border-top: 2px solid var(--cdth-accent);
    box-shadow: 0 -4px 20px rgba(255, 69, 0, 0.25), 0 -1px 3px rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    animation: cdth-slideUp 0.5s ease-out;
}

/* ── Push body content up so footer doesn't overlap ── */
body {
    padding-bottom: calc(var(--cdth-height) + 10px) !important;
}

/* ── Inner container ── */
.cdth-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0 16px;
    max-width: 900px;
    width: 100%;
}

/* ── Headline ── */
.cdth-headline {
    color: var(--cdth-accent-glow);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-shadow: 0 0 12px rgba(255, 69, 0, 0.5);
    white-space: nowrap;
}

/* ── Timer container ── */
.cdth-timer {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ── Number blocks ── */
.cdth-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--cdth-block-bg);
    border: 1px solid var(--cdth-block-border);
    border-radius: 8px;
    padding: 6px 10px;
    min-width: 50px;
}

.cdth-number {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--cdth-text);
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
    transition: color 0.3s;
}

.cdth-label {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--cdth-muted);
    margin-top: 2px;
}

/* ── Separator ── */
.cdth-sep {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--cdth-accent);
    animation: cdth-pulse 1s ease-in-out infinite;
    margin-top: -8px;
}

/* ── Countdown abgelaufen ── */
.cdth-footer.cdth-done {
    background: linear-gradient(180deg, #0a1a0a 0%, #0a2a0a 100%);
    border-top-color: #4caf50;
    box-shadow: 0 -4px 20px rgba(76, 175, 80, 0.3), 0 -1px 3px rgba(0,0,0,0.6);
}
.cdth-footer.cdth-done .cdth-headline {
    color: #4caf50;
    text-shadow: 0 0 12px rgba(76, 175, 80, 0.5);
}

/* ── Animations ── */
@keyframes cdth-slideUp {
    from { transform: translateY(100%); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

@keyframes cdth-pulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.3; }
}

/* ── Responsive ── */
@media (max-width: 680px) {
    :root { --cdth-height: 120px; }

    .cdth-inner {
        flex-direction: column;
        gap: 8px;
    }
    .cdth-headline {
        font-size: 0.9rem;
    }
    .cdth-number {
        font-size: 1.3rem;
    }
    .cdth-block {
        min-width: 42px;
        padding: 4px 7px;
    }
}

@media (max-width: 400px) {
    :root { --cdth-height: 130px; }

    .cdth-number { font-size: 1.1rem; }
    .cdth-block  { min-width: 36px; padding: 3px 5px; }
    .cdth-sep    { font-size: 1.1rem; }
}
