/* ═══════════════════════════════════════════════════════════════
   YÖN V1 — Hero 10 Tasarım Şablonu
   Admin: menu-hero-settings.php → yon_hero_layout
   ═══════════════════════════════════════════════════════════════ */

/* Ortak: fade/slide modları */
body.yon-v1-theme .yon-nova-hero-block[data-hero-mode="slide"] .hero-panels {
    overflow: hidden !important;
    display: block !important;
    position: relative !important;
    scroll-snap-type: none !important;
}

body.yon-v1-theme .yon-nova-hero-block[data-hero-mode="slide"] .hero-panel {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    min-width: 100% !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: scale(1.02) !important;
    transition: opacity 0.55s ease, transform 0.55s ease, visibility 0.55s !important;
    pointer-events: none !important;
}

body.yon-v1-theme .yon-nova-hero-block[data-hero-mode="slide"] .hero-panel.hero-panel-active {
    opacity: 1 !important;
    visibility: visible !important;
    transform: scale(1) !important;
    pointer-events: auto !important;
    z-index: 2 !important;
}

/* 1 — Sinemaskop (varsayılan, mevcut CSS) */
body.yon-v1-theme .hero-layout-cinema .hero-panels-wrap {
    border-radius: 0 !important;
}

/* 2 — Fade Slider */
body.yon-v1-theme .hero-layout-fade .hero-panels-wrap {
    border-radius: var(--e-radius-lg, 16px) !important;
    margin: 0 var(--e-pad, 18px) !important;
    overflow: hidden !important;
}

body.yon-v1-theme .hero-layout-fade .hero-panel-inner {
    border-radius: var(--e-radius-lg, 16px) !important;
}

body.yon-v1-theme .hero-layout-fade .hero-title-stack {
    border-radius: 12px !important;
}

/* 3 — Kart Yığını */
body.yon-v1-theme .hero-layout-stack .hero-panels-wrap {
    overflow: visible !important;
    padding: 12px 24px 28px !important;
}

body.yon-v1-theme .hero-layout-stack .hero-panels {
    overflow: visible !important;
    position: relative !important;
    height: var(--bz-hero-h) !important;
}

body.yon-v1-theme .hero-layout-stack .hero-panel {
    position: absolute !important;
    top: 0 !important;
    left: 50% !important;
    width: 78% !important;
    min-width: 0 !important;
    transform: translateX(-50%) rotate(var(--panel-rotate, 0deg)) !important;
    transition: transform 0.4s ease, z-index 0s !important;
    box-shadow: 0 12px 40px rgba(11, 18, 32, 0.22) !important;
}

body.yon-v1-theme .hero-layout-stack .hero-panel:nth-child(1) { z-index: 5; transform: translateX(-50%) rotate(-4deg) !important; }
body.yon-v1-theme .hero-layout-stack .hero-panel:nth-child(2) { z-index: 4; transform: translateX(-42%) rotate(3deg) scale(0.96) !important; }
body.yon-v1-theme .hero-layout-stack .hero-panel:nth-child(3) { z-index: 3; transform: translateX(-58%) rotate(-2deg) scale(0.92) !important; }
body.yon-v1-theme .hero-layout-stack .hero-panel:nth-child(n+4) { z-index: 2; opacity: 0.85; transform: translateX(-50%) scale(0.88) !important; }

body.yon-v1-theme .hero-layout-stack .hero-panel.hero-panel-active {
    z-index: 10 !important;
    transform: translateX(-50%) rotate(0deg) scale(1) !important;
}

body.yon-v1-theme .hero-layout-stack .hero-panel-inner {
    border-radius: 18px !important;
    overflow: hidden !important;
}

/* 4 — Bölünmüş */
body.yon-v1-theme .hero-layout-split .hero-panels-wrap {
    border-radius: var(--e-radius-lg, 16px) !important;
    margin: 0 var(--e-pad, 18px) !important;
}

body.yon-v1-theme .hero-layout-split .hero-panel-inner {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    min-height: var(--bz-hero-h) !important;
}

body.yon-v1-theme .hero-layout-split .hero-panel-img {
    position: relative !important;
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 200px !important;
    object-fit: cover !important;
}

body.yon-v1-theme .hero-layout-split .hero-panel-shade {
    display: none !important;
}

body.yon-v1-theme .hero-layout-split .hero-panel-text {
    position: relative !important;
    grid-column: 2 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 20px !important;
    background: var(--e-surface-2, #f4f7fb) !important;
}

body.yon-v1-theme .hero-layout-split .hero-title-stack {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
}

body.yon-v1-theme .hero-layout-split .hero-t-norm,
body.yon-v1-theme .hero-layout-split .hero-t-em {
    color: var(--e-text, #0b1220) !important;
    text-shadow: none !important;
}

body.yon-v1-theme .hero-layout-split .hero-t-em {
    color: var(--e-accent, #0d9488) !important;
}

@media (max-width: 480px) {
    body.yon-v1-theme .hero-layout-split .hero-panel-inner {
        grid-template-columns: 1fr !important;
    }
    body.yon-v1-theme .hero-layout-split .hero-panel-text {
        grid-column: 1 !important;
        grid-row: 2 !important;
    }
}

/* 5 — Mozaik Grid */
body.yon-v1-theme .hero-layout-mosaic .hero-panels-wrap {
    height: auto !important;
    padding: var(--e-pad, 18px) !important;
    background: var(--e-surface, #fff) !important;
}

body.yon-v1-theme .hero-layout-mosaic .hero-panels {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
    overflow: visible !important;
    height: auto !important;
}

body.yon-v1-theme .hero-layout-mosaic .hero-panel {
    min-width: 0 !important;
    width: 100% !important;
    aspect-ratio: 4 / 3 !important;
}

body.yon-v1-theme .hero-layout-mosaic .hero-panel-inner {
    border-radius: 14px !important;
    min-height: 140px !important;
}

body.yon-v1-theme .hero-layout-mosaic .hero-nav-btn,
body.yon-v1-theme .hero-layout-mosaic .hero-dots {
    display: none !important;
}

body.yon-v1-theme .hero-layout-mosaic .hero-title-stack {
    padding: 8px 10px !important;
    max-width: 100% !important;
}

body.yon-v1-theme .hero-layout-mosaic .hero-t-norm { font-size: 0.55rem !important; }
body.yon-v1-theme .hero-layout-mosaic .hero-t-em { font-size: 0.72rem !important; }

/* 6 — Dalga */
body.yon-v1-theme .hero-layout-wave .hero-panels-wrap {
    clip-path: ellipse(120% 100% at 50% 0%) !important;
    margin-bottom: -8px !important;
}

body.yon-v1-theme .hero-layout-wave .hero-panels-wrap::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 24px;
    background: var(--e-surface, #fff);
    clip-path: ellipse(55% 100% at 50% 100%);
    z-index: 6;
    pointer-events: none;
}

/* 7 — Kemer */
body.yon-v1-theme .hero-layout-arch .hero-panels-wrap {
    margin: 12px var(--e-pad, 18px) 0 !important;
    border-radius: 50% 50% 20px 20px / 28% 28% 16px 16px !important;
    overflow: hidden !important;
    border: 3px solid var(--e-border, #dde4ee) !important;
    box-shadow: var(--e-shadow-lg) !important;
}

body.yon-v1-theme .hero-layout-arch .hero-panel-inner {
    border-radius: inherit !important;
}

/* 8 — Magazin */
body.yon-v1-theme .hero-layout-magazine .hero-panels-wrap {
    display: grid !important;
    grid-template-columns: 1fr 72px !important;
    gap: 8px !important;
    align-items: stretch !important;
    border-radius: var(--e-radius-lg, 16px) !important;
    margin: 0 var(--e-pad, 18px) !important;
    padding-right: 4px !important;
}

body.yon-v1-theme .hero-layout-magazine .hero-panels {
    grid-column: 1 !important;
    grid-row: 1 !important;
}

body.yon-v1-theme .hero-layout-magazine .hero-dots {
    position: relative !important;
    grid-column: 2 !important;
    grid-row: 1 !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    justify-content: center !important;
    padding: 8px 8px 8px 0 !important;
}

body.yon-v1-theme .hero-layout-magazine .hero-dot {
    width: 100% !important;
    height: 48px !important;
    border-radius: 10px !important;
    opacity: 0.55 !important;
    background-size: cover !important;
    background-position: center !important;
    border: 2px solid var(--e-border) !important;
}

body.yon-v1-theme .hero-layout-magazine .hero-dot.active {
    opacity: 1 !important;
    border-color: var(--e-accent) !important;
    transform: scale(1.02) !important;
}

/* 9 — Billboard */
body.yon-v1-theme .hero-layout-billboard .hero-panels-wrap {
    height: clamp(280px, 58vw, 420px) !important;
}

body.yon-v1-theme .hero-layout-billboard .hero-title-stack {
    background: rgba(11, 18, 32, 0.75) !important;
    max-width: 96% !important;
    padding: 18px 22px !important;
}

body.yon-v1-theme .hero-layout-billboard .hero-t-norm {
    font-size: 0.72rem !important;
    letter-spacing: 0.2em !important;
}

body.yon-v1-theme .hero-layout-billboard .hero-t-em {
    font-size: clamp(1.4rem, 6vw, 2rem) !important;
    font-family: var(--font-brand) !important;
    letter-spacing: 0.04em !important;
}

body.yon-v1-theme .hero-layout-billboard .hero-panel-shade {
    background: linear-gradient(180deg, rgba(11,18,32,0.15) 0%, rgba(11,18,32,0.65) 100%) !important;
}

/* 10 — Minimal Şerit */
body.yon-v1-theme .hero-layout-minimal .hero-panels-wrap {
    height: auto !important;
    min-height: 0 !important;
    background: transparent !important;
    padding: 8px 0 4px !important;
}

body.yon-v1-theme .hero-layout-minimal .hero-panels {
    display: flex !important;
    gap: 10px !important;
    padding: 0 var(--e-pad, 18px) !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    height: auto !important;
}

body.yon-v1-theme .hero-layout-minimal .hero-panel {
    flex: 0 0 min(280px, 78vw) !important;
    width: min(280px, 78vw) !important;
    min-width: 0 !important;
    scroll-snap-align: start !important;
    aspect-ratio: 16 / 7 !important;
}

body.yon-v1-theme .hero-layout-minimal .hero-panel-inner {
    border-radius: 999px !important;
    min-height: 0 !important;
    height: 100% !important;
}

body.yon-v1-theme .hero-layout-minimal .hero-title-stack {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px 10px !important;
    padding: 8px 16px !important;
    background: rgba(11, 18, 32, 0.72) !important;
    border-radius: 999px !important;
}

body.yon-v1-theme .hero-layout-minimal .hero-t-norm,
body.yon-v1-theme .hero-layout-minimal .hero-t-em {
    display: inline !important;
    width: auto !important;
    font-size: 0.62rem !important;
}

body.yon-v1-theme .hero-layout-minimal .hero-nav-btn {
    display: none !important;
}

body.yon-v1-theme .hero-layout-minimal .hero-dots {
    padding-bottom: 4px !important;
}

/* Gece modu — split metin */
html[data-yon-appearance="dark"] body.yon-v1-theme .hero-layout-split .hero-panel-text {
    background: var(--e-surface-2) !important;
}

html[data-yon-appearance="dark"] body.yon-v1-theme .hero-layout-mosaic .hero-panels-wrap {
    background: var(--e-surface) !important;
}
