/* ============================================================
 * hero-slider.css — Anasayfa Slider Stilleri
 *
 * KAPSAM: Yalnızca index.php slider section
 * YÜKLEME: index.php → $extra_head_css ile sayfa bazlı
 *
 * Taşındı: include/slide-css.php inline <style> bloğundan
 * CSS-09: critical.css'ten hero/slider base stiller buraya taşındı.
 * ============================================================ */

/* --- Slider Section Base (CSS-09: critical.css'ten taşındı) --- */
.slider-section {
    background: var(--hero-dark);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 0;
    font-family: var(--font-heading);
    --header-offset: 110px;
}

.hero-inner {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 30px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
    padding-top: var(--header-offset, 110px);
    padding-bottom: 70px;
    box-sizing: border-box;
}

.hero-left { padding: 40px 0; }

.slider-section .hero-title,
.slider-section .main-title {
    font-size: 54px;
    font-weight: 800;
    color: #f1f5f9;
    line-height: 1.15;
    letter-spacing: -1.5px;
    margin: 0 0 20px 0;
    text-shadow: none;
    position: relative;
    z-index: 1;
    font-family: var(--font-heading);
    animation: heroFadeUp .8s ease .1s both;
}

.slider-section .hero-subtitle {
    font-size: 17px;
    color: #94a3b8;
    font-weight: 400;
    line-height: 1.75;
    margin: 0 0 32px 0;
    max-width: 500px;
    position: relative;
    z-index: 1;
    animation: heroFadeUp .8s ease .2s both;
}

.search-container {
    display: flex;
    align-items: stretch;
    max-width: 560px;
    width: 100%;
    position: relative;
    z-index: 10;
    background: rgba(17, 24, 39, 0.8);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 16px;
    padding: 6px;
    backdrop-filter: blur(20px);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    animation: heroFadeUp .8s ease .3s both;
}

.search-container input[type="text"] {
    flex: 1;
    padding: 16px 20px;
    font-size: 15px;
    border: none;
    border-radius: 12px;
    outline: none;
    background: transparent;
    color: #f1f5f9;
    font-weight: 500;
}

.search-container input[type="text"]::placeholder { color: #64748b; }

.search-container button {
    padding: 16px 28px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: var(--gradient-accent);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(99,102,241,.3);
    transition: all .3s ease;
}

.hero-right {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
}

.hero-gallery {
    position: relative;
    width: 100%;
    max-width: 540px;
    animation: heroFadeUp 1s ease .3s both;
}

.hero-stack {
    position: relative;
    height: 340px;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1200px;
}

.hero-stack-loading {
    color: #64748b;
    font-size: 14px;
}

.hero-stack-card {
    position: absolute;
    width: 420px;
    border-radius: 18px;
    overflow: hidden;
    text-decoration: none;
    display: block;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    transform-style: preserve-3d;
    will-change: transform, opacity, filter;
}

.hero-stack-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    aspect-ratio: 16 / 10.5;
    pointer-events: none;
}

/* Slider Media Queries (CSS-09: critical.css'ten taşındı) */
@media (max-width: 992px) {
    .slider-section { min-height: auto; --header-offset: 80px; }
    .hero-inner {
        grid-template-columns: 1fr;
        padding-top: var(--header-offset, 80px);
        padding-bottom: 80px;
    }
    .hero-left { text-align: center; padding: 0; }
    .slider-section .hero-title,
    .slider-section .main-title { font-size: 42px; }
    .hero-right { display: block; }
}

@media (max-width: 768px) {
    .hero-inner { padding: 90px 20px 80px; }
    .slider-section .hero-title,
    .slider-section .main-title { font-size: 34px; letter-spacing: -0.5px; }
    .slider-section .hero-subtitle { font-size: 16px; }
    .search-container { flex-direction: column; border-radius: 14px; padding: 8px; }
    .search-container input[type="text"] { padding: 14px 18px; border-radius: 10px; font-size: 14px; }
    .search-container button { padding: 14px 20px; border-radius: 10px; justify-content: center; }
}

@media (max-width: 480px) {
    .hero-inner { padding: 80px 15px 70px; }
    .slider-section .hero-title,
    .slider-section .main-title { font-size: 28px; line-height: 1.2; }
    .slider-section .hero-subtitle { font-size: 14px; line-height: 1.6; }
    .search-container input[type="text"] { padding: 12px 16px; font-size: 13px; }
    .search-container button { padding: 12px 18px; font-size: 12px; }
}

/* Dynamic Background Sync */
.hero-bg-sync { position: absolute; inset: 0; z-index: 0; }

.hero-bg-img {
    position: absolute;
    inset: -40px;
    background-size: cover;
    background-position: center;
    opacity: 0;
    filter: blur(50px) brightness(.25) saturate(1.4);
    transition: opacity 1.2s cubic-bezier(.4, 0, .2, 1);
    will-change: opacity;
}

.hero-bg-img.active { opacity: 1; }

/* Mesh Gradient & Orbs */
.slider-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 20% 40%, rgba(99,102,241,.12) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 20%, rgba(139,92,246,.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
}

.hero-orb-1 {
    width: 500px;
    height: 500px;
    background: rgba(99,102,241,.2);
    top: -15%;
    left: -10%;
    animation: heroOrbFloat 20s ease-in-out infinite;
}

.hero-orb-2 {
    width: 400px;
    height: 400px;
    background: rgba(139,92,246,.15);
    bottom: -10%;
    right: -5%;
    animation: heroOrbFloat 25s ease-in-out infinite reverse;
}

@keyframes heroOrbFloat {
    0%, 100% { transform: translate(0, 0); }
    33%       { transform: translate(30px, -20px); }
    66%       { transform: translate(-20px, 15px); }
}

/* Eyebrow Badge */
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    background: rgba(99,102,241,.1);
    border: 1px solid rgba(99,102,241,.2);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    color: #818cf8;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 28px;
    animation: heroFadeUp .8s ease both;
    backdrop-filter: blur(10px);
}

.hero-eyebrow-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: heroDotPulse 2s ease-in-out infinite;
}

@keyframes heroDotPulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34,197,94,.4); }
    50%       { opacity: .8; box-shadow: 0 0 0 6px rgba(34,197,94,0); }
}

/* Social Proof Bar */
.hero-social-proof-bar {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    animation: heroFadeUp .8s ease both;
}

.hspb-item { display: flex; flex-direction: column; gap: 2px; }
.hspb-num { font-size: 22px; font-weight: 800; color: #f1f5f9; line-height: 1; }
.hspb-stars { font-size: 14px; color: #f59e0b; line-height: 1; }
.hspb-label { font-size: 11px; color: #64748b; font-weight: 500; }
.hspb-divider { width: 1px; height: 36px; background: rgba(99,102,241,.15); }

/* Title Gradient */
.hero-title-gradient {
    background: linear-gradient(135deg, #818cf8, #c084fc, #f472b6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(25px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Search Container Focus */
.search-container:focus-within {
    border-color: rgba(99,102,241,.6);
    box-shadow: 0 0 40px rgba(99,102,241,.25), 0 0 0 4px rgba(99,102,241,.1);
}

.search-container button:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(99,102,241,.4);
}

.search-container button i { font-size: 15px; }

/* Hero CTA Row */
.hero-cta-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 28px;
    flex-wrap: wrap;
    animation: heroFadeUp .8s ease .35s both;
}

.hero-cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: rgba(99,102,241,.1);
    border: 1px solid rgba(99,102,241,.2);
    color: #c7d2fe;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all .25s;
}

.hero-cta-secondary:hover {
    background: rgba(99,102,241,.18);
    border-color: rgba(99,102,241,.4);
    color: #e0e7ff;
    transform: translateY(-1px);
}

/* Segment Banner */
.hero-segment-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 20px;
    animation: heroFadeUp .8s ease both;
    backdrop-filter: blur(10px);
}

.hero-segment-warm {
    background: rgba(99,102,241,.1);
    border: 1px solid rgba(99,102,241,.25);
    color: #a5b4fc;
}

.hero-segment-hot {
    background: rgba(239,68,68,.1);
    border: 1px solid rgba(239,68,68,.28);
    color: #fca5a5;
}

.hsb-icon { font-size: 16px; flex-shrink: 0; }
.hsb-text { flex: 1; min-width: 0; }
.hsb-text strong { color: #f1f5f9; }

.hsb-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    background: rgba(99,102,241,.2);
    border: 1px solid rgba(99,102,241,.35);
    color: #c7d2fe;
    transition: all .25s;
}

.hsb-cta:hover { background: rgba(99,102,241,.32); color: #e0e7ff; transform: translateY(-1px); }

.hsb-cta-hot {
    background: rgba(239,68,68,.18);
    border-color: rgba(239,68,68,.35);
    color: #fca5a5;
}

.hsb-cta-hot:hover { background: rgba(239,68,68,.3); color: #fecaca; }

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .hero-orb,
    .hero-eyebrow-dot { animation: none; }

    .hero-bg-img { transition: none; }

    .slider-section .hero-title,
    .slider-section .hero-subtitle,
    .search-container,
    .hero-gallery,
    .hero-eyebrow,
    .hero-cta-row,
    .hero-social-proof-bar,
    .hero-segment-banner {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

#heroDemoVideoBtn { cursor: pointer; }

#heroVideoModal {
  align-items: center;
  background: rgb(15 23 42 / 85%);
  display: none;
  inset: 0;
  justify-content: center;
  position: fixed;
  z-index: 10000;
}

#heroVideoModal.active,
#heroVideoModal.is-open { display: flex; }

#heroVideoBackdrop { inset: 0; position: absolute; }

#heroVideoContainer {
  max-width: 900px;
  position: relative;
  width: 90%;
  z-index: 1;
}

#heroVideoClose {
  background: var(--white, #fff);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  height: 36px;
  position: absolute;
  right: -12px;
  top: -12px;
  width: 36px;
}

#quickviewOverlay {
  align-items: center;
  background: rgb(15 23 42 / 88%);
  display: none;
  inset: 0;
  justify-content: center;
  position: fixed;
  z-index: 10000;
}

#quickviewOverlay.active { display: flex; }

#quickviewImg { max-height: 85vh; max-width: 90vw; }

#quickviewClose {
  background: transparent;
  border: 0;
  color: #fff;
  cursor: pointer;
  font-size: 28px;
  position: absolute;
  right: 24px;
  top: 24px;
}

#reviewsSlider { position: relative; }

#reviewsTrack { display: flex; }

#reviewsPrev,
#reviewsNext { cursor: pointer; }

#reviewsDots { display: flex; gap: 8px; justify-content: center; }

#reviewsPageInfo { font-size: 13px; }

#mobileCTA { z-index: 50; }