/* Scroll Expand Hero Custom Styles */

@font-face {
  font-family: 'Chillax';
  src: url('../css/fonts/Chillax-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
  font-style: normal;
}
@font-face {
  font-family: 'Chillax';
  src: url('../css/fonts/Chillax-Bold.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
  font-style: normal;
}

/* Scroll Hero Section */
#scrollHeroSection {
    scroll-behavior: smooth;
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: clip;
    position: relative;
    z-index: 50; /* Above zp-section (40) */
}

/* Main container */
#primary {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: clip;
}

/* Body ve HTML reset */
body, html {
    margin: 0;
    padding: 0;
    overflow-x: clip;
    width: 100%;
    height: 100%;
}

/* Desktop - section has padding, heroBackground fills inside */
#heroBackground {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    overflow: hidden;
}

#heroBgImg {
    border-radius: 16px;
}

/* Mobile - Remove all margins and padding */
@media (max-width: 768px) {
    body, html {
        margin: 0 !important;
        padding: 0 !important;
        width: 100%;
        height: 100%;
    }
    
    #primary {
        margin: 0 !important;
        padding: 0 !important;
        width: 100%;
    }
    
    #scrollHeroSection {
        margin: 0 !important;
        padding: 0 !important;
        width: 100%;
    }
    
    #scrollHeroSection > section {
        margin: 0 !important;
        padding: 0 !important;
        width: 100%;
        border: none !important;
        border-radius: 0 !important;
        height: 100dvh !important;
    }
    
    #heroBackground {
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        height: 100% !important;
        border-radius: 0 !important;
        border: none !important;
        box-shadow: none !important;
    }
    
    #heroBgImg {
        border-radius: 0 !important;
    }
}

/* Media Container - No transitions to match original */
#mediaContainer {
    transition: none;
}

/* Text Elements - No transitions to match original */
#dateText,
#scrollText,
#firstWord,
#restTitle {
    transition: none;
}

/* Mobile font optimizations */
@media (max-width: 768px) {
    #firstWord,
    #restTitle {
        font-size: clamp(2rem, 10vw, 3rem) !important;
        letter-spacing: 0 !important;
    }
    
    #dateText {
        font-size: 0.9rem !important;
        letter-spacing: 2px !important;
    }
    
    #scrollText {
        font-size: 0.65rem !important;
        letter-spacing: 3px !important;
    }
}

/* Background - No transitions to match original */
#heroBackground {
    transition: none;
}

#videoOverlay {
    transition: none;
}

/* Content Section - Only opacity transition */
#contentSection {
    transition: opacity 0.7s ease-in-out;
}

/* Mobile Responsive Adjustments - Exact breakpoints from original */
@media (max-width: 768px) {
    /* mediaContainer boyutları artık scroll-hero.js tarafından yönetiliyor */
    
    #firstWord,
    #restTitle {
        font-size: clamp(1.8rem, 6vw, 2.5rem) !important;
        line-height: 1.15;
    }
    
    #dateText {
        font-size: clamp(0.8rem, 3vw, 1rem) !important;
    }
    
    #scrollText {
        font-size: clamp(0.6rem, 2.5vw, 0.8rem) !important;
    }

    /* Hero section mobilde daha stabil */
    #heroSection {
        padding: 10px !important;
    }

    /* Star button mobilde daha küçük */
    .star-btn {
        font-size: 0.75rem !important;
        padding: 0.5rem 1.25rem !important;
    }
}

/* Küçük ekranlar için ek optimizasyon */
@media (max-width: 480px) {
    /* mediaContainer boyutları artık scroll-hero.js tarafından yönetiliyor */

    #firstWord,
    #restTitle {
        font-size: 1.6rem !important;
    }

    .hero-star-btn-wrapper {
        bottom: 20px !important;
    }
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Prevent text selection during scroll - Match original behavior */
#scrollHeroSection * {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Video styling - Match original */
#heroVideo {
    object-fit: cover;
    object-position: center;
}

/* Focus states for accessibility */
#scrollHeroSection:focus-within {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    #scrollHeroSection {
        border: 2px solid #000;
    }
    
    #videoOverlay {
        background-color: rgba(0, 0, 0, 0.8) !important;
    }
}

/* Reduced motion support - Match original behavior */
@media (prefers-reduced-motion: reduce) {
    #scrollHeroSection,
    #mediaContainer,
    #dateText,
    #scrollText,
    #firstWord,
    #restTitle,
    #heroBackground,
    #videoOverlay {
        transition: none !important;
    }
    
    #contentSection {
        transition: opacity 0.7s ease-in-out !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Ensure proper z-index layering */
#heroBackground {
    z-index: 0;
}

#mediaContainer {
    z-index: 10;
}

#titleSection {
    z-index: 20;
}

#contentSection {
    z-index: 30;
}


/* Mix blend mode support - Match original */
.mix-blend-difference {
    mix-blend-mode: difference;
}

.mix-blend-normal {
    mix-blend-mode: normal;
}

/* Container styling - Match original Tailwind classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container {
        padding: 0 2rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 4rem;
    }
}

/* ============================================================
   GOLD BUTTON - Hero CTA
   ============================================================ */

/* Buton wrapper */
.star-btn {
    --sb-gold: #D4AF37;
    --sb-gold-light: #FFD700;
    --sb-gold-dark: #B8860B;
    --sb-border-radius: 9999px;
    --sb-duration: 3s;

    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.75rem 2rem;
    border-radius: var(--sb-border-radius);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    overflow: hidden;
    isolation: isolate;
    text-decoration: none;
    color: #ffffff;
    background: rgba(212, 175, 55, 0.15);
    border: 1px solid rgba(212, 175, 55, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    z-index: 100;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.star-btn:hover {
    background: rgba(212, 175, 55, 0.25);
    border-color: var(--sb-gold);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.2);
}

.star-btn:active {
    transform: translateY(0) scale(0.98);
}

/* Layer 1: Shine effect */
.star-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        to right,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transform: skewX(-25deg);
    transition: none;
}

.star-btn:hover::before {
    animation: gold-shine 1.5s infinite;
}

@keyframes gold-shine {
    0% { left: -100%; }
    100% { left: 200%; }
}

/* Layer 4: Content text */
.star-btn__label {
    position: relative;
    z-index: 10;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Oku (ok işareti) */
.star-btn__arrow {
    display: inline-block;
    transition: transform 0.3s ease;
    font-size: 1.1rem;
}

.star-btn:hover .star-btn__arrow {
    transform: translateX(5px);
}


/* Hero içindeki buton konumlandırması */
.hero-star-btn-wrapper {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

/* Scroll ilerledikçe fade-out (JS ile de yapılabilir, CSS transition ile başlar) */
.hero-star-btn-wrapper .star-btn {
    transition:
        opacity 0.4s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

/* Mobile */
@media (max-width: 768px) {
    .hero-star-btn-wrapper {
        bottom: 30px;
    }
    .star-btn {
        font-size: 0.8rem;
        padding: 0.55rem 1.4rem;
        --sb-light-size: 80px;
    }
}


