/* Template 2 — Modern Glassmorphism + Animated Blobs */

:root {
    --mdx-accent: 255, 99, 132; /* pinkish */
    --mdx-accent-2: 99, 102, 241; /* indigo */
    --mdx-bg1: 17, 24, 39;   /* slate-900 */
    --mdx-bg2: 2, 6, 23;     /* slate-950 */
    --mdx-text: #f8fafc;
    --mdx-muted: #cbd5e1;
}

/* Base layout */
/* Base layout */
body.mdxcsp-coming-soon.template-2 {
    margin: 0;
    max-height: 100vh;
    overflow: hidden;
    color: var(--mdx-text);
    background:
            radial-gradient(1200px 800px at 10% -10%, rgba(var(--mdx-accent), .25), transparent 60%),
            radial-gradient(1000px 700px at 100% 0%, rgba(var(--mdx-accent-2), .25), transparent 55%),
            linear-gradient(180deg, rgba(var(--mdx-bg1), 1), rgba(var(--mdx-bg2), 1));
    background-attachment: fixed;
    /* Optional default background image (comment or replace if you have one)
       background-image:
        url('../../../assets/img/bg-template-2.jpg'),
        radial-gradient(...), ...; */
    backdrop-filter: saturate(120%);
    -webkit-font-smoothing: antialiased;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
}

/* If inline background-image is provided from PHP, blend it */
body.mdxcsp-coming-soon.template-2[style*="background-image"] {
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
}

/* Animated decorative blobs */
.mdxcsp-bg {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.blob {
    position: absolute;
    width: 50vmax;
    height: 50vmax;
    filter: blur(80px);
    opacity: 0.25;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: float 18s ease-in-out infinite alternate;
    mix-blend-mode: screen;
}

.blob-1 {
    top: 10%;
    left: 15%;
    background: radial-gradient(closest-side, rgba(var(--mdx-accent), .9), rgba(var(--mdx-accent), .1));
}
.blob-2 {
    top: 5%;
    left: 85%;
    background: radial-gradient(closest-side, rgba(var(--mdx-accent-2), .9), rgba(var(--mdx-accent-2), .08));
    animation-delay: -6s;
}
.blob-3 {
    top: 80%;
    left: 60%;
    background: radial-gradient(closest-side, rgba(16, 185, 129, .9), rgba(16, 185, 129, .08));
    animation-delay: -3s;
}

@keyframes float {
    0%   { transform: translate(-50%, -50%) scale(1); }
    100% { transform: translate(-45%, -55%) scale(1.15); }
}

/* Subtle film grain for texture */
.grain {
    position: absolute;
    inset: -100%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' opacity='0.05'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    mix-blend-mode: overlay;
}

/* Header */
.mdxcsp-header {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    padding: 20px clamp(16px, 5vw, 40px);
}

.mdxcsp-brand img {
    height: 42px;
    width: auto;
    display: block;
    filter: drop-shadow(0 8px 20px rgba(0,0,0,.35));
}

/* Menu toggle button */
.mdxcsp-menu-toggle {
    appearance: none;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.16);
    color: var(--mdx-text);
    border-radius: 16px;
    padding: 10px 12px;
    cursor: pointer;
    transition: transform .18s ease, background .18s ease, border-color .18s ease;
    backdrop-filter: blur(8px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.mdxcsp-menu-toggle:hover {
    transform: translateY(-1px);
    background: rgba(255,255,255,.16);
    border-color: rgba(255,255,255,.24);
}
.mdxcsp-menu-toggle:active {
    transform: translateY(0);
}
.mdxcsp-menu-toggle img {
    width: 24px;
    height: auto;
    display: block;
}

/* Dropdown menu */
.mdxcsp-dropdown {
    position: absolute;
    right: clamp(16px, 5vw, 40px);
    top: 68px;
    min-width: 220px;
    background: rgba(15, 23, 42, .75);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 14px;
    backdrop-filter: blur(10px);
    padding: 8px;
    display: none;
    z-index: 3;
    box-shadow: 0 20px 60px rgba(0,0,0,.35), inset 0 1px rgba(255,255,255,.08);
}
.mdxcsp-dropdown[aria-hidden="false"],
.mdxcsp-dropdown.is-open {
    display: block;
    animation: menuSlide .2s ease both;
}
@keyframes menuSlide {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}
.mdxcsp-dropdown ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.mdxcsp-dropdown li a {
    display: block;
    padding: 10px 12px;
    color: #e5e7eb;
    text-decoration: none;
    border-radius: 10px;
    transition: background .18s ease, transform .18s ease;
}
.mdxcsp-dropdown li a:hover,
.mdxcsp-dropdown li a:focus-visible {
    background: rgba(255,255,255,.08);
    transform: translateX(2px);
    outline: none;
}

/* Main hero */
.mdxcsp-main {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    min-height: calc(100vh - 140px);
    padding: clamp(24px, 5vw, 60px);
}

.mdxcsp-hero {
    max-width: 980px;
    width: 100%;
    text-align: center;
    padding: clamp(18px, 4vw, 28px);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.04));
    border: 1px solid rgba(255,255,255,.22);
    box-shadow:
            0 30px 80px rgba(0,0,0,.35),
            inset 0 1px rgba(255,255,255,.25);
    backdrop-filter: blur(14px) saturate(120%);
}

/* Title */
.mdxcsp-title {
    font-size: clamp(28px, 5vw, 56px);
    line-height: 1.08;
    margin: 0 0 10px;
    letter-spacing: -0.02em;
    text-shadow: 0 8px 24px rgba(0,0,0,.35);
}
.mdxcsp-title .accent {
    background: linear-gradient(90deg, rgba(var(--mdx-accent),1), rgba(var(--mdx-accent-2),1));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Counter */
.mdxcsp-counter {
    display: grid;
    grid-template-columns: repeat(4, minmax(80px, 1fr));
    gap: clamp(10px, 2.8vw, 16px);
    margin: clamp(10px, 3vw, 20px) auto clamp(10px, 3vw, 24px);
}
.mdxcsp-time {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 16px;
    padding: clamp(12px, 2.8vw, 16px);
    box-shadow: inset 0 1px rgba(255,255,255,.18);
    transition: transform .25s ease, box-shadow .25s ease;
}
.mdxcsp-time:hover {
    transform: translateY(-2px);
    box-shadow: inset 0 1px rgba(255,255,255,.24), 0 10px 24px rgba(0,0,0,.25);
}
.mdxcsp-time .num {
    display: block;
    font-weight: 800;
    font-size: clamp(24px, 5vw, 44px);
    letter-spacing: 0.02em;
}
.mdxcsp-time .lbl {
    display: block;
    color: var(--mdx-muted);
    margin-top: 6px;
    font-size: clamp(12px, 2.8vw, 14px);
}

/* Subtitle */
.mdxcsp-subtitle {
    margin: 0 auto;
    max-width: 720px;
    color: #e2e8f0;
    opacity: .95;
    font-size: clamp(14px, 2.8vw, 18px);
}

/* Footer */
.mdxcsp-footer {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 16px clamp(16px, 5vw, 40px);
}
.mdxcsp-footer-left {
    color: #e5e7eb;
    opacity: .9;
    font-size: 14px;
}
.mdxcsp-footer-right {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}
.mdxcsp-footer-right .social {
    display: inline-flex;
    width: 36px; height: 36px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.16);
    transition: transform .18s ease, background .18s ease, border-color .18s ease;
    backdrop-filter: blur(6px);
}
.mdxcsp-footer-right .social:hover {
    transform: translateY(-2px);
    background: rgba(255,255,255,.12);
    border-color: rgba(255,255,255,.22);
}
.mdxcsp-footer-right img {
    width: 18px; height: 18px;
    filter: brightness(0) invert(1);
}

/* Responsive */
@media (max-width: 720px) {
    .mdxcsp-counter {
        grid-template-columns: repeat(2, minmax(120px, 1fr));
    }
    .mdxcsp-dropdown {
        right: clamp(12px, 4vw, 24px);
        top: 62px;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .blob,
    .mdxcsp-time,
    .mdxcsp-menu-toggle,
    .mdxcsp-dropdown {
        animation: none !important;
        transition: none !important;
    }
}