﻿/* =========================================================
   LAYOUT — YaladCustom (_Layout.cshtml)
   Scope: global layout chrome (header/menu/offcanvas/footer)
   ========================================================= */

/* ---------------------------------------------------------
   HEADER (premium glass)
   --------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1050;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

.premium-header {
    background: rgba(255,255,255,.78);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

/* Logo */
.brand-logo {
    display: block;
    height: 44px;
    width: auto;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0,0,0,.10);
}

.brand-name {
    font-weight: 800;
    letter-spacing: .2px;
    color: var(--ink);
}

/* Icon buttons */
.premium-icon-btn {
    width: 36px;
    height: 36px;
    font-size: .95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    transition: transform 140ms ease, box-shadow 140ms ease;
}

    .premium-icon-btn:hover {
        box-shadow: 0 10px 26px rgba(0,0,0,.12);
        transform: translateY(-1px);
    }

    .premium-icon-btn:focus-visible {
        outline: none;
        box-shadow: 0 0 0 .18rem rgba(110, 15, 26, .18);
    }

/* ---------------------------------------------------------
   TOPBAR MARQUEE
   --------------------------------------------------------- */
.site-header .topbar {
    background: var(--brand);
    color: #fff;
    overflow: hidden;
}

.badge-brand-soft {
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.25);
    color: #fff;
}

/* Marquee (ralenti) */
.topbar-marquee {
    overflow: hidden;
    white-space: nowrap;
    flex: 1 1 auto;
    min-width: 0;
}

.topbar-track {
    display: inline-flex;
    align-items: center;
    gap: 4rem;
    width: max-content;
    will-change: transform;
    animation: topbarMarquee 24s linear infinite; /* ✅ plus lent */
}

    .topbar-track span {
        white-space: nowrap;
    }

@keyframes topbarMarquee {
    0% {
        transform: translate3d(0,0,0);
    }

    100% {
        transform: translate3d(-50%,0,0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .topbar-track {
        animation: none;
    }
}

/* ---------------------------------------------------------
   DESKTOP DROPDOWN MENU (premium + nested stable)
   --------------------------------------------------------- */
.premium-menu {
    border-radius: 16px;
    padding: .4rem;
    border: 1px solid rgba(0,0,0,.06);
    box-shadow: 0 18px 44px rgba(0,0,0,.14);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    min-width: 230px;
}

    .premium-menu .dropdown-header {
        padding: .55rem .7rem .35rem;
        letter-spacing: .12em;
        font-weight: 800;
        color: rgba(17,24,39,.55);
        font-size: .88rem;
    }

    .premium-menu .dropdown-divider {
        margin: .35rem .35rem;
        opacity: .10;
    }

    .premium-menu .dropdown-item {
        border-radius: 12px;
        padding: .55rem .7rem;
        display: flex;
        align-items: center;
        gap: .4rem;
        color: rgba(17,24,39,.92);
        font-size: .88rem;
        transition: background-color 140ms ease, transform 140ms ease, box-shadow 140ms ease;
    }

        .premium-menu .dropdown-item i {
            opacity: .92;
        }

        .premium-menu .dropdown-item:hover,
        .premium-menu .dropdown-item:focus {
            background: rgba(110, 15, 26, .08);
            box-shadow: inset 0 0 0 1px rgba(110, 15, 26, .12);
            transform: translateY(-1px);
            color: rgba(17,24,39,.96);
        }

        .premium-menu .dropdown-item:active {
            transform: translateY(0);
        }

        .premium-menu .dropdown-item:focus-visible {
            outline: none;
            box-shadow: 0 0 0 .18rem rgba(110, 15, 26, .18), inset 0 0 0 1px rgba(110, 15, 26, .12);
        }

/* Hover open nested menus (desktop only) */
@media (min-width: 768px) {
    .premium-dropdown .dropdown-menu {
        margin-top: .5rem;
    }

    .premium-dropdown .dropdown:hover > .dropdown-menu {
        display: block;
    }

    .premium-dropdown .dropend {
        position: relative;
    }

        .premium-dropdown .dropend:hover > .dropdown-menu {
            display: block;
            top: -0.25rem;
            left: calc(100% - 6px); /* ✅ overlap => stable */
            margin-left: .35rem;
        }

        /* “tampon” anti-flicker */
        .premium-dropdown .dropend::after {
            content: "";
            position: absolute;
            top: 0;
            right: -14px;
            width: 14px;
            height: 100%;
        }
}

/* ---------------------------------------------------------
   OFFCANVAS (mobile)
   --------------------------------------------------------- */
.premium-offcanvas {
    border-left: 1px solid rgba(0,0,0,.08);
}

    .premium-offcanvas .offcanvas-header {
        background: rgba(255,255,255,.92);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    .premium-offcanvas .offcanvas-body {
        background: linear-gradient(180deg, #ffffff 0%, rgba(110,15,26,.03) 55%, #ffffff 100%);
    }

    .premium-offcanvas .list-group-item {
        border: 0;
        border-radius: 14px;
        margin-bottom: .35rem;
        padding: .85rem .9rem;
        background: rgba(255,255,255,.78);
        box-shadow: 0 8px 18px rgba(0,0,0,.06);
        transition: transform 140ms ease, box-shadow 140ms ease, background-color 140ms ease;
    }

        .premium-offcanvas .list-group-item:hover,
        .premium-offcanvas .list-group-item:focus {
            background: rgba(110,15,26,.06);
            box-shadow: 0 12px 26px rgba(0,0,0,.08);
            transform: translateY(-1px);
        }

    .premium-offcanvas .collapse.ps-3 {
        padding-left: .75rem !important;
    }

    .premium-offcanvas .collapse .list-group-item {
        background: rgba(255,255,255,.70);
        box-shadow: none;
        margin-bottom: .25rem;
        border-radius: 12px;
    }

/* Social logos */
.social-logo {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.site-footer {
    position: relative;
    z-index: 20;
}

    .site-footer a {
        position: relative;
        z-index: 21;
    }