/* =====================================================================
   ubcircus-modern.css
   ---------------------------------------------------------------------
   Modern override layer for the UBCircus public frontend.

   - Loaded AFTER all legacy CSS (style.css, color-red.css, responsive.css,
     own.css) inside resources/views/layouts/public.blade.php.
   - Scoped to the public theme wrapper (body.music-band) so the admin
     panel (layouts/admin.blade.php) is never affected.
   - Overrides only: typography rhythm, buttons, header/nav, hero captions,
     home cards, section headings, event rows, news cards, footer,
     page-title hero, spacing and mobile responsiveness.
   - Does NOT change MasterSlider / Owl Carousel / Bootstrap collapse
     mechanics, only their visual skin.

   Brand: stage-curtain red accent on near-black. Circus = live spectacle,
   so the accent behaves like a spotlight / ticket-stub spine.
   ===================================================================== */

:root {
    --ubc-accent:        #e21f2f;   /* legacy red, kept for consistency  */
    --ubc-accent-bright: #ff4d5c;   /* legacy hover red                  */
    --ubc-accent-deep:   #b1141f;
    --ubc-ink:           #060606;   /* legacy dark body background       */
    --ubc-surface:       #141416;   /* card / section surface            */
    --ubc-surface-2:     #1c1c1f;   /* raised surface                    */
    --ubc-line:          #2a2a2e;   /* hairline borders                  */
    --ubc-text:          #f4f4f5;
    --ubc-text-soft:     #b4b4ba;
    --ubc-text-mute:     #8a8a92;
    --ubc-radius:        14px;
    --ubc-radius-sm:     10px;
    --ubc-shadow:        0 18px 50px -22px rgba(0, 0, 0, 0.85);
    --ubc-shadow-hover:  0 26px 70px -24px rgba(0, 0, 0, 0.9);
    --ubc-ease:          cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------------------------------------------------------------------
   1. Base typography & rhythm
   ------------------------------------------------------------------- */
body.music-band {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body.music-band p {
    line-height: 1.75;
    color: var(--ubc-text-soft);
}

body.music-band ::selection {
    background: var(--ubc-accent);
    color: #fff;
}

/* Smooth, accessible scroll for the in-page scroll-up anchor */
html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    body.music-band *,
    body.music-band *::before,
    body.music-band *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

/* Keyboard focus visibility (template ships with none) */
body.music-band a:focus-visible,
body.music-band button:focus-visible,
body.music-band input:focus-visible,
body.music-band .btn:focus-visible {
    outline: 2px solid var(--ubc-accent-bright);
    outline-offset: 3px;
}

/* ---------------------------------------------------------------------
   2. Buttons — polished, with hover lift
   ------------------------------------------------------------------- */
body.music-band .btn {
    min-width: 0;
    padding: 16px 38px;
    background-color: var(--ubc-accent);
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: 0.02em;
    box-shadow: 0 12px 30px -12px rgba(226, 31, 47, 0.6);
    transition: transform 0.35s var(--ubc-ease),
                box-shadow 0.35s var(--ubc-ease),
                background-color 0.35s var(--ubc-ease);
}

body.music-band .btn:hover,
body.music-band .btn:focus {
    background-color: var(--ubc-accent-bright);
    transform: translateY(-2px);
    box-shadow: 0 18px 38px -12px rgba(255, 77, 92, 0.55);
}

body.music-band .btn span {
    position: relative;
    z-index: 2;
    color: #fff;
}

/* Keep the legacy wipe overlay from fighting the new flat fill */
body.music-band .btn::after { display: none !important; }

body.music-band .btn.btn-large {
    padding: 18px 46px;
    font-size: 16px;
}

/* Secondary / outline treatment for the newsletter trigger */
body.music-band .newsletter-popup-trigger {
    background-color: transparent;
    border: 1.5px solid var(--ubc-accent);
    box-shadow: none;
}
body.music-band .newsletter-popup-trigger:hover {
    background-color: var(--ubc-accent);
    box-shadow: 0 16px 34px -14px rgba(226, 31, 47, 0.6);
}

/* ---------------------------------------------------------------------
   3. Header & navigation — sticky, translucent, blurred
   ------------------------------------------------------------------- */
body.music-band .header-wrapper.header-transparent {
    position: sticky;
    top: 0;
    z-index: 1030;
    padding-top: 0;
    background-color: rgba(8, 8, 8, 0.72);
    backdrop-filter: saturate(140%) blur(14px);
    -webkit-backdrop-filter: saturate(140%) blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Slim, quieter top bar */
body.music-band .top-bar-wrapper {
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

body.music-band .header-inner {
    padding: 6px 0;
}

body.music-band #logo img {
    transition: opacity 0.3s var(--ubc-ease);
}
body.music-band #logo a:hover img { opacity: 0.85; }

/* Nav links: animated underline that grows from the centre */
body.music-band .navbar-default .navbar-nav > li > a {
    position: relative;
    font-weight: 500;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    font-size: 13px;
    transition: color 0.3s var(--ubc-ease);
}

body.music-band .navbar-default .navbar-nav > li > a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 6px;
    width: 0;
    height: 2px;
    background: var(--ubc-accent);
    transform: translateX(-50%);
    transition: width 0.3s var(--ubc-ease);
}

body.music-band .navbar-default .navbar-nav > li > a:hover::after,
body.music-band .navbar-default .navbar-nav > li.current-menu-item > a::after {
    width: 22px;
}

/* Dropdown panel — card-like, not a flat strip */
body.music-band .navbar-default .navbar-nav .dropdown-menu {
    background-color: var(--ubc-surface-2);
    border: 1px solid var(--ubc-line);
    border-radius: var(--ubc-radius-sm);
    padding: 8px;
    box-shadow: var(--ubc-shadow);
    overflow: hidden;
}
body.music-band .navbar-default .navbar-nav .dropdown-menu > li > a {
    border-radius: 8px;
    padding: 9px 14px;
    transition: background-color 0.25s var(--ubc-ease), color 0.25s var(--ubc-ease);
}
body.music-band .navbar-default .navbar-nav .dropdown-menu > li > a:hover {
    background-color: rgba(226, 31, 47, 0.12);
    color: var(--ubc-accent-bright);
}

/* Language switcher dropdown (own.css base) */
body.music-band .header-cart .dropdown-menu {
    background-color: var(--ubc-surface-2);
    border: 1px solid var(--ubc-line);
    border-radius: var(--ubc-radius-sm);
}

/* Hamburger sits a touch larger for touch targets */
body.music-band .navbar-toggle.hamburger {
    padding: 10px;
}

/* ---------------------------------------------------------------------
   4. Hero / MasterSlider caption legibility
   (typography only — never touch slider sizing/positioning)
   ------------------------------------------------------------------- */
body.music-band .ms-slide .pi-caption {
    text-shadow: 0 4px 26px rgba(0, 0, 0, 0.6);
    letter-spacing: 0.01em;
}
body.music-band .ms-slide .pi-caption-02 {
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.7);
}
body.music-band .ms-slide .pi-button-02 {
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
}
/* Soft bottom vignette so captions stay readable on bright slides */
body.music-band #masterslider-band::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 45%;
    background: linear-gradient(to top, rgba(6, 6, 6, 0.55), transparent);
    pointer-events: none;
    z-index: 1;
}

/* ---------------------------------------------------------------------
   5. Homepage quick-links (About / Event / News block buttons)
   ------------------------------------------------------------------- */
body.music-band .page-content { position: relative; }

body.music-band .block-button {
    position: relative;
    border-radius: var(--ubc-radius);
    overflow: hidden;
    box-shadow: var(--ubc-shadow);
    isolation: isolate;
}

body.music-band .block-button img {
    margin-bottom: 0;
    height: 320px;
    object-fit: cover;
    transition: transform 0.6s var(--ubc-ease);
}

/* Gradient scrim so the title sits on top legibly */
body.music-band .block-button::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(6, 6, 6, 0.85) 0%, rgba(6, 6, 6, 0.15) 55%, transparent 100%);
    transition: background 0.4s var(--ubc-ease);
    z-index: 1;
}

body.music-band .block-button h3 {
    position: absolute;
    left: 0; right: 0;
    bottom: 22px;
    z-index: 2;
    margin: 0;
    text-align: center;
    font-size: 26px;
    letter-spacing: 0.02em;
}

body.music-band .block-button::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 14px;
    width: 30px;
    height: 3px;
    background: var(--ubc-accent);
    transform: translateX(-50%) scaleX(0);
    transform-origin: center;
    transition: transform 0.4s var(--ubc-ease);
    z-index: 2;
}

body.music-band .block-button:hover img { transform: scale(1.06); }
body.music-band .block-button:hover::before { transform: translateX(-50%) scaleX(1); }
body.music-band .block-button:hover h3 { color: #fff; }

/* Even vertical gap when the three cards stack on small screens */
@media (max-width: 767px) {
    body.music-band .page-content .col-xs-12.mb-0 { margin-bottom: 22px; }
    body.music-band .block-button img { height: 240px; }
}

/* ---------------------------------------------------------------------
   6. Section headings — accent marquee bar (signature element)
   ------------------------------------------------------------------- */
body.music-band .custom-heading-01 {
    text-align: center;
    margin-bottom: 18px;
}
body.music-band .custom-heading-01 h2 {
    position: relative;
    display: inline-block;
    padding-bottom: 18px;
    letter-spacing: 0.01em;
}
body.music-band .custom-heading-01 h2::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 56px;
    height: 3px;
    background: linear-gradient(90deg, var(--ubc-accent), var(--ubc-accent-bright));
    border-radius: 999px;
}

/* ---------------------------------------------------------------------
   7. Event rows — ticket-stub cards with an accent spine
   ------------------------------------------------------------------- */
body.music-band .pi-events.events-style-02 .events-row {
    background: var(--ubc-surface);
    border: 1px solid var(--ubc-line);
    border-left: 3px solid transparent;
    border-radius: var(--ubc-radius-sm);
    padding: 22px 26px;
    margin-bottom: 14px;
    transition: border-color 0.35s var(--ubc-ease),
                transform 0.35s var(--ubc-ease),
                box-shadow 0.35s var(--ubc-ease),
                background-color 0.35s var(--ubc-ease);
}

body.music-band .pi-events.events-style-02 .events-row:hover {
    background: var(--ubc-surface-2);
    border-color: var(--ubc-line);
    border-left-color: var(--ubc-accent);
    transform: translateY(-2px);
    box-shadow: var(--ubc-shadow);
}

body.music-band .pi-events.events-style-02 .events-cell { padding-right: 18px; }

body.music-band .pi-events.events-style-02 .event-subtitle {
    color: var(--ubc-text-mute);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 12px;
}
body.music-band .pi-events.events-style-02 .event-date {
    color: #fff;
    font-weight: 600;
}
body.music-band .pi-events.events-style-02 .event-location a {
    color: var(--ubc-text);
    transition: color 0.25s var(--ubc-ease);
}
body.music-band .pi-events.events-style-02 .event-location a:hover {
    color: var(--ubc-accent-bright);
}

/* Stack the table-cells into a readable column on mobile */
@media (max-width: 767px) {
    body.music-band .pi-events.events-style-02 .events-row {
        display: block;
        padding: 20px;
    }
    body.music-band .pi-events.events-style-02 .events-row .events-cell {
        display: block;
        width: 100%;
        padding: 0 0 14px 0;
    }
    body.music-band .pi-events.events-style-02 .events-row .events-cell:last-child {
        padding-bottom: 0;
    }
    body.music-band .pi-events.events-style-02 .events-buttons .btn {
        display: inline-block;
        margin-top: 4px;
    }
}

/* ---------------------------------------------------------------------
   8. News carousel cards (Owl) — skin only, no layout/JS changes
   ------------------------------------------------------------------- */
body.music-band .latest-posts-carousel-03 .latest-post-item {
    background: var(--ubc-surface);
    border: 1px solid var(--ubc-line);
    border-radius: var(--ubc-radius);
    overflow: hidden;
    transition: transform 0.4s var(--ubc-ease), box-shadow 0.4s var(--ubc-ease);
}
body.music-band .latest-posts-carousel-03 .latest-post-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--ubc-shadow-hover);
}
body.music-band .latest-posts-carousel-03 .post-media {
    overflow: hidden;
}
body.music-band .latest-posts-carousel-03 .post-media img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.6s var(--ubc-ease);
}
body.music-band .latest-posts-carousel-03 .latest-post-item:hover .post-media img {
    transform: scale(1.05);
}
body.music-band .latest-posts-carousel-03 .post-body {
    padding: 18px 20px 22px;
}
body.music-band .latest-posts-carousel-03 .post-body h3 a {
    transition: color 0.25s var(--ubc-ease);
}

/* YouTube embed: rounded + framed to match cards */
body.music-band .page-content iframe[src*="youtube"] {
    border-radius: var(--ubc-radius);
    box-shadow: var(--ubc-shadow);
    border: 1px solid var(--ubc-line);
}

/* ---------------------------------------------------------------------
   9. Page-title hero (inner pages) — overlay + tighter rhythm
   ------------------------------------------------------------------- */
body.music-band .page-title {
    padding-top: 180px;
    padding-bottom: 120px;
    margin-bottom: 70px;
    position: relative;
}
body.music-band .page-title::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(6, 6, 6, 0.45) 0%, rgba(6, 6, 6, 0.78) 100%);
    z-index: 0;
}
body.music-band .page-title .container { position: relative; z-index: 1; }
body.music-band .page-title .pt-heading h1 span {
    border-radius: 6px;
}

/* Countdown counter spacing on event detail hero */
body.music-band #events-single.counter { letter-spacing: 0.02em; }

/* ---------------------------------------------------------------------
   10. Footer & copyright
   ------------------------------------------------------------------- */
body.music-band #footer-wrapper {
    border-top: 1px solid var(--ubc-line);
    background: linear-gradient(180deg, var(--ubc-ink) 0%, #0b0b0d 100%);
}
body.music-band #footer { padding-top: 60px; }

body.music-band #footer .footer-widget-container .menu .menu-item a {
    transition: color 0.25s var(--ubc-ease), padding-left 0.25s var(--ubc-ease);
}
body.music-band #footer .footer-widget-container .menu .menu-item a:hover {
    color: var(--ubc-accent-bright);
    padding-left: 4px;
}

body.music-band .copyright-container {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 22px 0;
}
body.music-band .copyright-container p { color: var(--ubc-text-mute); margin: 0; }

/* Social icons → tidy circular chips */
body.music-band .social-links li a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--ubc-line);
    color: var(--ubc-text-soft);
    transition: color 0.25s var(--ubc-ease),
                border-color 0.25s var(--ubc-ease),
                background-color 0.25s var(--ubc-ease),
                transform 0.25s var(--ubc-ease);
}
body.music-band .social-links li a:hover {
    color: #fff;
    background-color: var(--ubc-accent);
    border-color: var(--ubc-accent);
    transform: translateY(-2px);
}

/* Scroll-to-top button */
body.music-band .scroll-up {
    width: 44px;
    height: 44px;
    line-height: 44px;
    text-align: center;
    border-radius: 50%;
    background: var(--ubc-accent);
    color: #fff;
    box-shadow: 0 12px 28px -10px rgba(226, 31, 47, 0.7);
    transition: transform 0.3s var(--ubc-ease), background-color 0.3s var(--ubc-ease);
}
body.music-band .scroll-up:hover {
    background: var(--ubc-accent-bright);
    transform: translateY(-3px);
}

/* ---------------------------------------------------------------------
   11. Newsletter popup
   ------------------------------------------------------------------- */
body.music-band #newsletter-popup {
    background: var(--ubc-surface);
    border: 1px solid var(--ubc-line);
    border-radius: var(--ubc-radius);
    padding: 34px;
    box-shadow: var(--ubc-shadow-hover);
}
body.music-band #newsletter-popup .newsletter input.email {
    background: var(--ubc-surface-2);
    border: 1px solid var(--ubc-line);
    border-radius: 999px;
    color: var(--ubc-text);
    padding: 12px 20px;
}
body.music-band #newsletter-popup .newsletter input.email:focus {
    border-color: var(--ubc-accent);
    outline: none;
}

/* ---------------------------------------------------------------------
   12. Section padding rhythm (tame the very large legacy margins on mobile)
   ------------------------------------------------------------------- */
@media (max-width: 767px) {
    body.music-band .custom-section-padding.mb-130 { margin-bottom: 60px; }
    body.music-band .page-title {
        padding-top: 130px;
        padding-bottom: 80px;
        margin-bottom: 48px;
    }
}
