/**
 * KTV Creations — Hero Swiper Styles
 *
 * Path: assets/css/hero-swiper.css
 *
 * @package KTVCreations
 */

/* =============================================================================
   1. HERO SECTION WRAPPER
============================================================================= */

.ktv-hero-section {
    position: relative;
    width: 100%;
    max-width: 1920px;
    min-height: 600px;
    height: 100svh;          /* full viewport height */
    max-height: 900px;      /* cap at design max */
    margin: 0 auto;
    overflow: hidden;
    background: #1a1a2e;     /* fallback while media loads */
}

/*
 * BG-Overlay.png is optional — it is applied as an <img> or inline background
 * only when the file exists. The CSS ::before pseudo-element has been removed
 * because it sat above slide content (z-index 4 > content z-index 3) and
 * blocked all text/buttons when the image was missing. If you want the overlay
 * PNG, add it as a positioned <img aria-hidden="true"> inside the section
 * at z-index 5, after the quote overlay (z-index 10 will beat it).
 */


/* =============================================================================
   2. SWIPER FILLS THE SECTION
============================================================================= */

.ktv-hero-swiper,
.ktv-hero-swiper .swiper-wrapper,
.ktv-hero-swiper .swiper-slide {
    width: 100%;
    height: 100%;
}


/* =============================================================================
   3. SLIDE CONTAINER
============================================================================= */

.ktv-hero-slide {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    overflow: hidden;
}


/* =============================================================================
   4. BACKGROUND LAYERS
   z-index 1 — behind everything
============================================================================= */

.ktv-slide-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.ktv-slide-bg--image {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.ktv-slide-bg--video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    pointer-events: none;
}

.ktv-slide-bg--gradient {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}


/* =============================================================================
   5. OVERLAY
   z-index 2 — above background, below content
============================================================================= */

.ktv-slide-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}


/* =============================================================================
   6. SLIDE CONTENT
   z-index 3 — above overlay, fully visible
============================================================================= */

.ktv-slide-content {
    position: relative;
    z-index: 3;
    max-width: 1200px;
    width: 100%;
    padding: 0 40px;
    color: #fff;
    text-align: var(--ktv-hero-text-align, center);
}

.ktv-slide-title {
    font-size: var(--ktv-hero-title-size, 56px);
    font-weight: var(--ktv-hero-font-weight, 700);
    font-family: var(--font-heading, 'Cinzel', serif);
    line-height: 1.15;
    margin: 0 0 20px;
    color: #fff;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
}

.ktv-slide-subtitle {
    font-size: clamp(1rem, 2vw, 1.35rem);
    font-weight: 400;
    margin: 0 0 36px;
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
    line-height: 1.6;
}

/* Slide-in animation */
@keyframes ktv-slide-in {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}
.swiper-slide-active.ktv-animate .ktv-slide-content {
    animation: ktv-slide-in 0.75s ease forwards;
}


/* =============================================================================
   7. SLIDE BUTTON
   z-index 3 — same layer as content
============================================================================= */

.ktv-slide-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 38px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease, background-color 0.2s ease;
    font-family: var(--font-heading, 'Cinzel', serif);
}

.ktv-slide-btn--solid {
    background-color: var(--slide-btn-bg, #ffd700);
    color: var(--slide-btn-color, #111);
    border: 2px solid transparent;
}
.ktv-slide-btn--solid:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
    color: var(--slide-btn-color, #111);
    text-decoration: none;
}

.ktv-slide-btn--outline {
    background: transparent;
    color: var(--slide-btn-color, #fff);
    border: 2px solid var(--slide-btn-bg, #fff);
}
.ktv-slide-btn--outline:hover {
    background: var(--slide-btn-bg, #fff);
    color: #111;
    text-decoration: none;
}


/* =============================================================================
   8. QUOTE OVERLAY
   z-index 10 — above slide content and any optional overlay PNG
============================================================================= */

.ktv-hero-quote-overlay {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    min-height: 120px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    pointer-events: none;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
}

.ktv-hero-quote-text {
    font-family: var(--font-heading, 'Cinzel', serif);
    line-height: 1.3;
    letter-spacing: 0.04em;
    color: #ffffff;
    text-transform: uppercase;
    text-align: center;
    margin: 0;
    padding: 0 20px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.6);
}

.ktv-hero-quote-author {
    font-family: var(--font-heading, 'Cinzel', serif);
    font-size: clamp(13px, 1.4vw, 22px);
    color: #d4c5c5;
    text-align: center;
    margin: 12px 0 0;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.9;
}


/* =============================================================================
   9. POLYGON / DIAMOND CTA BUTTON
   z-index 15
============================================================================= */

.ktv-hero-polygon-btn {
    position: absolute;
    left: 50%;
    transform: matrix(-1, 0, 0, -1, 0, 0);
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
    z-index: 15;
    transition: opacity 0.3s ease, border-color 0.3s ease;
}

.ktv-hero-polygon-btn--css-shape {
    clip-path: polygon(15% 0%, 85% 0%, 100% 50%, 85% 100%, 15% 100%, 0% 50%);
}

.ktv-hero-polygon-btn__label {
    transform: matrix(-1, 0, 0, -1, 0, 0);
    font-family: var(--font-heading, 'Cinzel', serif);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    line-height: 1.3;
    padding: 0 16px;
    pointer-events: none;
}

.ktv-hero-polygon-btn:hover {
    opacity: 0.85;
}


/* =============================================================================
   10. SWIPER NAVIGATION & PAGINATION
============================================================================= */

/* Navigation arrows */
.ktv-hero-swiper .swiper-button-prev,
.ktv-hero-swiper .swiper-button-next {
    color: #fff;
    background: rgba(0, 0, 0, 0.4);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    transition: background 0.25s ease, transform 0.2s ease;
    top: 50%;
    transform: translateY(-50%);
}

.ktv-hero-swiper .swiper-button-prev {
    left: 20px;
}
.ktv-hero-swiper .swiper-button-next {
    right: 20px;
}

.ktv-hero-swiper .swiper-button-prev:hover,
.ktv-hero-swiper .swiper-button-next:hover {
    background: rgba(0, 0, 0, 0.7);
}

.ktv-hero-swiper .swiper-button-prev::after,
.ktv-hero-swiper .swiper-button-next::after {
    font-size: 18px;
    font-weight: 700;
}

/* Pagination dots */
.ktv-hero-swiper .swiper-pagination {
    bottom: 24px;
    z-index: 10;
}

.ktv-hero-swiper .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.6);
    opacity: 1;
    transition: background 0.2s ease, transform 0.2s ease;
}

.ktv-hero-swiper .swiper-pagination-bullet-active {
    background: var(--color-accent-2, #ffd700);
    transform: scale(1.3);
}


/* =============================================================================
   11. FALLBACK / EMPTY STATE
============================================================================= */

.ktv-hero-empty,
.ktv-hero-fallback {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    background-size: cover;
    background-position: center;
    background-color: #1a1a2e;
    overflow: hidden;
}

.ktv-hero-fallback__content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: 60px 24px;
    max-width: 900px;
}

.ktv-hero-admin-notice {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 193, 7, 0.96);
    color: #333;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 0.9rem;
    z-index: 10;
    white-space: nowrap;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}


/* =============================================================================
   12. RESPONSIVE
============================================================================= */

@media (max-width: 1200px) {
    .ktv-hero-section {
        max-height: 800px;
    }
    .ktv-slide-content {
        padding: 0 32px;
    }
}


@media (min-width: 1025px) and (max-width: 1200px) {
    .ktv-hero-polygon-btn {
    top: 580px !important;
    left: 36% !important;
    width: 286px;
    height: 170px;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .ktv-hero-polygon-btn {
    top: 612px !important;
    left: 34% !important;
    width: 286px;
    height: 170px;
    }
    .ktv-hero-swiper .swiper-pagination {
    bottom: 76px !important;
    z-index: 10;
    }
}


@media (max-width: 768px) {
    .ktv-hero-section {
        height: 100 vh;
        min-height: 500px;
        max-height: none;   /* full viewport on mobile */
        margin: 0;
    }

    .ktv-hero-quote-overlay {
        top: 55% !important;
        width: 94%;
    }
    .ktv-hero-quote-text {
        font-size: clamp(20px, 5vw, 36px) !important;
        line-height: 1.35;
    }
    .ktv-hero-quote-author {
        font-size: 13px;
        margin-top: 8px;
    }

    .ktv-hero-polygon-btn {
        top: 75% !important;
        width: 200px !important;
        height: 120px !important;
        margin-left: -100px !important;
        left: 36% !important;
    }
    .ktv-hero-polygon-btn__label {
        font-size: 13px !important;
    }

    /* Hide arrows on mobile — swipe gestures handle navigation */
    .ktv-hero-swiper .swiper-button-prev,
    .ktv-hero-swiper .swiper-button-next {
        display: none;
    }

    .ktv-slide-title {
        font-size: clamp(1.6rem, 7vw, 2.4rem) !important;
    }
    .ktv-slide-content {
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .ktv-slide-btn {
        padding: 12px 28px;
        font-size: 0.9rem;
    }
    .ktv-hero-admin-notice {
        white-space: normal;
        text-align: center;
        width: 90%;
        bottom: 16px;
    }
}

@media (max-width: 380px) {
    .ktv-hero-polygon-btn {
        top: 75% !important;
        width: 200px !important;
        height: 120px !important;
        margin-left: -100px !important;
        left: 20% !important;
    }
}


/* =============================================================================
   13. UTILITIES
============================================================================= */

.text-left   { text-align: left; }
.text-center { text-align: center; }
.text-right  { text-align: right; }