/* ============================================================
   Meşe Reklam — Kutu Harf Seçici (khs) + site geneli animasyonlar
   Tüm seçiciler .khs- / .mat- önekiyle izole edilmiştir.
   ============================================================ */

/* ---------- Hero slide 2 başlığı (h1 stiliyle eş) ---------- */
.s-slider-content h2.slider-title {
    font-size: clamp(34px, 5.5vw, 74px);
    line-height: 1.2;
    margin-bottom: 40px;
    font-weight: 600;
    color: #fff;
}

.s-slider-content h2.slider-title span {
    color: var(--primary-color, #fda635);
}

/* ---------- Hero okunabilirlik overlay'i ---------- */
.slider-area .single-slider {
    position: relative;
}

.slider-area .single-slider::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15, 12, 10, .82) 0%, rgba(15, 12, 10, .55) 55%, rgba(15, 12, 10, .25) 100%);
    z-index: 1;
}

.slider-area .single-slider .container {
    position: relative;
    z-index: 2;
}

/* ---------- Telefon pulse (yanıp sönme) ---------- */
@keyframes khs-pulse {
    0%   { opacity: 1; text-shadow: 0 0 0 rgba(253, 166, 53, 0); }
    50%  { opacity: .75; text-shadow: 0 0 12px rgba(253, 166, 53, .9); }
    100% { opacity: 1; text-shadow: 0 0 0 rgba(253, 166, 53, 0); }
}

.khs-pulse {
    animation: khs-pulse 2s ease-in-out infinite;
    font-weight: 600;
}

/* Telefon ikonu çalma animasyonu */
@keyframes khs-ring {
    0%, 100% { transform: rotate(0); }
    10% { transform: rotate(14deg); }
    20% { transform: rotate(-12deg); }
    30% { transform: rotate(10deg); }
    40% { transform: rotate(-8deg); }
    50% { transform: rotate(0); }
}

.khs-ring {
    display: inline-block;
    animation: khs-ring 2.4s ease-in-out infinite;
    transform-origin: 50% 10%;
}

/* ---------- Hover lift (kartlar) ---------- */
.khs-lift {
    transition: transform .35s ease, box-shadow .35s ease;
}

.khs-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(35, 31, 30, .14);
}

/* feature-box şablon hover'ı zaten margin ile yukarı kaydırıyor — çift hareketi engelle */
.feature-area .feature-box.khs-lift:hover {
    margin-top: 0;
    transform: translateY(-8px);
}

/* ============================================================
   Kutu Harf Seçici bileşeni
   ============================================================ */
.khs-area {
    background: #fff;
}

.khs-box {
    background: #fff;
    border: 1px solid #efe6dc;
    border-radius: 18px;
    padding: 40px;
    box-shadow: 0 24px 60px rgba(35, 31, 30, .08);
}

/* ---------- Kontroller ---------- */
.khs-field {
    margin-bottom: 24px;
}

.khs-field label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: #231f1e;
    margin-bottom: 8px;
}

.khs-field input,
.khs-field select {
    width: 100%;
    height: 54px;
    padding: 0 18px;
    border: 2px solid #efe6dc;
    border-radius: 10px;
    background: #fffdfb;
    font-size: 16px;
    color: #231f1e;
    transition: border-color .25s ease, box-shadow .25s ease;
}

/* Yerleşik ok sağ kenara yapışıyor — özel chevron, içeriden 18px */
.khs-field select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 44px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9' fill='none'%3E%3Cpath d='M1 1.5L7 7.5L13 1.5' stroke='%23231f1e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    cursor: pointer;
}

.khs-field input:focus,
.khs-field select:focus {
    outline: none;
    border-color: #fda635;
    box-shadow: 0 0 0 4px rgba(253, 166, 53, .15);
}

/* ---------- Tip sekmeleri ---------- */
.khs-tabs {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 10px;
    margin: 10px 0 24px;
}

.khs-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 14px 6px 10px;
    background: #fffdfb;
    border: 2px solid #efe6dc;
    border-radius: 12px;
    cursor: pointer;
    transition: transform .25s ease, border-color .25s ease, background .25s ease, box-shadow .25s ease;
}

.khs-tab:hover {
    transform: translateY(-4px) scale(1.02);
    border-color: #fda635;
    box-shadow: 0 10px 24px rgba(253, 166, 53, .18);
}

.khs-tab.active {
    border-color: #fda635;
    background: #FFF3E9;
    box-shadow: 0 8px 20px rgba(253, 166, 53, .22);
}

.khs-thumb {
    font-size: 38px;
    font-weight: 800;
    line-height: 1;
    font-family: 'Rubik', sans-serif;
}

.khs-tab-label {
    font-size: 12px;
    font-weight: 600;
    color: #231f1e;
    text-align: center;
    line-height: 1.25;
}

/* ---------- Canlı önizleme ---------- */
.khs-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 230px;
    padding: 30px 20px;
    background:
        radial-gradient(circle at 50% 0%, #4a4543 0%, #2b2725 55%, #1d1a18 100%);
    border-radius: 14px;
    overflow: hidden;
    transition: background .5s ease;
}

.khs-preview.is-lighted {
    background:
        radial-gradient(circle at 50% 110%, #2a2118 0%, #16130f 60%, #0c0a08 100%);
}

#khs-preview-text {
    display: inline-block;
    font-size: clamp(34px, 8vw, 96px);
    font-weight: 800;
    line-height: 1.3;
    padding: .12em .1em;
    letter-spacing: .04em;
    text-align: center;
    word-break: break-word;
    transition: filter .4s ease;
}

#khs-preview-text.is-empty {
    opacity: .35;
}

/* ---------- Malzeme efektleri ----------
   Çok katmanlı background + background-clip:text.
   Katman sırası: en üstteki desen önce yazılır. */
.mat-gumus-krom {
    background-image: linear-gradient(180deg, #fdfdfd 0%, #c8ccd2 32%, #8e949c 50%, #eceef1 64%, #b5bac1 86%, #d9dce0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.mat-sari-krom {
    background-image: linear-gradient(180deg, #fceabb 0%, #f8d568 30%, #d4a017 50%, #f6e27a 64%, #b8860b 88%, #e8c95a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* Fileli (delikli) varyant: metal gradient üstüne delik deseni */
.mat-gumus-krom.mat-fileli {
    background-image:
        radial-gradient(circle at center, rgba(20, 18, 16, .55) 0 1.4px, transparent 1.6px),
        linear-gradient(180deg, #fdfdfd 0%, #c8ccd2 32%, #8e949c 50%, #eceef1 64%, #b5bac1 86%, #d9dce0 100%);
    background-size: 7px 7px, 100% 100%;
}

.mat-sari-krom.mat-fileli {
    background-image:
        radial-gradient(circle at center, rgba(20, 18, 16, .55) 0 1.4px, transparent 1.6px),
        linear-gradient(180deg, #fceabb 0%, #f8d568 30%, #d4a017 50%, #f6e27a 64%, #b8860b 88%, #e8c95a 100%);
    background-size: 7px 7px, 100% 100%;
}

/* Işıklı varyant: glow (clip'li yazıda text-shadow çalışmaz, drop-shadow kullan) */
.mat-isikli {
    filter: drop-shadow(0 0 10px rgba(255, 215, 130, .85)) drop-shadow(0 0 26px rgba(255, 180, 60, .5));
}

.mat-pleksi {
    background-image: linear-gradient(180deg, #ff4d5e 0%, #e6112b 45%, #c40220 70%, #9e0014 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    filter: drop-shadow(0 2px 6px rgba(255, 70, 90, .35));
}

.mat-aluminyum {
    background-image:
        repeating-linear-gradient(90deg, rgba(255, 255, 255, .14) 0 1px, transparent 1px 3px),
        linear-gradient(180deg, #e8e9ea 0%, #b7babd 40%, #9b9ea1 55%, #d2d4d6 75%, #aaadb0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* ---------- Sonuç ---------- */
.khs-result h3 {
    font-size: 20px;
    font-weight: 600;
    color: #231f1e;
    margin-bottom: 8px;
}

.khs-price {
    font-size: 44px;
    font-weight: 800;
    color: #fda635;
    line-height: 1.1;
    margin-bottom: 6px;
}

.khs-note {
    color: #8a8482;
    font-size: 13px;
}

.khs-features {
    list-style: none;
    margin: 20px 0 0;
    padding: 0;
}

.khs-features li {
    position: relative;
    padding: 6px 0 6px 28px;
    font-size: 15px;
    color: #4a4543;
}

.khs-features li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    top: 6px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #FFF3E9;
    color: #fda635;
    font-weight: 700;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.khs-cta .btn i {
    margin-right: 6px;
}

/* Tam genişlik WhatsApp CTA */
.khs-cta-full {
    display: block;
    width: 100%;
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    text-transform: none; /* şablonun capitalize'ı Türkçe'de "Için" üretiyor */
    white-space: normal; /* .btn'in nowrap'ı mobilde sağa taşırıyor */
    line-height: 1.5;
}

/* Buton içi yazı yanıp sönme */
@keyframes khs-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: .35; }
}

.khs-blink {
    display: inline-block;
    animation: khs-blink 1.4s ease-in-out infinite;
}

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
    .khs-tabs {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 767px) {
    .khs-box {
        padding: 24px 16px;
    }

    .khs-tabs {
        grid-template-columns: repeat(2, 1fr);
    }

    .khs-preview {
        min-height: 160px;
    }

    .khs-price {
        font-size: 34px;
    }

    .khs-cta .btn {
        display: block;
        margin: 0 0 12px;
    }
}

/* ---------- İç sayfa H1 (section-title içinde h2 görünümü) ---------- */
.section-title h1.khs-h1 {
    font-size: 45px;
    padding-bottom: 0;
    margin-bottom: 25px !important;
    position: relative;
    line-height: 1.2;
}

@media (max-width: 810px) {
    .section-title h1.khs-h1 {
        font-size: 32px;
    }
}

/* ---------- 404 sayfası ---------- */
.khs-404 {
    font-size: clamp(96px, 20vw, 220px);
    font-weight: 800;
    line-height: 1;
    display: inline-block;
    padding: .1em;
}

/* ---------- Hizmet detay sayfaları (2026-06-07) ---------- */
.service-detail .content-box h1.khs-h1 {
    font-size: 32px;
    line-height: 1.2em;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

@media (max-width: 810px) {
    .service-detail .content-box h1.khs-h1 {
        font-size: 26px;
    }
}

.khs-check-list {
    margin-bottom: 30px;
}

.khs-check-list li {
    margin-bottom: 10px;
}

.khs-check-list li i {
    color: var(--primary-color);
    margin-right: 10px;
}
