/* =========================================================
   ESC CARD GENERATOR – MAIN GLOBAL STYLESHEET
   Applies to: Home, Generator, Static Pages, Footer, Overlays
   ========================================================= */

/* ===== ROOT VARIABLES ===== */

:root {
    --bg: #0b0e1a;
    --text: #f4f6ff;
    --muted: #9aa0c6;
    --accent: #ff4fd8;
    --accent2: #4fd8ff;
    --panel: #14182b;
    --radius: 16px;
    --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ===== BODY ===== */

body {
    margin: 0;
    padding: 0;
    font-family: var(--font);
    background: radial-gradient(circle at top, #1a1f4f 0, var(--bg) 60%);
    color: var(--text);
    line-height: 1.6;
}

/* ===== HEADER ===== */

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 32px;
    background: #0b1020;
    border-bottom: 1px solid #22263a;
}

header .logo {
    font-weight: 700;
    letter-spacing: 0.04em;
    font-size: 20px;
}

nav a {
    color: #c7c9d9;
    margin-left: 16px;
    text-decoration: none;
    font-size: 14px;
}

nav a:hover {
    color: #ffffff;
}

/* ===== MAIN WRAPPER ===== */

main {
    max-width: 900px;
    margin: 40px auto 80px;
    padding: 0 20px;
}

/* ===== TITLES ===== */

h1 {
    font-size: 36px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--accent2), var(--accent));
    -webkit-background-clip: text;
    color: transparent;
}

h2 {
    margin-top: 32px;
    font-size: 24px;
    color: var(--accent2);
}

p {
    color: #c7c9d9;
    margin-bottom: 14px;
    max-width: 800px;
}

ul {
    color: #c7c9d9;
    margin-left: 20px;
    margin-bottom: 20px;
}

/* ===== HERO SECTION ===== */

.hero {
    text-align: center;
    padding: 120px 20px 100px;
    max-width: 900px;
    margin: auto;
}

.hero h1 {
    font-size: 48px;
    font-weight: 800;
}

.hero p {
    font-size: 18px;
    color: var(--muted);
    max-width: 700px;
    margin: auto;
}

.cta {
    margin-top: 40px;
}

.cta a {
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    padding: 14px 28px;
    border-radius: var(--radius);
    color: #0b0e1a;
    font-weight: 700;
    text-decoration: none;
    font-size: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

/* ===== GENERIC SECTION ===== */

.section {
    max-width: 900px;
    margin: 80px auto;
    padding: 0 20px;
    text-align: center;
}

.section h2 {
    font-size: 32px;
    margin-bottom: 16px;
}

.section p {
    color: var(--muted);
    font-size: 16px;
}

/* ===== VOTING PANEL ===== */

.voting-panel {
    background: var(--panel);
    border-radius: var(--radius);
    padding: 24px;
    border: 1px solid rgba(255,255,255,0.12);
    max-width: 900px;
    margin: 40px auto;
    text-align: center;
}

.voting-title {
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent2), var(--accent));
    -webkit-background-clip: text;
    color: transparent;
}

.voting-desc {
    font-size: 15px;
    opacity: 0.9;
    margin-bottom: 20px;
}

.countdown-box {
    background: rgba(255,255,255,0.12);
    padding: 14px 20px;
    border-radius: 14px;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
}

/* ===== BUTTONS ===== */

.vote-button,
.extra-btn {
    padding: 14px 24px;
    border-radius: 999px;
    border: none;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: #0b0e1a;
    transition: 0.2s;
}

.vote-button.locked,
.extra-btn.locked {
    background: rgba(255,255,255,0.15);
    color: #ccc;
    cursor: not-allowed;
}

.extra-buttons {
    margin-top: 20px;
    display: flex;
    gap: 12px;
    justify-content: center;
}

.extra-btn:hover:not(.locked) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

.mini-btn {
    padding: 10px 16px;
    font-size: 18px;
}

/* ===== FINAL COUNTDOWN OVERLAY ===== */

.final-overlay {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at center,
        rgba(255,79,216,0.4),
        rgba(79,216,255,0.4),
        rgba(255,234,79,0.4),
        rgba(122,59,209,0.4),
        rgba(0,0,0,0.85)
    );
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    animation: bgPulse 2s infinite alternate ease-in-out;
}

.final-number {
    font-size: 180px;
    font-weight: 900;
    color: white;
    text-shadow:
        0 0 25px #ff4fd8,
        0 0 50px #4fd8ff,
        0 0 80px #ffea4f,
        0 0 120px #7a3bd1;
    animation: pulse 1s infinite, rainbowGlow 3s infinite linear;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.6; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes rainbowGlow {
    0% { filter: hue-rotate(0deg); }
    50% { filter: hue-rotate(180deg); }
    100% { filter: hue-rotate(360deg); }
}

@keyframes bgPulse {
    0% { background-size: 100% 100%; }
    100% { background-size: 130% 130%; }
}

/* ===== GLOBAL FOOTER ===== */

.global-footer {
    margin-top: 40px;
    padding: 18px 24px;
    background: rgba(0, 0, 0, 0.55);
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    color: #f5f5ff;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.footer-brand {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    opacity: 0.9;
}

.footer-right {
    display: flex;
    gap: 14px;
}

.footer-link {
    font-size: 14px;
    color: #4fd8ff;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(79, 216, 255, 0.4);
    background: rgba(10, 15, 35, 0.6);
    transition: 0.2s ease;
}

.footer-link:hover {
    background: rgba(79, 216, 255, 0.15);
    box-shadow: 0 0 10px rgba(79, 216, 255, 0.5);
    transform: translateY(-1px);
}

footer {
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid #22263a;
    text-align: center;
    color: #9aa0c6;
    font-size: 14px;
    background: #0a0c16;
}

.global-footer {
    margin-top: 40px;
    padding: 18px 24px;
    background: rgba(0, 0, 0, 0.55);
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    color: #f5f5ff;
    font-family: "Segoe UI", system-ui, sans-serif;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.footer-brand {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    opacity: 0.9;
}

.footer-right {
    display: flex;
    gap: 14px;
}

.footer-link {
    font-size: 14px;
    color: #4fd8ff;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(79, 216, 255, 0.4);
    background: rgba(10, 15, 35, 0.6);
    transition: 0.2s ease;
}

.footer-link:hover {
    background: rgba(79, 216, 255, 0.15);
    box-shadow: 0 0 10px rgba(79, 216, 255, 0.5);
    transform: translateY(-1px);
}
