/* ============================================
   PH Yazılım - Destek Sayfası
   Hafif CSS hero + kanallar + form + SSS
   ============================================ */


/* ============================================
   HERO — Hafif CSS arka plan (Three.js yıldızları + sürekli
   renk döngüsü kaldırıldı): radyal gradyan + statik ızgara + glow.
   Sürekli GPU/repaint maliyeti yok, three.min.js indirilmiyor.
   ============================================ */
/* Hero'daki "Destek Talebi Oluştur" çapasıyla forma inişte başlık navbar altına girmesin */
.destek .destek-form-section {
    scroll-margin-top: 90px;
}

/* PERDE: bant tepeye yapışır, .perde-icerik üzerine kayar (style.css + perde.js) */
.destek .aurora-hero {
    position: sticky;
    top: 0;
    z-index: 0;
    min-height: 60vh;              /* sabit height kaldırıldı: dar ekranda içerik taşmasın */
    overflow: hidden;
    isolation: isolate;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 110px 20px 70px;
    color: #e2e8f0;
    background:
        radial-gradient(ellipse 80% 60% at 50% -10%, rgba(13, 110, 253, 0.30) 0%, rgba(13, 110, 253, 0) 60%),
        radial-gradient(ellipse at 50% 0%, #0d1b3a 0%, #0b1437 45%, #060a1f 100%);
}

/* Statik ince ızgara — dekoratif, GPU'ya yük bindirmez */
.destek .aurora-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image:
        linear-gradient(rgba(147, 197, 253, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(147, 197, 253, 0.06) 1px, transparent 1px);
    background-size: 54px 54px;
    -webkit-mask-image: radial-gradient(ellipse 80% 75% at 50% 24%, #000 30%, transparent 80%);
    mask-image: radial-gradient(ellipse 80% 75% at 50% 24%, #000 30%, transparent 80%);
    pointer-events: none;
}

/* Yumuşak cyan glow — statik */
.destek .aurora-hero::after {
    content: '';
    position: absolute;
    z-index: 0;
    top: -120px;
    left: 50%;
    width: 760px;
    max-width: 120%;
    height: 460px;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(13, 202, 240, 0.16) 0%, rgba(13, 202, 240, 0) 70%);
    pointer-events: none;
}

/* ── İçerik ── */
.destek .aurora-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 760px;
    margin: 0 auto;
    animation: auroraContentIn 1s 0.2s ease-out both;
}

@keyframes auroraContentIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Badge */
.destek .aurora-badge {
    display: inline-block;
    margin-bottom: 18px;
    padding: 7px 18px;
    border-radius: 50px;
    background: rgba(13, 110, 253, 0.18);
    border: 1px solid rgba(13, 110, 253, 0.35);
    backdrop-filter: blur(8px);
    color: #93c5fd;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* Title — beyaz → gri gradient */
.destek .aurora-title {
    font-size: clamp(2.2rem, 6vw, 4.6rem);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin: 0 0 24px;
    background: linear-gradient(135deg, #ffffff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Desc */
.destek .aurora-desc {
    font-size: clamp(1rem, 1.4vw, 1.18rem);
    color: rgba(226, 232, 240, 0.78);
    line-height: 1.65;
    max-width: 560px;
    margin: 0 auto 32px;
}

/* CTA Buton — animated border + glow */
.destek .aurora-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: 50px;
    background: linear-gradient(135deg, #0d6efd 0%, #0dcaf0 100%);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.98rem;
    border: 0;
    box-shadow: 0 8px 22px rgba(13, 110, 253, 0.30);
    transition: box-shadow 0.25s ease, transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    will-change: transform;
}

    .destek .aurora-cta:hover {
        color: #fff;
        transform: translateY(-2px) scale(1.02);
        box-shadow: 0 14px 30px rgba(13, 110, 253, 0.42);
    }

    .destek .aurora-cta:active {
        transform: scale(0.98);
    }

    .destek .aurora-cta-arrow {
        transition: transform 0.25s ease;
        font-size: 1rem;
    }

    .destek .aurora-cta:hover .aurora-cta-arrow {
        transform: rotate(-45deg);
    }

    .destek .aurora-cta:active .aurora-cta-arrow {
        transform: rotate(-12deg);
    }


/* ============================================
   HIZLI DESTEK KANALLARI
   ============================================ */
.destek .quick-channels {
    padding: 70px 0 30px;
    background: #f8fafc;
}

.destek .channel-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px 24px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

    .destek .channel-card:hover {
        transform: translateY(-4px);
        border-color: var(--ch-color, #0d6efd);
        box-shadow: 0 12px 30px rgba(15, 23, 42, 0.10);
    }

.destek .channel-icon {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    border-radius: 14px;
    background: var(--ch-color, #0d6efd);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

.destek .channel-text h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 2px;
}

.destek .channel-text span {
    display: block;
    font-size: 0.94rem;
    color: #475569;
    font-weight: 500;
    margin-bottom: 2px;
}

.destek .channel-text small {
    color: #94a3b8;
    font-size: 0.78rem;
}


/* ============================================
   DESTEK FORMU
   ============================================ */
.destek .destek-form-section {
    padding: 60px 0 100px;
    background: #f8fafc;
}

.destek .form-tag {
    display: inline-block;
    background: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
    padding: 5px 16px;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.destek .form-title {
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 10px;
}

.destek .text-gradient {
    background: linear-gradient(135deg, #0d6efd, #0dcaf0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.destek .form-subtitle {
    font-size: 1rem;
    color: #64748b;
    max-width: 540px;
    margin: 0 auto;
}

/* Form Kapsayıcı */
.destek .destek-form {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 40px 36px;
    box-shadow: 0 16px 50px rgba(15, 23, 42, 0.06);
}

.destek .form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 8px;
    letter-spacing: 0.1px;
}

.destek .req { color: #ef4444; }

.destek .form-input-wrap {
    position: relative;
}

.destek .form-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1rem;
    pointer-events: none;
    transition: color 0.2s ease;
}

.destek .form-icon-top {
    top: 16px;
    transform: none;
}

.destek .destek-form .form-control {
    width: 100%;
    padding: 12px 16px 12px 42px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.95rem;
    color: #1a1a2e;
    transition: all 0.2s ease;
}

    .destek .destek-form .form-control::placeholder {
        color: #94a3b8;
    }

    .destek .destek-form .form-control:focus {
        outline: none;
        border-color: #0d6efd;
        background: #fff;
        box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.12);
    }

    .destek .destek-form .form-control:focus + .form-icon,
    .destek .form-input-wrap:focus-within .form-icon {
        color: #0d6efd;
    }

.destek .form-select-custom {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2364748b' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 14px;
    padding-right: 38px;
    cursor: pointer;
}

textarea.form-control {
    resize: vertical;
    min-height: 140px;
    padding-left: 42px;
}

/* Aciliyet radio chip */
.destek .urgency-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.destek .urgency-item input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.destek .urgency-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 11px 18px;
    border-radius: 12px;
    border: 1.5px solid #e2e8f0;
    background: #f8fafc;
    color: #64748b;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.destek .urgency-item input:checked + .urgency-low  { border-color: #22c55e; background: rgba(34, 197, 94, 0.10); color: #15803d; }
.destek .urgency-item input:checked + .urgency-mid  { border-color: #f59e0b; background: rgba(245, 158, 11, 0.10); color: #b45309; }
.destek .urgency-item input:checked + .urgency-high { border-color: #ef4444; background: rgba(239, 68, 68, 0.10); color: #b91c1c; }

.destek .urgency-chip:hover { border-color: #cbd5e1; }

/* KVKK checkbox */
.destek .kvkk-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

    .destek .kvkk-check input[type="checkbox"] {
        flex-shrink: 0;
        width: 18px;
        height: 18px;
        accent-color: #0d6efd;
        margin-top: 2px;
        cursor: pointer;
    }

    .destek .kvkk-check span {
        font-size: 0.88rem;
        color: #475569;
        line-height: 1.5;
    }

.destek .kvkk-link { color: #0d6efd; text-decoration: underline; }

/* Submit */
.destek .btn-submit {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 34px;
    background: linear-gradient(135deg, #0d6efd, #0dcaf0);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 22px rgba(13, 110, 253, 0.30);
}

    .destek .btn-submit:hover:not(:disabled) {
        transform: translateY(-3px);
        box-shadow: 0 14px 32px rgba(13, 110, 253, 0.45);
    }

    .destek .btn-submit:disabled {
        opacity: 0.85;
        cursor: not-allowed;
    }

    .destek .btn-submit.is-success {
        background: linear-gradient(135deg, #22c55e, #16a34a);
    }

.destek .form-note {
    margin-top: 14px;
    font-size: 0.82rem;
    color: #94a3b8;
}


/* ============================================
   SSS
   ============================================ */
.destek .faq-section {
    padding: 80px 0 100px;
    background: #fff;
}

.destek .section-title {
    font-size: 2rem;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 10px;
}

.destek .section-subtitle {
    color: #64748b;
}

.destek .faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.destek .faq-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 18px 22px;
    transition: all 0.25s ease;
}

    .destek .faq-item[open] {
        background: #fff;
        border-color: rgba(13, 110, 253, 0.25);
        box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    }

    .destek .faq-item summary {
        cursor: pointer;
        font-weight: 700;
        font-size: 1rem;
        color: #1a1a2e;
        list-style: none;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
    }

        .destek .faq-item summary::-webkit-details-marker { display: none; }

        .destek .faq-item summary::after {
            content: '+';
            font-size: 1.6rem;
            font-weight: 400;
            color: #0d6efd;
            line-height: 1;
            transition: transform 0.25s ease;
        }

    .destek .faq-item[open] summary::after {
        content: '−';
        transform: rotate(0deg);
    }

    .destek .faq-item p {
        margin: 14px 0 0;
        color: #475569;
        line-height: 1.65;
        font-size: 0.94rem;
    }

    /* S.S.S. cevabı artık paragraflara bölünür (HukukiMetinHelper.Bicimle): paragraf
       arası boşluğu yukarıdaki kuralın 14px üst payı verir. "- " ile başlayan satırlar
       madde listesi olur; aynı tonda ve girintili dursun. */
    .destek .faq-item .faq-liste {
        margin: 14px 0 0;
        padding-left: 1.25rem;
        color: #475569;
        line-height: 1.65;
        font-size: 0.94rem;
    }


/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 991.98px) {
    .destek .aurora-hero { min-height: 55vh; height: 55vh; padding: 100px 20px 60px; }
    .destek .destek-form { padding: 32px 28px; }
}

@media (max-width: 767.98px) {
    .destek .aurora-hero { min-height: 50vh; height: 50vh; padding: 90px 16px 50px; }
    .destek .aurora-title { font-size: clamp(1.9rem, 8vw, 2.8rem); letter-spacing: -1px; }
    .destek .aurora-desc { font-size: 0.96rem; }

    .destek .quick-channels { padding: 50px 0 20px; }
    .destek .destek-form-section { padding: 40px 0 70px; }
    .destek .destek-form { padding: 28px 22px; }
    .destek .faq-section { padding: 60px 0 80px; }

    .destek .channel-card { padding: 18px 20px; }
    .destek .urgency-group { flex-direction: column; }
    .destek .urgency-chip { width: 100%; justify-content: center; }
}

@media (max-width: 479.98px) {
    .destek .aurora-hero { min-height: 440px; height: 440px; }
}


/* ============================================
   prefers-reduced-motion
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    .destek .aurora-hero,
    .destek .aurora-content {
        animation: none !important;
    }
}


/* ===== KARANLIK TEMA — Destek ===== */
/* Yalnızca açık yüzeyler çevrilir. Aurora hero (zaten koyu),
   marka gradyanları/butonları, aksan renkleri (yeşil/amber/kırmızı)
   ve gradyan metin DOKUNULMADAN bırakılır. */

/* ── Açık bölüm zeminleri ── */
[data-bs-theme="dark"] .destek .quick-channels,
[data-bs-theme="dark"] .destek .destek-form-section {
    background: var(--darker-bg);
}

[data-bs-theme="dark"] .destek .faq-section {
    background: var(--dark-bg);
}

/* ── Kanal kartları ── */
[data-bs-theme="dark"] .destek .channel-card {
    background: var(--surface);
    border-color: var(--surface-border);
}

    [data-bs-theme="dark"] .destek .channel-card:hover {
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
    }

[data-bs-theme="dark"] .destek .channel-text h4 {
    color: var(--text-color);
}

[data-bs-theme="dark"] .destek .channel-text span {
    color: var(--text-color);
}

[data-bs-theme="dark"] .destek .channel-text small {
    color: var(--text-muted);
}

/* ── Form başlık/altyazı ── */
[data-bs-theme="dark"] .destek .form-title {
    color: var(--text-color);
}

[data-bs-theme="dark"] .destek .form-subtitle,
[data-bs-theme="dark"] .destek .section-subtitle {
    color: var(--text-muted);
}

[data-bs-theme="dark"] .destek .section-title {
    color: var(--text-color);
}

/* ── Form kapsayıcı ── */
[data-bs-theme="dark"] .destek .destek-form {
    background: var(--surface);
    border-color: var(--surface-border);
    box-shadow: var(--shadow-soft);
}

[data-bs-theme="dark"] .destek .form-label {
    color: var(--text-color);
}

/* ── Form alanları ── */
[data-bs-theme="dark"] .destek .destek-form .form-control {
    background: var(--surface-2);
    border-color: var(--surface-border);
    color: var(--text-color);
}

    [data-bs-theme="dark"] .destek .destek-form .form-control::placeholder {
        color: var(--text-muted);
    }

    [data-bs-theme="dark"] .destek .destek-form .form-control:focus {
        background: var(--surface);
        border-color: #0d6efd;
    }

[data-bs-theme="dark"] .destek .form-icon {
    color: var(--text-muted);
}

/* Select açılır ok — koyu temada gri ile uyumlu */
[data-bs-theme="dark"] .destek .form-select-custom {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%239aa7bd' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
}

/* ── Aciliyet chip (seçilmemiş hâli) ── */
[data-bs-theme="dark"] .destek .urgency-chip {
    background: var(--surface-2);
    border-color: var(--surface-border);
    color: var(--text-muted);
}

[data-bs-theme="dark"] .destek .urgency-chip:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

/* ── KVKK metni ── */
[data-bs-theme="dark"] .destek .kvkk-check span {
    color: var(--text-muted);
}

/* ── SSS (accordion) ── */
[data-bs-theme="dark"] .destek .faq-item {
    background: var(--surface-2);
    border-color: var(--surface-border);
}

    [data-bs-theme="dark"] .destek .faq-item[open] {
        background: var(--surface);
        border-color: rgba(13, 110, 253, 0.40);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
    }

    [data-bs-theme="dark"] .destek .faq-item summary {
        color: var(--text-color);
    }

    [data-bs-theme="dark"] .destek .faq-item p {
        color: var(--text-muted);
    }

/* ── Form notu ── */
[data-bs-theme="dark"] .destek .form-note {
    color: var(--text-muted);
}

/* ══════════════════════════════════════════════════════════════════
   DESTEK SİSTEMİ — giriş yapmış müşteri kipi + dosya eki  28.07.2026
   ------------------------------------------------------------------
   Müşteri giriş yapmışsa kişisel alanlar sorulmaz; onların yerine
   kimlik şeridi ve "ilgili hizmet" seçimi gelir (bkz. DestekVM).
   ══════════════════════════════════════════════════════════════════ */

/* Kimlik şeridi — "bu talebi kim açıyor" */
.destek-kimlik {
    display: flex;
    align-items: center;
    gap: .9rem;
    flex-wrap: wrap;
    padding: 1rem 1.15rem;
    border-radius: 16px;
    border: 1px solid rgba(13, 110, 253, .28);
    background: rgba(13, 110, 253, .07);
}

.destek-kimlik > i {
    flex: 0 0 auto;
    font-size: 1.5rem;
    color: #0d6efd;
}

.destek-kimlik strong {
    display: block;
    font-size: .98rem;
    font-weight: 700;
    line-height: 1.3;
}

.destek-kimlik small {
    display: block;
    margin-top: .1rem;
    font-size: .84rem;
    opacity: .8;
}

.destek-kimlik-link {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .88rem;
    font-weight: 700;
    color: #0d6efd;
    text-decoration: none;
    white-space: nowrap;
}

.destek-kimlik-link:hover {
    text-decoration: underline;
}

[data-bs-theme="dark"] .destek-kimlik {
    border-color: rgba(96, 165, 250, .3);
    background: rgba(96, 165, 250, .1);
}

[data-bs-theme="dark"] .destek-kimlik > i,
[data-bs-theme="dark"] .destek-kimlik-link {
    color: #60a5fa;
}

/* Dosya eki alanı — sınır metni helper'dan gelir, buraya YAZILMAZ */
.destek-dosya small {
    display: block;
    margin-top: .45rem;
    font-size: .82rem;
    line-height: 1.5;
    opacity: .75;
}

.destek-dosya small i {
    margin-right: .25rem;
}

.form-label-not {
    font-weight: 400;
    opacity: .7;
}
