/* ════════════════════════════════════════════════════
   IDEASPRINT 2026 — Proposal Countdown Standalone
   Theme-matched to the main project
   ════════════════════════════════════════════════════ */

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

/* ── Palette ── */
:root {
    --color-darkest: #04231E;
    --color-dark: #1B5B4D;
    --color-mid: #128C7D;
    --color-accent: #03C7B3;
    --color-text: #FBFFFE;
    --text-muted: #B8C2C0;

    --font-body: 'Inter', sans-serif;
    --font-heading: 'Montserrat', 'Inter', sans-serif;
}

/* ── Reset ── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    overflow: hidden;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;

    /* Dark gradient background */
    background:
        radial-gradient(ellipse 80% 55% at 50% 0%, rgba(3, 199, 179, 0.10) 0%, transparent 65%),
        radial-gradient(ellipse 60% 70% at 50% 50%, rgba(3, 199, 179, 0.05) 0%, transparent 70%),
        radial-gradient(circle at 50% 10%, rgba(27, 91, 77, 0.20) 0%, rgba(4, 35, 30, 0.95) 80%),
        var(--color-darkest);
}

/* ── Animated Background Glow ── */
body::before {
    content: '';
    position: fixed;
    top: 50%;
    left: 50%;
    width: 900px;
    height: 900px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle,
            rgba(3, 199, 179, 0.06) 0%,
            rgba(3, 199, 179, 0.02) 40%,
            transparent 70%);
    pointer-events: none;
    z-index: 0;
    animation: glowPulse 5s ease-in-out infinite alternate;
}

@keyframes glowPulse {
    0% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(0.92);
    }

    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.08);
    }
}

/* ── Grid Overlay  ── */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(3, 199, 179, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(3, 199, 179, 0.03) 1px, transparent 1px);
    background-size: 45px 45px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
}

/* ── Glass Panel ── */
.countdown-panel {
    position: relative;
    z-index: 5;
    width: 90%;
    max-width: 520px;
    padding: clamp(2rem, 5vw, 3.2rem);
    border-radius: 28px;

    background: rgba(4, 35, 30, 0.80);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    border: 1px solid rgba(3, 199, 179, 0.22);
    box-shadow:
        0 24px 80px rgba(0, 0, 0, 0.5),
        0 0 50px rgba(3, 199, 179, 0.06),
        inset 0 1px 0 rgba(3, 199, 179, 0.10);

    animation: panelIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

@keyframes panelIn {
    from {
        opacity: 0;
        transform: translateY(25px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Panel inner glow */
.countdown-panel::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    width: 320px;
    height: 320px;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(3, 199, 179, 0.12) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* ── Content Wrapper ── */
.panel-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.3rem;
}

/* ── Logo ── */
.countdown-logo {
    display: block;
    width: 100%;
    max-width: 240px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 16px rgba(3, 199, 179, 0.35)) drop-shadow(0 8px 16px rgba(0, 0, 0, 0.5));
    user-select: none;
    pointer-events: none;
    margin-bottom: -0.8rem;
    animation: logoIn 1s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes logoIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── Status Icon ── */
.status-icon {
    font-size: 2.8rem;
    line-height: 1;
    filter: drop-shadow(0 0 12px rgba(3, 199, 179, 0.3));
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

/* ── Badge ── */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(3, 199, 179, 0.10);
    border: 1px solid rgba(3, 199, 179, 0.35);
    border-radius: 50px;
    padding: 0.35rem 1rem;
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--color-accent);
    white-space: nowrap;
}

.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-accent);
    box-shadow: 0 0 8px var(--color-accent), 0 0 16px rgba(3, 199, 179, 0.3);
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.75);
    }
}

/* ── Title ── */
.countdown-title {
    font-family: var(--font-heading);
    font-size: clamp(1.4rem, 4vw, 1.9rem);
    font-weight: 800;
    color: var(--color-text);
    letter-spacing: 1px;
    margin: 0;
}

/* ── Message ── */
.countdown-message {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.65;
    max-width: 400px;
    margin: 0;
}

.countdown-message strong {
    color: var(--color-accent);
    font-weight: 600;
}

/* ── Countdown Timer ── */
.countdown {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0.5rem 0;
}

.time-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 60px;
    padding: 0.7rem 0.6rem;
    background: rgba(3, 199, 179, 0.08);
    border: 1px solid rgba(3, 199, 179, 0.15);
    border-radius: 14px;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.time-block:hover {
    border-color: rgba(3, 199, 179, 0.35);
    background: rgba(3, 199, 179, 0.12);
}

.time-value {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3.5vw, 1.9rem);
    font-weight: 800;
    color: var(--color-accent);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.time-label {
    font-family: var(--font-heading);
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.time-sep {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: rgba(3, 199, 179, 0.40);
    line-height: 1;
    padding-bottom: 1rem;
    animation: sepBlink 1.5s ease-in-out infinite;
}

@keyframes sepBlink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

/* ── Template Button ── */
.template-btn {
    display: none;
    /* controlled by JS */
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    text-decoration: none;
    padding: 0.8rem 1.8rem;
    border-radius: 999px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, border-color 0.3s ease;
    white-space: nowrap;
    position: relative;
    overflow: hidden;

    background: transparent;
    color: #e6fefe;
    border: 1.5px solid rgba(3, 199, 179, 0.35);
    box-shadow: 0 0 8px rgba(3, 199, 179, 0.05);
}

.template-btn:hover {
    background: rgba(3, 199, 179, 0.12);
    border-color: rgba(3, 199, 179, 0.60);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.15), 0 0 16px rgba(3, 199, 179, 0.12);
}

.template-btn:active {
    transform: scale(0.97);
}

/* Shine effect on hover */
.template-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.10) 50%, transparent 100%);
    transform: skewX(-20deg);
    pointer-events: none;
}

.template-btn:hover::after {
    animation: btnShine 0.5s ease forwards;
}

@keyframes btnShine {
    0% {
        left: -100%;
    }

    100% {
        left: 150%;
    }
}

/* ── Decorative Corners ── */
.corner {
    position: absolute;
    width: 20px;
    height: 20px;
    border-color: rgba(3, 199, 179, 0.25);
    border-style: solid;
    border-width: 0;
    z-index: 0;
}

.corner--tl {
    top: 12px;
    left: 12px;
    border-top-width: 2px;
    border-left-width: 2px;
    border-top-left-radius: 6px;
}

.corner--tr {
    top: 12px;
    right: 12px;
    border-top-width: 2px;
    border-right-width: 2px;
    border-top-right-radius: 6px;
}

.corner--bl {
    bottom: 12px;
    left: 12px;
    border-bottom-width: 2px;
    border-left-width: 2px;
    border-bottom-left-radius: 6px;
}

.corner--br {
    bottom: 12px;
    right: 12px;
    border-bottom-width: 2px;
    border-right-width: 2px;
    border-bottom-right-radius: 6px;
}

/* ── Floating Particles (CSS-only) ── */
.particle {
    position: fixed;
    border-radius: 50%;
    background: var(--color-accent);
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    animation: particleFloat linear infinite;
}

.particle:nth-child(1) {
    width: 3px;
    height: 3px;
    left: 15%;
    animation-duration: 12s;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    width: 2px;
    height: 2px;
    left: 35%;
    animation-duration: 15s;
    animation-delay: 2s;
}

.particle:nth-child(3) {
    width: 4px;
    height: 4px;
    left: 60%;
    animation-duration: 10s;
    animation-delay: 1s;
}

.particle:nth-child(4) {
    width: 2px;
    height: 2px;
    left: 80%;
    animation-duration: 14s;
    animation-delay: 3s;
}

.particle:nth-child(5) {
    width: 3px;
    height: 3px;
    left: 45%;
    animation-duration: 11s;
    animation-delay: 5s;
}

.particle:nth-child(6) {
    width: 2px;
    height: 2px;
    left: 25%;
    animation-duration: 13s;
    animation-delay: 4s;
}

@keyframes particleFloat {
    0% {
        bottom: -10px;
        opacity: 0;
        transform: translateX(0);
    }

    15% {
        opacity: 0.25;
    }

    50% {
        opacity: 0.15;
        transform: translateX(20px);
    }

    85% {
        opacity: 0.25;
    }

    100% {
        bottom: 110%;
        opacity: 0;
        transform: translateX(-15px);
    }
}

/* ── Responsive ── */
@media (max-width: 480px) {
    .countdown-panel {
        width: 95%;
        padding: 2rem 1.5rem;
        border-radius: 22px;
    }

    .time-block {
        min-width: 50px;
        padding: 0.5rem 0.35rem;
    }

    .time-value {
        font-size: 1.25rem;
    }

    .template-btn {
        width: 100%;
    }

    .status-icon {
        font-size: 2.2rem;
    }
}
