/* ==========================================================================
   SIDESHOW CLONE STYLES (Overrides and Layouts)
   ========================================================================== */

/* Globals & Utilities */
.sideshow-main {
    background: #f4f4f4;
    font-family: Arial, sans-serif;
}
.sideshow-btn {
    display: inline-block;
    padding: 10px 25px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 3px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}
.sideshow-btn--red {
    background: #e62429;
    color: #fff;
    padding: 12px 30px;
}
.sideshow-btn--red:hover {
    background: #c21d22;
}
.sideshow-btn--dark {
    background: #222;
    color: #fff;
    font-size: 11px;
    padding: 8px 15px;
}
.sideshow-btn--dark:hover {
    background: #444;
}
.sideshow-btn--red-outline {
    background: transparent;
    color: #e62429;
    border: 2px solid #e62429;
}
.sideshow-btn--red-outline:hover {
    background: #e62429;
    color: #fff;
}
.sideshow-link {
    color: #e62429;
    text-decoration: none;
}
.sideshow-link:hover {
    text-decoration: underline;
}

/* Sections */
.sideshow-section {
    padding: 60px 0;
    background: #fff;
}
.sideshow-section__title {
    font-size: 24px;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 30px;
    letter-spacing: -0.5px;
    text-align: center;
    color: #111;
}
.sideshow-section__footer {
    margin-top: 30px;
    text-align: center;
}

/* 1. Hero Banner */
.sideshow-hero {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.sideshow-hero__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
}
.sideshow-hero__container {
    position: relative;
    z-index: 10;
}
.sideshow-hero__content {
    max-width: 800px;
    margin: 0 auto;
}
.sideshow-hero__title {
    font-size: 48px;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 20px;
    line-height: 1.1;
    letter-spacing: -1px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    color: #fff;
}
.sideshow-hero__desc {
    font-size: 16px;
    margin-bottom: 30px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
    color: #eee;
}

/* 2. Thumbnail Strip */
.sideshow-thumbnail-strip {
    background: #e8e6df;
    padding: 20px 0;
    overflow: hidden;
    border-bottom: 2px solid #ddd;
}
.sideshow-thumbnail-strip__inner {
    display: flex;
    gap: 12px;
    justify-content: flex-start;
}
.sideshow-thumbnail-card {
    display: inline-block;
    flex: 0 0 auto;
    width: 140px;
    height: 210px;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    background: #222;
    text-decoration: none;
}
.sideshow-thumbnail-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.sideshow-thumbnail-card__play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(2px);
    color: #fff;
}
.sideshow-thumbnail-card__text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px 5px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    text-align: center;
}
.sideshow-thumbnail-card__text span {
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1.1;
    display: block;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

/* 3. Collect It All */
.sideshow-collect__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}
.sideshow-card-tall {
    position: relative;
    height: 400px;
    background: #111;
    border-radius: 4px;
    overflow: hidden;
}
.sideshow-card-tall__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}
.sideshow-card-tall__content {
    position: absolute;
    bottom: 20px;
    left: 20px;
    text-align: left;
}
.sideshow-card-tall__title {
    color: #fff;
    font-size: 24px;
    font-weight: 900;
    text-transform: uppercase;
    margin: 0 0 10px 0;
    line-height: 1.1;
}

/* 4. New Releases */
.sideshow-new-releases__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}
.sideshow-card-wide {
    position: relative;
    height: 350px;
    background: #111;
    border-radius: 4px;
    overflow: hidden;
}
.sideshow-card-wide__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
}
.sideshow-card-wide__content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: rgba(0,0,0,0.8);
    text-align: center;
}
.sideshow-card-wide__title {
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    margin: 0 0 5px 0;
}
.sideshow-card-wide__desc {
    color: #ccc;
    font-size: 10px;
    margin: 0;
}

/* 5. Recommended For You */
.sideshow-recommended__slider {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 20px;
}
.sideshow-product-card {
    flex: 0 0 200px;
    text-align: left;
}
.sideshow-product-card__img-wrap {
    background: #f9f9f9;
    height: 260px;
    margin-bottom: 15px;
    border-radius: 4px;
    overflow: hidden;
}
.sideshow-product-card__img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.sideshow-product-card__category {
    font-size: 11px;
    color: #666;
    margin: 0 0 5px 0;
    text-transform: uppercase;
}
.sideshow-product-card__title {
    font-size: 13px;
    font-weight: bold;
    margin: 0 0 10px 0;
    color: #111;
}
.sideshow-product-card__price {
    font-size: 14px;
    font-weight: bold;
    color: #111;
}

/* 6. On A Budget */
.sideshow-budget {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    background: transparent;
}
.sideshow-budget__bg {
    position: absolute;
    top: 0;
    left: -10%;
    right: -10%;
    bottom: 0;
    background: #0b141d;
    transform: rotate(-3deg);
    z-index: -1;
    transform-origin: top left;
}
.sideshow-budget__container {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.sideshow-budget__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    width: 100%;
    max-width: 1000px;
    margin-bottom: 30px;
    color: #fff;
}
.sideshow-budget__title {
    font-size: 32px;
    font-weight: 900;
    text-transform: uppercase;
    margin: 0;
    letter-spacing: -1px;
    width: 200px;
    line-height: 1;
    color: #fff;
}
.sideshow-budget__desc {
    font-size: 12px;
    max-width: 300px;
    margin: 0;
    color: #ccc;
}
.sideshow-budget__link {
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: none;
    border-bottom: 2px solid #e62429;
    padding-bottom: 2px;
}
.sideshow-budget__grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1.5fr;
    gap: 10px;
    width: 100%;
    max-width: 1000px;
}
.sideshow-budget__col-1 {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.sideshow-budget-card {
    background-size: cover;
    background-position: center;
    border-radius: 4px;
    position: relative;
    padding: 20px;
    display: flex;
    align-items: flex-end;
}
.sideshow-budget__col-1 .sideshow-budget-card {
    height: 245px;
}
.sideshow-budget__col-2, .sideshow-budget__col-3 {
    height: 500px;
}
.sideshow-budget-card__title {
    color: #fff;
    font-size: 18px;
    font-weight: 900;
    text-transform: uppercase;
    margin: 0;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}
.sideshow-budget__col-2 .sideshow-budget-card__title,
.sideshow-budget__col-3 .sideshow-budget-card__title {
    font-size: 22px;
}

/* 7. Why Shop at Sideshow */
.sideshow-why__container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}
.sideshow-why__grid {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #ddd;
    padding-bottom: 30px;
    margin-bottom: 30px;
}
.sideshow-why__item {
    flex: 1;
    text-align: center;
}
.sideshow-why__item p {
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    margin-top: 15px;
    color: #111;
}

/* 8. Sideshow Community */
.sideshow-community__grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}
.sideshow-community__img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 2px;
}

/* 9. Build Your Collection Band */
.sideshow-build-band {
    background: #e8e6df;
    padding: 40px 0;
    text-align: center;
    margin-top: 40px;
}
.sideshow-build-band__title {
    font-size: 20px;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: #111;
}
.sideshow-build-band__links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    max-width: 600px;
    margin: 0 auto;
}
.sideshow-pill {
    background: #111;
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 20px;
    text-decoration: none;
    transition: background 0.3s;
}
.sideshow-pill:hover {
    background: #444;
}

/* 10. Newsletter */
.sideshow-newsletter {
    background: #111b24;
    padding: 60px 0;
    position: relative;
    overflow: hidden;
    display: flex;
}
.sideshow-newsletter__image {
    flex: 1;
    background-position: right center;
    background-size: cover;
    position: relative;
}
.sideshow-newsletter__gradient {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 200px;
    background: linear-gradient(to right, transparent, #111b24);
}
.sideshow-newsletter__content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}
.sideshow-newsletter__inner {
    max-width: 400px;
    text-align: center;
    color: #fff;
}
.sideshow-newsletter__title {
    font-size: 24px;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
    color: #fff;
}
.sideshow-newsletter__desc {
    font-size: 12px;
    color: #ccc;
    margin-bottom: 20px;
}
.sideshow-newsletter__form {
    display: flex;
    border-bottom: 2px solid #555;
    padding-bottom: 5px;
    margin-bottom: 20px;
}
.sideshow-newsletter__input {
    background: transparent;
    border: none;
    color: #fff;
    flex: 1;
    outline: none;
    font-size: 14px;
}
.sideshow-newsletter__submit {
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
}
.sideshow-newsletter__terms {
    font-size: 10px;
    color: #999;
}
.sideshow-newsletter__terms a {
    color: #e62429;
    text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .sideshow-collect__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .sideshow-new-releases__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .sideshow-community__grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .sideshow-budget__grid {
        grid-template-columns: 1fr;
    }
    .sideshow-budget__col-2, .sideshow-budget__col-3 {
        height: 300px;
    }
    .sideshow-budget__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}
@media (max-width: 768px) {
    .sideshow-hero__title {
        font-size: 32px;
    }
    .sideshow-new-releases__grid {
        grid-template-columns: 1fr;
    }
    .sideshow-why__grid {
        flex-direction: column;
        gap: 30px;
    }
    .sideshow-newsletter {
        flex-direction: column;
    }
    .sideshow-newsletter__image {
        min-height: 200px;
    }
}

/* Video Modal Overlay */
.sideshow-video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}
.sideshow-video-modal.is-active {
    display: flex;
}
.sideshow-video-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
}
.sideshow-video-modal__content {
    position: relative;
    width: 400px;
    height: 700px;
    max-width: 95vw;
    max-height: 90vh;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
}
.sideshow-video-modal__player {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.sideshow-video-modal__close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
.sideshow-video-modal__progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255,255,255,0.2);
    z-index: 10;
}
.sideshow-video-modal__progress-bar {
    height: 100%;
    background: #fff;
    width: 0%;
}
.sideshow-video-modal__header {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
}
.sideshow-video-modal__user {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
.sideshow-video-modal__user img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
}
.sideshow-video-modal__controls {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 10;
}
.sideshow-video-modal__btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0,0,0,0.5);
    border: none;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(4px);
}
.sideshow-video-modal__btn:hover {
    background: rgba(0,0,0,0.8);
}
.sideshow-video-modal__cta {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: #2a9d8f;
    color: #fff;
    padding: 12px 30px;
    border-radius: 24px;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: transform 0.2s;
}
.sideshow-video-modal__cta:hover {
    transform: translateX(-50%) scale(1.05);
}


/* ==========================================================================
   PRIMARY NAV — BASE
   ========================================================================== */
.primary-nav {
    display: flex;
    align-items: center;
}
.primary-nav__menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
    align-items: center;
    height: 100%;
}
.primary-nav__item {
    position: static; /* mega-menu uses fixed positioning via JS */
    height: 100%;
    display: flex;
    align-items: center;
}
.primary-nav__link {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 14px;
    color: #111;
    font-weight: 800;
    font-size: 13px;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 0.3px;
    position: relative;
    white-space: nowrap;
    transition: color 0.2s, background 0.2s;
}

/* ── ALL nav items: dark tab on hover (Sideshow style) ─────────────────── */

/* Hide the ::after underline bar by default — not needed, we use bg highlight */
.primary-nav__link::after {
    display: none;
}

/* Dark background tab for EVERY nav item on hover */
.primary-nav__item:hover > .primary-nav__link,
.primary-nav__item.is-active > .primary-nav__link {
    background: #111;
    color: #fff;
}

/* ── Floating label tooltip below ALL nav buttons ───────────────────────
   Uses CSS ::before + data-label attribute (set by JS).
   Shows the nav item name in a small dark pill just under the header bar.
   ──────────────────────────────────────────────────────────────────────── */
.primary-nav__item {
    position: relative;
}

.primary-nav__item > .primary-nav__link::before {
    content: attr(data-label);
    position: absolute;
    bottom: -26px;
    left: 50%;
    transform: translateX(-50%) translateY(-4px);
    background: #111;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: none;
    white-space: nowrap;
    padding: 4px 10px;
    border-radius: 3px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.18s ease, transform 0.18s ease;
    z-index: 1200;
}

.primary-nav__item:hover > .primary-nav__link::before,
.primary-nav__item.is-active > .primary-nav__link::before {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   MEGA MENU PANEL  (Sideshow-style full-width dropdown)
   ========================================================================== */
.mega-menu {
    position: fixed;
    left: 0;
    right: 0;
    top: auto; /* set by JS after measuring header height */
    background: #fff;
    border-top: 3px solid #111;
    border-bottom: 1px solid #e0e0e0;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
    pointer-events: none;
}
.primary-nav__item:hover .mega-menu,
.primary-nav__item.is-active .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.mega-menu__inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 20px 30px 22px;
}

/* Category heading */
.mega-menu__label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #aaa;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.mega-menu__label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #eee;
}

/* ── Sideshow-style card grid — single row, equal-width cards ─────────── */
.mega-menu__grid {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.mega-menu__grid::-webkit-scrollbar {
    display: none;
}

/* Single card */
.mega-menu__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    flex: 1 1 0;
    min-width: 130px;
    max-width: 210px;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: border-color 0.2s, box-shadow 0.25s, transform 0.25s;
    background: #f5f5f5;
    position: relative;
}
.mega-menu__card:hover {
    border-color: #111;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
    z-index: 2;
}

/* Portrait image — tall, like collectible card artwork */
.mega-menu__card-img-wrap {
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #ddd;
    position: relative;
}
.mega-menu__card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}
.mega-menu__card:hover .mega-menu__card-img {
    transform: scale(1.07);
}

/* Label at bottom of card */
.mega-menu__card-label {
    width: 100%;
    padding: 9px 10px 8px;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #111;
    text-align: center;
    background: #fff;
    border-top: 1px solid #ebebeb;
    line-height: 1.2;
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* View All link */
.mega-menu__view-all {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 700;
    color: #e62429;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #e62429;
    padding-bottom: 2px;
    transition: color 0.2s, border-color 0.2s;
}
.mega-menu__view-all::after {
    content: '\2192';
    font-size: 14px;
}
.mega-menu__view-all:hover {
    color: #c21d22;
    border-color: #c21d22;
}

/* Count badge */
.mega-menu__count {
    display: inline-block;
    background: #f0f0f0;
    color: #666;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 10px;
    margin-left: 8px;
    vertical-align: middle;
}

/* Empty state */
.mega-menu__empty {
    color: #999;
    font-size: 13px;
    padding: 20px 0;
    margin: 0;
}

/* CSS-only top fallback */
.site-header {
    position: relative;
    z-index: 1001;
}
.mega-menu {
    top: 100%;
}
.mega-menu-backdrop {
    top: 0;
}

.mega-menu-backdrop {
    position: fixed;
    inset: 0;
    top: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.22s ease, visibility 0.22s;
    pointer-events: none;
}
.mega-menu-backdrop.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
    .primary-nav {
        display: none; /* hidden on mobile — handled by mobile panel */
    }
    .mega-menu-backdrop {
        display: none;
    }
}
@media (min-width: 1025px) {
    .mobile-menu-toggle {
        display: none;
    }
}
