/* =====================================================================
   Destek (Support / FAQ) sayfasi — .destek-* layer
   - bx-main kabugu icinde calisir (max-width 1320 + side padding layout'tan)
   - Tokens: wwwroot/css/shared/binderim-tokens.css (light/dark otomatik)
   - HTML <details>/<summary> accordion + kategori kartlari + destek formu
   T-20260612-12
   ===================================================================== */

.destek-page { padding-bottom: 40px; }

/* ---------- Hero ---------- */
.destek-hero {
    margin: 4px 0 22px;
    padding: 24px 28px;
    border-radius: 20px;
    background: var(--bg-canvas);
    border: 1px solid var(--border-1);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 22px;
    position: relative;
    overflow: hidden;
}

.destek-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(80% 90% at 0% 0%, color-mix(in oklch, var(--color-brand) 14%, transparent), transparent 60%),
        radial-gradient(60% 80% at 100% 100%, color-mix(in oklch, var(--violet-600) 12%, transparent), transparent 65%);
    opacity: 0.5;
    pointer-events: none;
}

.destek-hero > * { position: relative; }

.destek-hero-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--grad-feature);
    color: #fff;
    font-size: 26px;
    box-shadow: var(--shadow-lg);
    flex-shrink: 0;
}

.destek-hero-text { flex: 1; min-width: 0; }

.destek-hero-eyebrow {
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.14em;
    color: var(--color-brand);
    text-transform: uppercase;
}

.destek-hero-title {
    margin: 4px 0 6px;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.6px;
    color: var(--fg-1);
}

.destek-hero-sub {
    margin: 0;
    font-size: 14px;
    color: var(--fg-3);
    line-height: 1.6;
    max-width: 720px;
}

.destek-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 20px;
    border-radius: 12px;
    background: var(--grad-feature);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: var(--shadow-brand);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    flex-shrink: 0;
}

.destek-hero-cta:hover,
.destek-hero-cta:focus {
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 10px 28px rgba(99, 102, 241, 0.32);
}

/* ---------- Kategori kartlari (kare grid) ---------- */
.destek-cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 14px;
    margin-bottom: 34px;
}

.destek-cat-card {
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px;
    border-radius: 16px;
    background: var(--bg-canvas);
    border: 1px solid var(--border-1);
    box-shadow: var(--shadow-xs);
    text-align: center;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.destek-cat-card:hover,
.destek-cat-card:focus {
    text-decoration: none;
    transform: translateY(-3px);
    border-color: color-mix(in oklch, var(--color-brand) 45%, var(--border-1));
    box-shadow: var(--shadow-md);
}

.destek-cat-icon {
    width: 48px;
    height: 48px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    background: var(--bg-tint);
    color: var(--color-brand);
    transition: background 0.15s ease, color 0.15s ease;
}

.destek-cat-card:hover .destek-cat-icon {
    background: var(--grad-feature);
    color: #fff;
}

.destek-cat-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--fg-2);
    line-height: 1.35;
}

.destek-cat-card:hover .destek-cat-name { color: var(--fg-1); }

/* "Destek Talebi Gönder" kartı vurgulu */
.destek-cat-card-accent {
    background: var(--grad-feature);
    border-color: transparent;
}

.destek-cat-card-accent .destek-cat-icon {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.destek-cat-card-accent .destek-cat-name { color: #fff; }

.destek-cat-card-accent:hover .destek-cat-icon { background: rgba(255, 255, 255, 0.28); color: #fff; }
.destek-cat-card-accent:hover .destek-cat-name { color: #fff; }

/* ---------- SSS bolumleri ---------- */
.destek-section {
    margin-bottom: 34px;
    scroll-margin-top: 96px; /* sticky header alti */
}

.destek-section h2 {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--fg-1);
    font-weight: 800;
    font-size: 19px;
    letter-spacing: -0.3px;
    border-bottom: 2px solid color-mix(in oklch, var(--color-brand) 35%, var(--border-1));
    padding-bottom: 10px;
    margin-bottom: 14px;
}

.destek-section h2 i { color: var(--color-brand); font-size: 18px; }

/* ---------- FAQ accordion ---------- */
.destek-faq {
    background: var(--bg-canvas);
    border: 1px solid var(--border-1);
    border-radius: 12px;
    margin-bottom: 10px;
    overflow: hidden;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.destek-faq[open] {
    border-color: color-mix(in oklch, var(--color-brand) 45%, var(--border-1));
    box-shadow: var(--shadow-md);
}

.destek-faq summary {
    cursor: pointer;
    padding: 14px 18px;
    font-weight: 600;
    font-size: 14.5px;
    color: var(--fg-1);
    list-style: none;
    position: relative;
    padding-right: 44px;
    line-height: 1.5;
    user-select: none;
}

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

/* Chevron */
.destek-faq summary::after {
    content: "";
    position: absolute;
    right: 18px;
    top: 50%;
    width: 0.65rem;
    height: 0.65rem;
    border-right: 2px solid var(--color-brand);
    border-bottom: 2px solid var(--color-brand);
    transform: translateY(-65%) rotate(45deg);
    transition: transform 0.2s ease;
}

.destek-faq[open] summary::after { transform: translateY(-25%) rotate(-135deg); }

.destek-faq summary:hover { background-color: var(--bg-sunken); }

.destek-answer {
    padding: 0 18px 16px;
    color: var(--fg-2);
    font-size: 14px;
    line-height: 1.75;
}

.destek-answer p { margin-bottom: 10px; }
.destek-answer p:last-child { margin-bottom: 0; }

.destek-answer a {
    color: var(--color-brand);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.destek-answer a:hover { color: var(--color-brand-hover); }

.destek-answer code {
    background: var(--bg-sunken);
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    font-size: 0.92em;
    color: var(--color-brand-fg);
}

/* ---------- Destek talebi formu ---------- */
.destek-form-section {
    margin-top: 44px;
    padding: 28px;
    border-radius: 20px;
    background: var(--bg-canvas);
    border: 1px solid var(--border-1);
    box-shadow: var(--shadow-sm);
    scroll-margin-top: 96px;
    position: relative;
    overflow: hidden;
}

.destek-form-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(70% 60% at 100% 0%, color-mix(in oklch, var(--color-brand) 9%, transparent), transparent 60%);
    pointer-events: none;
}

.destek-form-section > * { position: relative; }

.destek-form-head h2 {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 6px;
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -0.4px;
    color: var(--fg-1);
}

.destek-form-head h2 i { color: var(--color-brand); }

.destek-form-head p {
    margin: 0 0 20px;
    font-size: 14px;
    color: var(--fg-3);
    line-height: 1.6;
    max-width: 680px;
}

/* Alerts */
.destek-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 13px 16px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.55;
    margin-bottom: 18px;
}

.destek-alert i { font-size: 16px; margin-top: 1px; }

.destek-alert ul {
    margin: 0;
    padding-left: 18px;
}

.destek-alert-success {
    background: var(--color-success-soft);
    border: 1px solid color-mix(in oklch, var(--color-success) 40%, transparent);
    color: var(--success-600);
}

.destek-alert-error {
    background: var(--color-danger-soft);
    border: 1px solid color-mix(in oklch, var(--color-danger) 40%, transparent);
    color: var(--danger-600);
}

.theme-dark .destek-alert-success {
    background: color-mix(in oklch, var(--color-success) 16%, transparent);
    color: #6ee7b7;
}

.theme-dark .destek-alert-error {
    background: color-mix(in oklch, var(--color-danger) 16%, transparent);
    color: #fca5a5;
}

/* Honeypot: ekran disinda; display:none KULLANMA (bazi botlar atlar) */
.destek-hp {
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Fields */
.destek-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.destek-field { margin-bottom: 16px; }

.destek-field label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--fg-1);
    margin-bottom: 6px;
}

.destek-required { color: var(--color-danger); }

.destek-optional {
    color: var(--fg-4);
    font-weight: 500;
}

.destek-field input[type="text"],
.destek-field input[type="email"],
.destek-field select,
.destek-field textarea {
    width: 100%;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid var(--border-2);
    background: var(--bg-app);
    color: var(--fg-1);
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 1.5;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.destek-field input::placeholder,
.destek-field textarea::placeholder { color: var(--fg-4); }

.destek-field input:focus,
.destek-field select:focus,
.destek-field textarea:focus {
    border-color: var(--color-brand);
    box-shadow: var(--focus-ring);
}

.destek-field textarea { resize: vertical; min-height: 130px; }

.destek-hint {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: var(--fg-4);
}

/* File drop */
.destek-file-drop {
    position: relative;
    border: 1.5px dashed var(--border-2);
    border-radius: 12px;
    background: var(--bg-app);
    transition: border-color 0.15s ease, background 0.15s ease;
}

.destek-file-drop:hover,
.destek-file-drop.destek-file-drop-over {
    border-color: var(--color-brand);
    background: var(--bg-tint);
}

.destek-file-drop input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.destek-file-drop-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 22px 16px;
    text-align: center;
    pointer-events: none;
}

.destek-file-drop-inner i { font-size: 24px; color: var(--color-brand); }

.destek-file-drop-inner span {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--fg-2);
}

.destek-file-drop-inner small {
    font-size: 12px;
    color: var(--fg-4);
}

.destek-file-error {
    margin-top: 8px;
    padding: 9px 13px;
    border-radius: 10px;
    background: var(--color-danger-soft);
    border: 1px solid color-mix(in oklch, var(--color-danger) 40%, transparent);
    color: var(--danger-600);
    font-size: 13px;
    line-height: 1.5;
}

.theme-dark .destek-file-error {
    background: color-mix(in oklch, var(--color-danger) 16%, transparent);
    color: #fca5a5;
}

.destek-file-list {
    list-style: none;
    margin: 10px 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.destek-file-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 10px;
    border-radius: 10px;
    background: var(--bg-sunken);
    border: 1px solid var(--border-1);
    max-width: 100%;
}

.destek-file-thumb {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--bg-canvas);
}

.destek-file-meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.destek-file-name {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--fg-2);
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.destek-file-size {
    font-size: 11.5px;
    color: var(--fg-4);
}

.destek-file-remove {
    border: 0;
    background: transparent;
    color: var(--fg-3);
    font-size: 15px;
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    line-height: 1;
    flex-shrink: 0;
}

.destek-file-remove:hover {
    color: var(--color-danger);
    background: var(--color-danger-soft);
}

/* Submit */
.destek-form-actions { margin-top: 6px; }

.destek-submit {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 12px 26px;
    border: 0;
    border-radius: 12px;
    background: var(--grad-feature);
    color: #fff;
    font-weight: 700;
    font-size: 14.5px;
    font-family: var(--font-sans);
    cursor: pointer;
    box-shadow: var(--shadow-brand);
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.destek-submit:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 10px 28px rgba(99, 102, 241, 0.32);
}

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

.destek-form-note {
    margin: 14px 0 0;
    font-size: 12.5px;
    color: var(--fg-4);
    line-height: 1.6;
}

.destek-form-note a { color: var(--color-brand); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .destek-hero {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        padding: 20px;
    }

    .destek-hero-title { font-size: 23px; }
}

@media (max-width: 600px) {
    .destek-cat-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
    }

    .destek-cat-icon { width: 40px; height: 40px; font-size: 18px; border-radius: 11px; }
    .destek-cat-name { font-size: 12px; }

    .destek-section h2 { font-size: 17px; }

    .destek-faq summary {
        padding: 12px 14px;
        padding-right: 38px;
        font-size: 14px;
    }

    .destek-faq summary::after { right: 14px; }

    .destek-answer { padding: 0 14px 14px; font-size: 13.5px; }

    .destek-form-section { padding: 20px 16px; }

    .destek-form-row { grid-template-columns: 1fr; gap: 0; }

    .destek-file-name { max-width: 130px; }
}

/* site.css çıplak `main` kuralı ≤576px'te yatay padding'i SIFIRLAR
   (bkz. price-comparison/index.css + card/details.css notları); burada telafi et. */
@media (max-width: 576px) {
    .destek-page { padding: 0 14px 40px; }
}
