/**
 * Telefon-native lüks vitrin — yalnızca ≤767px
 * Görsel yüklemeden gradient + ikon; premium futuristik estetik
 */

@media (max-width: 767px) {
    :root {
        --lux-void: #030508;
        --lux-surface: #0a1018;
        --lux-glass: rgba(12, 18, 28, 0.92);
        --lux-border: rgba(201, 169, 98, 0.18);
        --lux-gold: #c9a962;
        --lux-gold-soft: rgba(201, 169, 98, 0.35);
        --lux-cyan: #01b1af;
        --lux-cyan-glow: rgba(1, 177, 175, 0.45);
        --lux-text: #f4f6f8;
        --lux-muted: #b8c5d4;
    }

    /* Karanlık modda mobilde hex kapat — performans; aydınlıkta belirsiz altıgenler */
    body:not(.light-mode) .containers .hex-grid {
        display: none !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }

    body.light-mode .containers .hex-grid {
        display: block !important;
        visibility: visible !important;
        pointer-events: none !important;
    }

    body.light-mode .hex-grid .grid {
        background-size: 220px;
        opacity: 0.14;
        filter: contrast(1.04) brightness(0.93) saturate(0.5);
    }

    body.light-mode .hex-grid .grid-glow {
        background-size: 220px;
        opacity: 1;
        mix-blend-mode: screen;
        filter: brightness(1.4) saturate(1.45)
            drop-shadow(0 0 7px rgba(0, 236, 233, 0.7))
            drop-shadow(0 0 20px rgba(1, 177, 175, 0.5));
    }

    /* Gizli legacy bölümlerin arka plan görsellerini yükleme */
    .page-content:has(.mh) > .middle3--legacy,
    .page-content:has(.mh) > .middle4--legacy,
    .page-content:has(.mh) > .middle5--legacy {
        background-image: none !important;
    }

    .page-content:has(.mh) {
        background: var(--lux-void);
    }

    /* ---- Mobil vitrin kabuğu ---- */
    .mh {
        --mh-bg: var(--lux-void);
        --mh-glass: var(--lux-glass);
        --mh-glass-border: var(--lux-border);
        --mh-accent: var(--lux-cyan);
        --mh-accent-2: #3ee8e6;
        --mh-muted: var(--lux-muted);
        position: relative;
        padding-bottom: 8px;
    }

    .mh::before {
        content: "";
        position: absolute;
        top: 0;
        left: 50%;
        width: min(140vw, 520px);
        height: 280px;
        transform: translateX(-50%);
        background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(1, 177, 175, 0.14), transparent 70%);
        pointer-events: none;
        z-index: 0;
    }

    .mh > * {
        position: relative;
        z-index: 1;
    }

    /* ---- Aurora hero (PNG yok) ---- */
    .mh-hero {
        border-radius: 24px;
        border-color: var(--lux-border);
        box-shadow:
            0 24px 60px rgba(0, 0, 0, 0.55),
            inset 0 1px 0 rgba(255, 255, 255, 0.06),
            0 0 0 1px rgba(1, 177, 175, 0.08);
        overflow: hidden;
    }

    .mh-hero__banner {
        height: clamp(168px, 42dvh, 260px);
        background: #061018;
        isolation: isolate;
    }

    .mh-hero__banner-img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center 35%;
        display: block;
        z-index: 0;
    }

    .mh-hero__aurora {
        position: absolute;
        border-radius: 50%;
        filter: blur(48px);
        opacity: 0.28;
        z-index: 1;
        pointer-events: none;
        animation: mh-aurora-drift 14s ease-in-out infinite alternate;
    }

    .mh-hero__aurora--1 {
        top: -30%;
        left: -15%;
        width: 70%;
        height: 90%;
        background: radial-gradient(circle, rgba(1, 177, 175, 0.5), transparent 65%);
    }

    .mh-hero__aurora--2 {
        top: 10%;
        right: -20%;
        width: 55%;
        height: 70%;
        background: radial-gradient(circle, rgba(201, 169, 98, 0.22), transparent 70%);
        animation-delay: -6s;
    }

    .mh-hero__banner-grid {
        position: absolute;
        inset: 0;
        z-index: 2;
        background-image:
            linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
            linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
        background-size: 28px 28px;
        mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent 85%);
        -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent 85%);
        pointer-events: none;
    }

    .mh-hero__banner-mesh {
        z-index: 3;
        pointer-events: none;
        background: linear-gradient(
            180deg,
            rgba(3, 5, 8, 0) 0%,
            rgba(3, 5, 8, 0.1) 45%,
            rgba(3, 5, 8, 0.4) 78%,
            rgba(3, 5, 8, 0.55) 100%
        );
    }

    .mh-hero__panel {
        margin-top: 0;
        z-index: 2;
        background: #060a10;
        border-top: 1px solid rgba(201, 169, 98, 0.1);
    }

    .mh-hero__eyebrow {
        color: var(--lux-cyan);
        letter-spacing: 0.16em;
    }

    .mh-hero__title {
        font-weight: 500;
        letter-spacing: -0.03em;
        color: #ffffff;
    }

    .mh-hero__lead {
        font-size: 0.9375rem;
        line-height: 1.65;
        color: var(--lux-muted);
    }

    .mh-hero__title em {
        font-weight: 600;
        color: #5cecea;
        background: none;
        -webkit-text-fill-color: currentColor;
    }

    .mh-btn--primary {
        background: linear-gradient(135deg, #3ee8e6 0%, var(--lux-cyan) 50%, #018a88 100%);
        box-shadow:
            0 10px 28px rgba(1, 177, 175, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.25);
        font-weight: 700;
        letter-spacing: 0.02em;
    }

    .mh-btn--ghost {
        border-color: var(--lux-border);
        color: var(--lux-text);
        background: rgba(255, 255, 255, 0.04);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    /* ---- İstatistikler — fotoğraf kartları ---- */
    .mh-stats--photo {
        gap: 14px;
    }

    .mh-stat-card {
        border-radius: 20px;
        border-color: var(--lux-border);
        box-shadow:
            0 16px 40px rgba(0, 0, 0, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.06);
    }

    .mh-stat-card__shade {
        pointer-events: none;
        background: linear-gradient(
            180deg,
            rgba(3, 5, 8, 0.2) 0%,
            rgba(3, 5, 8, 0.4) 55%,
            rgba(3, 5, 8, 0.55) 100%
        );
    }

    .mh-stat-card__value {
        text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
    }

    .mh-stat-card__label {
        color: #f1f5f9;
    }

    /* ---- Güven rozetleri ---- */
    .mh-trust li {
        border-color: var(--lux-border);
        background: rgba(12, 18, 28, 0.92);
        font-weight: 600;
        font-size: 0.8rem;
        letter-spacing: 0.02em;
        color: #e8edf2;
    }

    .mh-trust i {
        color: var(--lux-gold);
    }

    /* ---- Bento — ikon vitrin, görsel yok ---- */
    .mh-section-head__eyebrow {
        color: #e8d5a3;
        font-size: 0.75rem;
        letter-spacing: 0.12em;
    }

    .mh-section-head__title {
        font-weight: 600;
        font-size: 1.28rem;
        color: #ffffff;
        letter-spacing: -0.02em;
    }

    .mh-bento-card__link {
        border-radius: 20px;
        border-color: rgba(255, 255, 255, 0.08);
        background: linear-gradient(165deg, rgba(14, 22, 34, 0.96), rgba(6, 10, 16, 0.98));
        box-shadow:
            0 16px 40px rgba(0, 0, 0, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.05);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .mh-bento-card--featured .mh-bento-card__link {
        border-color: var(--lux-gold-soft);
        box-shadow:
            0 20px 48px rgba(0, 0, 0, 0.45),
            0 0 0 1px rgba(201, 169, 98, 0.12),
            inset 0 1px 0 rgba(201, 169, 98, 0.15);
    }

    .mh-bento-card__media {
        height: 128px !important;
        background-size: cover;
    }

    .mh-bento-card--featured .mh-bento-card__media {
        height: 156px !important;
    }

    .mh-bento-card__img {
        display: block !important;
        z-index: 0;
    }

    /* Çözüm bazlı aurora gradientleri */
    .mh-bento-card__media[data-solution="kamera_sistemleri"] {
        background: linear-gradient(135deg, #0a1a28 0%, #0d2838 50%, rgba(1, 177, 175, 0.15) 100%);
    }

    .mh-bento-card__media[data-solution="yangin_algilama_sistemleri"] {
        background: linear-gradient(135deg, #1a1008 0%, #2a1810 50%, rgba(220, 120, 60, 0.12) 100%);
    }

    .mh-bento-card__media[data-solution="personel_devam_gecis_kontrol_sistemleri"] {
        background: linear-gradient(135deg, #101828 0%, #182438 50%, rgba(100, 140, 220, 0.1) 100%);
    }

    .mh-bento-card__media[data-solution="telefon_santral_sistemleri"] {
        background: linear-gradient(135deg, #0d1824 0%, #142838 50%, rgba(1, 177, 175, 0.12) 100%);
    }

    .mh-bento-card__media[data-solution="rack_kabinetler"] {
        background: linear-gradient(135deg, #12121a 0%, #1e1e2a 50%, rgba(160, 160, 180, 0.08) 100%);
    }

    .mh-bento-card__media[data-solution="firewall_cozumleri"] {
        background: linear-gradient(135deg, #140f1f 0%, #221830 50%, rgba(180, 100, 220, 0.1) 100%);
    }

    .mh-bento-card__media[data-solution="network_altyapisi"] {
        background: linear-gradient(135deg, #0a1620 0%, #102838 50%, rgba(1, 177, 175, 0.14) 100%);
    }

    .mh-bento-card__media[data-solution="seslendirme_sistemleri"] {
        background: linear-gradient(135deg, #18141c 0%, #282030 50%, rgba(201, 169, 98, 0.1) 100%);
    }

    .mh-bento-card__media[data-solution="autocad_ile_projelendirme"] {
        background: linear-gradient(135deg, #101820 0%, #1a2830 50%, rgba(60, 180, 160, 0.1) 100%);
    }

    .mh-bento-card__shade {
        z-index: 1;
        pointer-events: none;
        background: linear-gradient(
            180deg,
            rgba(3, 5, 8, 0) 0%,
            rgba(3, 5, 8, 0.16) 62%,
            rgba(3, 5, 8, 0.45) 100%
        );
    }

    .mh-bento-card__icon {
        z-index: 2;
        top: auto;
        left: auto;
        right: 12px;
        bottom: 10px;
        transform: none;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 34px;
        height: 34px;
        border-radius: 10px;
        font-size: 0.82rem;
        color: #fff;
        background: rgba(3, 5, 8, 0.55);
        border: 1px solid rgba(1, 177, 175, 0.35);
        text-shadow: none;
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
    }

    .mh-bento-card--featured .mh-bento-card__icon {
        width: 38px;
        height: 38px;
        font-size: 0.9rem;
    }

    .mh-bento-card__badge {
        background: rgba(3, 5, 8, 0.65);
        border-color: var(--lux-gold-soft);
        color: var(--lux-gold);
        font-weight: 600;
        letter-spacing: 0.1em;
    }

    .mh-bento-card__body h3 {
        font-weight: 600;
        font-size: 0.95rem;
        color: #ffffff;
        letter-spacing: -0.01em;
    }

    .mh-bento-card__body {
        min-height: 104px;
        padding: 13px 14px 14px;
    }

    .mh-bento-card__body p {
        font-size: 0.8125rem;
        line-height: 1.5;
        color: var(--lux-muted);
        -webkit-line-clamp: 3;
    }

    .mh-bento-card__cta {
        color: #5cecea;
        font-weight: 700;
        font-size: 0.75rem;
        letter-spacing: 0.04em;
        text-transform: uppercase;
    }

    /* Yazılım kartları: mobile-home-hero.css — opak panel, net metin */

    /* ---- Süreç ---- */
    .mh .mh-process.mobile-tech-spotlight {
        border-color: var(--lux-border);
        background: linear-gradient(165deg, rgba(12, 18, 28, 0.95), rgba(6, 10, 16, 0.98));
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    }

    .mh-process__eyebrow {
        color: #e8d5a3;
        font-size: 0.75rem;
        letter-spacing: 0.12em;
    }

    .mh-process__title {
        font-size: 1.2rem;
        color: #ffffff;
    }

    .mh-process__step h3 {
        font-size: 1rem;
        color: #f1f5f9;
    }

    .mh-process__step p {
        font-size: 0.875rem;
        color: var(--lux-muted);
        line-height: 1.55;
    }

    .mh-process__num {
        border-color: var(--lux-gold-soft);
        color: var(--lux-gold);
        box-shadow: 0 0 0 4px rgba(201, 169, 98, 0.08);
    }

    .mh-process__steps::before {
        background: linear-gradient(180deg, var(--lux-gold-soft), rgba(1, 177, 175, 0.15));
    }

    .mh-process__cta {
        background: linear-gradient(135deg, #3ee8e6, var(--lux-cyan));
        font-weight: 700;
        letter-spacing: 0.03em;
    }

    /* ---- Alt dock — premium tab bar ---- */
    .page-content:has(.mh) .mh-dock {
        background: rgba(4, 6, 10, 0.98);
        border-top: 1px solid var(--lux-border);
        box-shadow:
            0 -12px 40px rgba(0, 0, 0, 0.5),
            inset 0 1px 0 rgba(201, 169, 98, 0.08);
    }

    .page-content:has(.mh) .mh-dock__item.is-active,
    .page-content:has(.mh) .mh-dock__item[aria-current="page"] {
        color: var(--lux-cyan);
    }

    .page-content:has(.mh) .mh-dock__item i {
        filter: drop-shadow(0 0 6px rgba(1, 177, 175, 0.35));
    }

    .page-content:has(.mh) .mh-dock__item span {
        font-size: 0.75rem;
        color: #c5d0dc;
    }

    .page-content:has(.mh) .mh-dock__item--accent span {
        color: #ffffff;
    }

    /* Yapışkan bölüm başlığı — alttaki metin karışmasın */

    /* Ortaklar başlığı — şeffaf gradient metin düzeltmesi */
    .middle8 h2 {
        color: #f8fafc !important;
        -webkit-text-fill-color: #f8fafc !important;
        background: none !important;
        -webkit-background-clip: unset !important;
        background-clip: unset !important;
        -webkit-text-stroke-width: 0 !important;
        font-size: clamp(1.15rem, 5vw, 1.45rem) !important;
        letter-spacing: 0.06em !important;
        line-height: 1.35 !important;
        font-weight: 700 !important;
    }

    /* Footer & genel metin */
    .site-footer .footer-col h4 {
        font-size: 0.95rem !important;
        color: #f1f5f9 !important;
    }

    .site-footer .footer-col ul li a,
    .site-footer .footer-address a {
        font-size: 0.9rem !important;
        color: #c5d0dc !important;
        line-height: 1.5 !important;
    }

    .site-footer .footers p {
        font-size: 0.8125rem !important;
        color: #a8b4c4 !important;
        line-height: 1.5 !important;
    }

    .footer-newsletter__text p,
    .footer-newsletter__note {
        font-size: 0.875rem !important;
        color: #b8c5d4 !important;
        line-height: 1.55 !important;
    }

    /* Çerez bildirimi — koyu mod (aydınlık: cookie-consent.css) */
    body:not(.light-mode) #cookie-popup .cookie-message {
        font-size: 0.9rem !important;
        line-height: 1.55 !important;
        color: #d1dae6 !important;
    }

    body.light-mode #cookie-popup .cookie-message,
    html[data-theme="light"] #cookie-popup .cookie-message {
        color: #334155 !important;
        -webkit-text-fill-color: #334155 !important;
    }

}

@keyframes mh-aurora-drift {
    0% {
        transform: translate(0, 0) scale(1);
    }
    100% {
        transform: translate(8%, 6%) scale(1.08);
    }
}

@media (max-width: 767px) and (prefers-reduced-motion: reduce) {
    .mh-hero__aurora {
        animation: none;
    }
}
