/* =========================================================
   DCU Admission 2025–26 — single-screen notice landing
   Light theme, navy + gold, fits viewport on mobile & desktop
   ========================================================= */

:root {
    --navy-900: #0b1838;
    --navy-800: #122251;
    --navy-700: #1c3071;
    --gold-700: #a87618;
    --gold-600: #c08a20;
    --gold-500: #d49a32;
    --gold-400: #e3b25a;
    --gold-100: #f8e8c4;
    --gold-50:  #fdf6e3;

    --ink-900: #0f172a;
    --ink-700: #334155;
    --ink-500: #64748b;
    --ink-400: #94a3b8;

    --bg: #fbf7ec;
    --bg-soft: #f5efdf;
    --card: #ffffff;
    --border: #e8dec3;
    --border-strong: #d9c89a;

    --shadow-md: 0 10px 30px -12px rgba(11, 24, 56, 0.18);
    --shadow-lg: 0 30px 60px -25px rgba(11, 24, 56, 0.30),
                 0 12px 24px -10px rgba(11, 24, 56, 0.12);

    --font-en: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-bn: 'Hind Siliguri', 'Inter', system-ui, sans-serif;
    --font-display: 'Playfair Display', 'Inter', Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
    background: var(--bg);
    color: var(--ink-700);
    font-family: var(--font-en);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

[lang="bn"] { font-family: var(--font-bn); }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ---------------- Stage (single-screen) ---------------- */
.stage {
    position: relative;
    width: 100%;
    min-height: 100vh;
    min-height: 100svh;
    padding: clamp(20px, 4vh, 44px) clamp(20px, 5vw, 56px);
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: clamp(18px, 3vh, 36px);
    overflow: hidden;
    background:
        radial-gradient(ellipse 60% 50% at 80% 10%, rgba(212, 154, 50, 0.18), transparent 60%),
        radial-gradient(ellipse 50% 45% at 10% 95%, rgba(28, 48, 113, 0.10), transparent 60%),
        linear-gradient(180deg, #fdfaf0 0%, #f5efdf 100%);
}

/* Decorative background layers */
.bg-aura {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 50% 50%, rgba(212, 154, 50, 0.06) 0%, transparent 40%);
}
.bg-grid {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        radial-gradient(circle at 1px 1px, rgba(11, 24, 56, 0.05) 1px, transparent 0);
    background-size: 30px 30px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, #000 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, #000 30%, transparent 80%);
    opacity: 0.55;
}

/* ---------------- Brand (top) ---------------- */
.brand {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    text-align: left;
}
.brand-crest {
    width: clamp(44px, 6vh, 60px);
    height: clamp(44px, 6vh, 60px);
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(11, 24, 56, 0.25));
}
.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}
.brand-name {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(15px, 2.1vh, 18px);
    color: var(--navy-900);
    letter-spacing: 0.01em;
}
.brand-name-bn {
    margin: 2px 0 0;
    font-size: clamp(12px, 1.7vh, 14px);
    color: var(--ink-500);
}

/* ---------------- Notice (center) ---------------- */
.notice {
    position: relative;
    z-index: 2;
    align-self: center;
    justify-self: center;
    width: 100%;
    max-width: 780px;
    background:
        linear-gradient(180deg, #ffffff 0%, #fffdf7 100%);
    border: 1px solid var(--border-strong);
    border-radius: clamp(18px, 2.4vh, 26px);
    padding: clamp(22px, 4vh, 46px) clamp(22px, 5vw, 52px);
    box-shadow: var(--shadow-lg);
    text-align: center;
    overflow: hidden;
}
.notice::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 5px;
    background: linear-gradient(90deg,
        var(--gold-500) 0%,
        var(--gold-400) 35%,
        var(--navy-700) 100%);
}

/* Eyebrow tag */
.notice-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px 6px 10px;
    background: rgba(212, 154, 50, 0.10);
    color: var(--gold-700);
    border: 1px solid rgba(212, 154, 50, 0.30);
    border-radius: 999px;
    font-size: clamp(11px, 1.5vh, 13px);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.notice-eyebrow [lang="bn"] { text-transform: none; letter-spacing: 0; }
.dot {
    width: 6px; height: 6px;
    background: var(--gold-500);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(212, 154, 50, 0.7);
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%   { box-shadow: 0 0 0 0   rgba(212, 154, 50, 0.7); }
    70%  { box-shadow: 0 0 0 10px rgba(212, 154, 50, 0); }
    100% { box-shadow: 0 0 0 0   rgba(212, 154, 50, 0); }
}

/* Title */
.notice-title {
    margin: clamp(14px, 2.4vh, 22px) 0 clamp(16px, 2.6vh, 26px);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.6rem, 4.6vh, 2.8rem);
    line-height: 1.12;
    color: var(--navy-900);
    letter-spacing: -0.015em;
}
.notice-title-accent {
    display: block;
    margin-top: 4px;
    background: linear-gradient(120deg, var(--gold-600), var(--gold-500) 50%, var(--navy-700));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ---------------- Countdown (luxury watch face) ---------------- */
.countdown {
    position: relative;
    display: inline-flex;
    align-items: stretch;
    margin-bottom: clamp(14px, 2vh, 18px);
    padding: clamp(16px, 2.4vh, 24px) clamp(10px, 1.6vw, 18px);
    border-radius: 20px;
    background:
        radial-gradient(ellipse 70% 100% at 50% 0%, #1d3373 0%, transparent 70%),
        linear-gradient(180deg, #142755 0%, #0a1632 100%);
    box-shadow:
        0 30px 60px -28px rgba(11, 24, 56, 0.65),
        0 8px 18px -10px rgba(11, 24, 56, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.07),
        inset 0 -1px 0 rgba(0, 0, 0, 0.35);
    isolation: isolate;
}

/* Hairline gold border around the whole bezel */
.countdown::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 1px;
    background: linear-gradient(180deg,
        rgba(227, 178, 90, 0.55) 0%,
        rgba(227, 178, 90, 0.12) 40%,
        rgba(227, 178, 90, 0.04) 100%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
            mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    pointer-events: none;
}

/* Subtle top-edge sheen */
.countdown::after {
    content: '';
    position: absolute;
    top: 0; left: 14%; right: 14%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
    pointer-events: none;
}

/* Soft ambient gold glow that breathes */
.cd-glow {
    position: absolute;
    inset: -30%;
    background: radial-gradient(ellipse 40% 60% at 50% 50%, rgba(227, 178, 90, 0.18), transparent 70%);
    z-index: -1;
    filter: blur(20px);
    animation: breathe 6s ease-in-out infinite;
}
@keyframes breathe {
    0%, 100% { opacity: 0.55; transform: scale(1); }
    50%      { opacity: 0.9;  transform: scale(1.05); }
}

/* Individual cell */
.cd-cell {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: clamp(64px, 10vw, 90px);
    padding: 0 clamp(10px, 1.6vw, 18px);
}

/* Hairline gold divider between cells */
.cd-cell + .cd-cell::before {
    content: '';
    position: absolute;
    left: 0;
    top: 18%;
    bottom: 18%;
    width: 1px;
    background: linear-gradient(180deg,
        transparent 0%,
        rgba(227, 178, 90, 0.40) 50%,
        transparent 100%);
}

/* The number */
.cd-num {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(2.1rem, 5.6vh, 3.3rem);
    line-height: 1;
    color: #fdf7e6;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
    text-shadow:
        0 1px 0 rgba(0, 0, 0, 0.35),
        0 0 30px rgba(227, 178, 90, 0.18);
}

/* Thin gold accent between number and label */
.cd-lbl {
    position: relative;
    margin-top: 12px;
    padding-top: 10px;
    font-size: clamp(9.5px, 1.3vh, 11px);
    font-weight: 600;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--gold-400);
}
.cd-lbl::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-500), transparent);
}

/* When the countdown reaches zero */
.countdown.is-live .cd-num { color: var(--gold-400); }

/* Caption below countdown */
.countdown-caption {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 clamp(16px, 2.6vh, 24px);
    font-size: clamp(12px, 1.6vh, 14px);
    color: var(--ink-500);
    font-weight: 500;
    flex-wrap: wrap;
    justify-content: center;
}
.countdown-caption [lang="bn"] { color: var(--navy-900); font-weight: 600; }
.caption-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--gold-500);
    box-shadow: 0 0 6px rgba(212, 154, 50, 0.55);
}

/* Notice message text (bilingual) */
.notice-message {
    max-width: 620px;
    margin: 0 auto;
}
.msg-bn {
    margin: 0 0 10px;
    font-family: var(--font-bn);
    font-size: clamp(15px, 2.2vh, 19px);
    line-height: 1.7;
    color: var(--navy-900);
    font-weight: 500;
}
.msg-bn strong { color: var(--gold-700); font-weight: 700; }
.msg-en {
    margin: 0;
    padding-top: 10px;
    border-top: 1px dashed var(--border-strong);
    font-size: clamp(13.5px, 1.9vh, 16px);
    line-height: 1.6;
    color: var(--ink-700);
}
.msg-en strong { color: var(--navy-900); font-weight: 700; }

/* ---------------- Footer (bottom) ---------------- */
.foot {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: clamp(12px, 1.7vh, 14px);
    color: var(--ink-500);
}
.foot-label {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-weight: 600;
    font-size: clamp(10px, 1.4vh, 12px);
    color: var(--ink-400);
}
.foot-link {
    color: var(--navy-900);
    font-weight: 600;
    border-bottom: 1.5px solid var(--gold-500);
    padding-bottom: 1px;
    transition: color 0.2s ease, border-color 0.2s ease;
}
.foot-link:hover {
    color: var(--gold-700);
    border-color: var(--gold-700);
}

/* ==========================================================
   Mobile (portrait): everything fits — no scroll
   ========================================================== */
@media (max-width: 600px) {
    .stage {
        padding: 18px 16px 16px;
        gap: 14px;
    }
    .brand { gap: 10px; }
    .brand-text { line-height: 1.1; }

    .notice {
        padding: 22px 18px 24px;
        border-radius: 18px;
    }
    .notice-title {
        font-size: clamp(1.4rem, 6.2vw, 1.85rem);
        margin: 12px 0 14px;
    }
    .countdown {
        padding: 14px 6px;
        margin-bottom: 12px;
        border-radius: 16px;
    }
    .cd-cell { min-width: 56px; padding: 0 6px; }
    .cd-num { font-size: 1.85rem; }
    .cd-lbl {
        font-size: 9px;
        letter-spacing: 0.18em;
        margin-top: 8px;
        padding-top: 7px;
    }
    .cd-lbl::before { width: 14px; }
    .countdown-caption {
        font-size: 11.5px;
        gap: 8px;
        margin-bottom: 16px;
    }
    .msg-bn { font-size: 15px; line-height: 1.65; }
    .msg-en { font-size: 13.5px; }
}

/* Very short viewports (landscape phones) — compact further */
@media (max-height: 560px) {
    .stage { padding: 14px 18px; gap: 12px; }
    .notice { padding: 18px 22px; }
    .notice-title { margin: 10px 0 12px; }
    .countdown { padding: 12px 10px; margin-bottom: 10px; }
    .cd-num { font-size: 1.9rem; }
    .countdown-caption { margin-bottom: 12px; }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }
}
