/* ============================================================
   Squared — Christmas theme (landing page)
   Layered on top of landing.css. Loaded only by index.php.
   ============================================================ */

:root {
    --xmas-red: #c62828;
    --xmas-red-deep: #8e1b1b;
    --xmas-gold: #f6c445;
    --xmas-gold-deep: #d9a01f;
    --xmas-green: #0e6b1e;
    --xmas-cream: #fff8e7;
}

/* ---------- Snowfall ---------- */
#xmasSnow {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 990;
}

/* ---------- Navbar garland ---------- */
.xmas-garland {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -7px;
    height: 14px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 0 4%;
    pointer-events: none;
}

.xmas-garland::before {
    content: "";
    position: absolute;
    top: 3px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
        rgba(255, 255, 255, 0.05),
        rgba(255, 255, 255, 0.45) 18%,
        rgba(255, 255, 255, 0.28) 50%,
        rgba(255, 255, 255, 0.45) 82%,
        rgba(255, 255, 255, 0.05));
    border-radius: 2px;
}

.xmas-bulb {
    position: relative;
    width: 9px;
    height: 9px;
    margin-top: 0;
    border-radius: 50% 50% 45% 45%;
    background: currentColor;
    box-shadow: 0 0 9px 2px currentColor;
    animation: xmasTwinkle 2.4s ease-in-out infinite;
    animation-delay: var(--delay, 0s);
}

@keyframes xmasTwinkle {
    0%, 100% { opacity: 0.4; transform: scale(0.82); }
    50%      { opacity: 1;   transform: scale(1.12); }
}

/* ---------- Santa hat on the logo ---------- */
.xmas-logo-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-right: 10px;
}

.xmas-logo-wrap img {
    margin-right: 0;
}

.xmas-santa-hat {
    position: absolute;
    top: -15px;
    left: 8px;
    width: 34px;
    height: 26px;
    transform: rotate(-9deg);
    transform-origin: 70% 100%;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.35));
    pointer-events: none;
    animation: xmasHatSway 4.5s ease-in-out infinite;
}

@keyframes xmasHatSway {
    0%, 100% { transform: rotate(-9deg); }
    50%      { transform: rotate(-4deg); }
}

/* ---------- Hero: warm holiday glows ---------- */
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        radial-gradient(60% 55% at 8% 10%, rgba(198, 40, 40, 0.42), transparent 62%),
        radial-gradient(55% 50% at 94% 88%, rgba(246, 196, 69, 0.3), transparent 60%);
    mix-blend-mode: screen;
}

/* ---------- Hero: season badge + countdown ---------- */
.xmas-badge {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.7rem;
    max-width: 92vw;
    margin: 0 auto 1.35rem;
    padding: 0.5rem 1.1rem 0.5rem 0.8rem;
    background: rgba(18, 8, 8, 0.4);
    border: 1px solid rgba(246, 196, 69, 0.55);
    border-radius: 999px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #fff;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28), inset 0 0 18px rgba(246, 196, 69, 0.1);
}

.xmas-badge-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--xmas-gold);
    animation: xmasSpin 14s linear infinite;
}

@keyframes xmasSpin {
    to { transform: rotate(360deg); }
}

.xmas-badge-sep {
    width: 1px;
    height: 14px;
    background: rgba(255, 255, 255, 0.28);
}

.xmas-countdown {
    color: var(--xmas-gold);
    letter-spacing: 0.05em;
    text-shadow: 0 0 14px rgba(246, 196, 69, 0.45);
}

/* ---------- Hero ornaments ---------- */
.xmas-hero-ornament {
    position: absolute;
    z-index: 2;
    color: #fff;
    opacity: 0.16;
    pointer-events: none;
    animation: xmasFloat 9s ease-in-out infinite;
}

.xmas-ornament-left {
    left: 3%;
    top: 18%;
    width: 150px;
    height: 150px;
}

.xmas-ornament-right {
    right: 4%;
    bottom: 16%;
    width: 120px;
    height: 120px;
    animation-delay: -4s;
}

@keyframes xmasFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50%      { transform: translateY(-14px) rotate(8deg); }
}

/* ---------- Hero primary button: candy red + gold trim ---------- */
.btn-hero {
    background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 58%, #8e1b1b 100%);
    box-shadow: 0 4px 18px rgba(211, 47, 47, 0.45), inset 0 0 0 1px rgba(246, 196, 69, 0.6);
    position: relative;
    overflow: hidden;
}

.btn-hero::after {
    content: "";
    position: absolute;
    top: -20%;
    bottom: -20%;
    left: -60%;
    width: 40%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform: skewX(-20deg);
    animation: xmasShimmer 4s ease-in-out infinite;
}

.btn-hero:hover {
    box-shadow: 0 8px 28px rgba(211, 47, 47, 0.55), inset 0 0 0 1px rgba(246, 196, 69, 0.85);
}

@keyframes xmasShimmer {
    0%, 55%  { left: -60%; }
    100%     { left: 130%; }
}

/* Gold "Register" pill in the navbar */
.navbar .nav-link-register {
    background: linear-gradient(135deg, #f6c445, #e0a51a) !important;
    color: #4a2c00 !important;
    box-shadow: 0 4px 15px rgba(246, 196, 69, 0.35);
}

.navbar .nav-link-register:hover {
    box-shadow: 0 8px 25px rgba(246, 196, 69, 0.5);
}

/* ---------- Footer holiday strip ---------- */
.xmas-footer-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    background: linear-gradient(90deg, #0b3d10, #17641f, #0b3d10);
    border-top: 1px solid rgba(246, 196, 69, 0.35);
    border-bottom: 1px solid rgba(246, 196, 69, 0.35);
    color: var(--xmas-gold);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.06em;
    text-align: center;
}

.xmas-footer-strip svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    animation: xmasSpin 16s linear infinite;
}

/* ---------- Mobile tweaks ---------- */
@media (max-width: 768px) {
    .xmas-badge {
        gap: 0.5rem;
        font-size: 0.66rem;
        letter-spacing: 0.08em;
        padding: 0.45rem 0.85rem;
    }

    .xmas-badge-sep {
        display: none;
    }

    .xmas-ornament-left {
        width: 90px;
        height: 90px;
    }

    .xmas-ornament-right {
        width: 70px;
        height: 70px;
    }

    .xmas-santa-hat {
        top: -13px;
        left: 6px;
        width: 28px;
        height: 22px;
    }

    .xmas-garland {
        padding: 0 2%;
    }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    #xmasSnow {
        display: none;
    }

    .xmas-bulb,
    .xmas-santa-hat,
    .xmas-badge-icon,
    .xmas-hero-ornament,
    .xmas-footer-strip svg,
    .btn-hero::after {
        animation: none !important;
    }
}
