/* ======================================================================
   KÖZDE — HERO SECTION
   Prefix: .hero-
   Tasarım: Kor ateş kırmızısı + duman koyu + altın sarısı aksan
            Mangal ateşi, kömür ızgara, dürüm kağıdı dokusu atmosferi
   ====================================================================== */

/* Playfair Display + Barlow font'ları layouts/default.php <head> içinde global yüklenir.
   Burada @import etmeye gerek yok — duplike request olmasın. */

/* ─── CSS Variables ─── */
:root {
    --ember-950: #0D0603;
    --ember-900: #1A0A04;
    --ember-800: #2D1208;
    --ember-700: #4A1E0D;
    --ember-600: #6B2D14;
    --coal-900: #121212;
    --coal-800: #1C1C1E;
    --coal-700: #2A2A2D;
    --coal-600: #3A3A3F;
    --coal-400: #6B6B73;
    --coal-200: #B0B0BA;
    --coal-100: #D8D8E0;
    --flame-600: #C0390E;
    --flame-500: #E04818;
    --flame-400: #F25C28;
    --flame-300: #F97040;
    --gold-500: #D4940A;
    --gold-400: #E8A91A;
    --gold-300: #F5BE35;
    --gold-200: #FAD870;
    --cream: #F5EDD8;
    --cream-dark: #E8D8B5;

    /* --font-display / --font-cond / --font-body artık tokens.css'ten global gelir. */

    --t-fast: 180ms cubic-bezier(.4, 0, .2, 1);
    --t-med:  320ms cubic-bezier(.4, 0, .2, 1);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-full: 9999px;
}

/* ─────────── HERO WRAPPER ─────────── */

.hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    isolation: isolate;
    /* RTL/LTR güvenli — yatay taşmayı kesin engelle */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    background:
        radial-gradient(ellipse 900px 500px at 50% 110%,  rgba(192, 57, 14, 0.55)  0%, transparent 65%),
        radial-gradient(ellipse 600px 400px at 15%  80%,  rgba(212, 148, 10, 0.18) 0%, transparent 55%),
        radial-gradient(ellipse 400px 300px at 85%  75%,  rgba(192, 57, 14, 0.25)  0%, transparent 55%),
        linear-gradient(170deg,
            #0D0603 0%,
            #1A0A04 30%,
            #1C1210 60%,
            #0F0A08 100%);
    padding: 80px 24px 100px;
}

@media (max-width: 768px) {
    .hero { min-height: 80vh; padding: 60px 20px 80px; }
}

/* Dar ekranda padding daha da küçüksün ki içerik bol bol nefes alsın */
@media (max-width: 480px) {
    .hero { padding: 48px 14px 64px; }
}

/* ─────────── KÖMÜR DOKU ARKAPLAN ─────────── */

.hero-texture {
    position: absolute;
    inset: 0;
    z-index: -4;
    pointer-events: none;
    opacity: 0.12;
    background-image:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(255,255,255,0.03) 2px,
            rgba(255,255,255,0.03) 4px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 8px,
            rgba(255,255,255,0.02) 8px,
            rgba(255,255,255,0.02) 10px
        );
}

/* ─────────── IZGARA ÇİZGİLERİ ─────────── */

.hero-grill {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 35%;
    z-index: -3;
    pointer-events: none;
    opacity: 0.28;
    background-image:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 18px,
            rgba(180, 90, 30, 0.6) 18px,
            rgba(180, 90, 30, 0.6) 22px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 18px,
            rgba(180, 90, 30, 0.35) 18px,
            rgba(180, 90, 30, 0.35) 22px
        );
    -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%);
    mask-image: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%);
}

/* ─────────── ATEŞ + KÖZBILIM SVG SAHNE ─────────── */

.hero-scene {
    position: absolute;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    overflow: hidden;
}

/* Alev parçacıkları — sol */
.hero-ember {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    animation: hero-ember-rise var(--dur, 3s) ease-in var(--delay, 0s) infinite;
    opacity: 0;
}
.hero-ember-1  { width:4px; height:4px; background:var(--gold-300); bottom:0; left:12%; --dur:2.8s; --delay:0s; }
.hero-ember-2  { width:3px; height:3px; background:var(--flame-300); bottom:0; left:20%; --dur:3.5s; --delay:0.6s; }
.hero-ember-3  { width:5px; height:5px; background:var(--gold-200); bottom:0; left:35%; --dur:2.4s; --delay:1.2s; }
.hero-ember-4  { width:3px; height:3px; background:var(--flame-400); bottom:0; left:50%; --dur:3.2s; --delay:0.4s; }
.hero-ember-5  { width:4px; height:4px; background:var(--gold-300); bottom:0; left:62%; --dur:2.7s; --delay:1.8s; }
.hero-ember-6  { width:3px; height:3px; background:var(--flame-300); bottom:0; left:74%; --dur:3.8s; --delay:0.9s; }
.hero-ember-7  { width:5px; height:5px; background:var(--gold-400); bottom:0; left:85%; --dur:2.5s; --delay:2.1s; }
.hero-ember-8  { width:3px; height:3px; background:var(--flame-400); bottom:0; left:28%; --dur:4.0s; --delay:1.5s; }
.hero-ember-9  { width:4px; height:4px; background:var(--gold-200); bottom:0; left:55%; --dur:2.9s; --delay:2.4s; }
.hero-ember-10 { width:3px; height:3px; background:var(--flame-300); bottom:0; left:90%; --dur:3.3s; --delay:0.2s; }

@keyframes hero-ember-rise {
    0%   { opacity: 0;    transform: translateY(0)   translateX(0)  scale(1); }
    15%  { opacity: 0.9; }
    60%  { opacity: 0.6;  transform: translateY(-160px) translateX(calc(var(--drift, 20px))) scale(0.7); }
    100% { opacity: 0;    transform: translateY(-320px) translateX(calc(var(--drift, 30px))) scale(0.3); }
}
.hero-ember-1  { --drift: 15px; }
.hero-ember-2  { --drift: -18px; }
.hero-ember-3  { --drift: 22px; }
.hero-ember-4  { --drift: -12px; }
.hero-ember-5  { --drift: 25px; }
.hero-ember-6  { --drift: -20px; }
.hero-ember-7  { --drift: 10px; }
.hero-ember-8  { --drift: -25px; }
.hero-ember-9  { --drift: 18px; }
.hero-ember-10 { --drift: -15px; }

/* Alt ateş kırmızısı parıltı */
.hero-glow-bottom {
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(192, 57, 14, 0.65) 0%, rgba(212, 148, 10, 0.2) 45%, transparent 70%);
    animation: hero-glow-pulse 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes hero-glow-pulse {
    0%, 100% { opacity: 0.8; transform: translateX(-50%) scaleX(1); }
    50%      { opacity: 1.0; transform: translateX(-50%) scaleX(1.06); }
}

/* ─────────── DECORATİF — DÖKÜM YAZI ─────────── */

.hero-bg-text {
    position: absolute;
    z-index: -1;
    font-family: var(--font-display);
    font-weight: 900;
    font-style: italic;
    font-size: clamp(8rem, 20vw, 16rem);
    letter-spacing: -0.04em;
    color: transparent;
    -webkit-text-stroke: 1px rgba(192, 57, 14, 0.15);
    text-stroke: 1px rgba(192, 57, 14, 0.15);
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.6;
}

/* ─────────── STATUS PİLL ─────────── */

.hero-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: var(--radius-full);
    backdrop-filter: blur(8px);
    font-family: var(--font-cond);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--coal-100);
    margin-bottom: 28px;
}

.hero-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--coal-400);
    flex-shrink: 0;
}
.hero-status.is-open .hero-status-dot {
    background: #22C55E;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.22);
    animation: hero-pulse 2s infinite;
}
.hero-status.is-warning .hero-status-dot { background: var(--gold-400); }
.hero-status.is-closed  .hero-status-dot { background: var(--flame-500); }

@keyframes hero-pulse {
    0%, 100% { transform: scale(1);   opacity: 1; }
    50%       { transform: scale(0.7); opacity: 0.55; }
}

/* ─────────── MARKA ROZET / LOGO ─────────── */

.hero-logo {
    display: none;
    margin-bottom: 20px;
}

.hero-logo-img {
    height: 72px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    filter: brightness(1.1);
}

.hero-logo-avatar {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--flame-600) 0%, var(--ember-700) 100%);
    border: 2px solid rgba(212, 148, 10, 0.4);
    color: var(--gold-200);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 52px;
    letter-spacing: -0.04em;
    box-shadow:
        0 0 40px rgba(192, 57, 14, 0.4),
        inset 0 1px 0 rgba(255,255,255,0.08);
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .hero-logo-avatar { width: 80px; height: 80px; font-size: 42px; }
    .hero-logo-img    { height: 56px; }
}

/* ─────────── BAŞLIK ─────────── */

.hero-eyebrow {
    display: block;
    font-family: var(--font-cond);
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--gold-400);
    margin-bottom: 10px;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 10vw, 7rem);
    font-weight: 900;
    line-height: 0.92;
    letter-spacing: -0.03em;
    color: var(--cream);
    margin: 0 0 16px;
    /* Uzun marka adı dar viewport'a sığsın — yatay taşma engellensin */
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    text-shadow:
        0 2px 40px rgba(192, 57, 14, 0.5),
        0 0 80px rgba(212, 148, 10, 0.15);
}

.hero-title em {
    font-style: italic;
    color: var(--gold-300);
    text-shadow:
        0 2px 40px rgba(212, 148, 10, 0.6),
        0 0 80px rgba(212, 148, 10, 0.3);
}

.hero-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    justify-content: center;
    margin: 20px 0 24px;
}

.hero-divider-line {
    height: 1px;
    width: 60px;
    background: linear-gradient(90deg, transparent, rgba(212,148,10,0.6));
}
.hero-divider-line:last-child {
    background: linear-gradient(90deg, rgba(212,148,10,0.6), transparent);
}

.hero-divider-icon {
    font-size: 20px;
    color: var(--gold-400);
    opacity: 0.9;
}

.hero-tagline {
    font-family: var(--font-body);
    font-size: clamp(1rem, 2.2vw, 1.25rem);
    font-weight: 300;
    color: var(--coal-200);
    line-height: 1.65;
    letter-spacing: 0.01em;
    margin: 0 0 36px;
    max-width: 520px;
    margin-inline: auto;
    margin-bottom: 36px;
}

/* ─────────── CTA BUTONU ─────────── */

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 36px;
    background: linear-gradient(135deg, var(--flame-500) 0%, var(--flame-600) 100%);
    color: var(--cream);
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-cond);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    box-shadow:
        0 0 0 1px rgba(212,148,10,0.25),
        0 8px 24px rgba(192, 57, 14, 0.45),
        inset 0 1px 0 rgba(255,255,255,0.1);
    transition: all var(--t-fast);
    position: relative;
    overflow: hidden;
}
.hero-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--gold-500) 0%, var(--flame-500) 100%);
    opacity: 0;
    transition: opacity var(--t-fast);
}
.hero-cta:hover::before   { opacity: 1; }
.hero-cta:hover {
    transform: translateY(-2px);
    box-shadow:
        0 0 0 1px rgba(212,148,10,0.45),
        0 14px 36px rgba(192, 57, 14, 0.55),
        inset 0 1px 0 rgba(255,255,255,0.15);
    color: var(--ember-900);
}
.hero-cta:active { transform: translateY(0); }
.hero-cta:focus-visible {
    outline: 2px solid var(--gold-400);
    outline-offset: 3px;
}
.hero-cta span, .hero-cta svg { position: relative; z-index: 1; }

.hero-cta-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.hero-cta-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    background: rgba(0,0,0,0.25);
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

/* İkincil buton */
.hero-cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 28px;
    background: transparent;
    color: var(--coal-100);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-sm);
    font-family: var(--font-cond);
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--t-fast);
    backdrop-filter: blur(6px);
}
.hero-cta-secondary:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.25);
    color: var(--cream);
    transform: translateY(-1px);
}

.hero-cta-hint {
    width: 100%;
    text-align: center;
    margin-top: 14px;
    font-family: var(--font-body);
    font-size: 12px;
    color: var(--coal-400);
    letter-spacing: 0.03em;
}

/* ─────────── HERO BADGES (alt özellikler) ─────────── */

.hero-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.07);
}

.hero-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-cond);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--coal-400);
}

.hero-badge-icon {
    width: 16px;
    height: 16px;
    color: var(--gold-500);
    flex-shrink: 0;
}

/* ─────────── İÇERİK CONTAINER ─────────── */

.hero-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: min(720px, 100%);
    box-sizing: border-box;
    text-align: center;
    animation: hero-fade-up 0.9s ease-out both;
}

@keyframes hero-fade-up {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ─────────── SCROLL GÖSTERGESİ ─────────── */

.hero-scroll {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-family: var(--font-cond);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--coal-600);
    animation: hero-scroll-bounce 2.4s ease-in-out infinite;
}
.hero-scroll svg {
    width: 16px;
    height: 16px;
    stroke: var(--coal-600);
}

@keyframes hero-scroll-bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(7px); }
}

@media (max-width: 640px) {
    .hero-scroll  { display: none; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .hero-cta, .hero-cta-secondary { text-align: center; justify-content: center; }
    .hero-badges  { gap: 14px; }
}

/* ─────────── CTA DİSABLED ─────────── */

.hero-cta.is-disabled {
    background: var(--coal-700);
    color: var(--coal-400);
    box-shadow: none;
    cursor: not-allowed;
    pointer-events: none;
    border: 1px solid var(--coal-600);
}
.hero-cta.is-disabled::before { display: none; }
