/* ==========================================================================
   YARDIM SAYFASI — Premium Redesign
   ========================================================================== */

/* ── Hero Section ────────────────────────────────────────────────────────── */
.help-hero-section { padding: 5rem 0 3rem; }

/* ── Help Hero ───────────────────────────────────────────────────────────── */
.help-hero { text-align: center; margin-bottom: 4rem; }
.help-hero .hero-title { margin-bottom: 1rem; }
.help-hero .hero-desc {
    margin-inline: auto;
    max-width: 520px;
    margin-bottom: 2rem;
}

/* ── Category Cards ──────────────────────────────────────────────────────── */
.help-cats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-top: 0;
}
@media (max-width: 1024px) { .help-cats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .help-cats { grid-template-columns: 1fr; } }

.help-cat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
    padding: 2rem 1.5rem;
    border-radius: var(--radius-xl);
    background: rgba(255,255,255,0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.45);
    box-shadow: 0 4px 24px rgba(0,0,0,0.05);
    transition: transform 0.3s cubic-bezier(0.16,1,0.3,1), box-shadow 0.3s ease;
}
.help-cat-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}
[data-mode="dark"] .help-cat-card {
    background: rgba(22,24,30,0.6);
    border-color: rgba(255,255,255,0.07);
    box-shadow: 0 4px 24px rgba(0,0,0,0.25);
}
[data-mode="dark"] .help-cat-card:hover {
    box-shadow: 0 12px 40px rgba(0,0,0,0.45);
}
.help-cat-icon {
    font-size: 2rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px; height: 60px;
    border-radius: var(--radius-lg);
    background: rgba(var(--brand-primary-rgb), 0.08);
    margin-bottom: 0.25rem;
}
[data-mode="dark"] .help-cat-icon { background: rgba(var(--brand-primary-rgb), 0.18); }
.help-cat-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
}
.help-cat-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
    flex: 1;
}


/* ── Search Box ──────────────────────────────────────────────────────────── */
.help-search {
    display: flex;
    align-items: center;
    max-width: 520px;
    margin: 0 auto;
    background: rgba(255,255,255,0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1.5px solid rgba(255,255,255,0.5);
    border-radius: var(--radius-full);
    padding: 0.6rem 1.25rem;
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
    gap: 0.75rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.help-search:focus-within {
    border-color: var(--brand-primary);
    box-shadow: 0 4px 24px rgba(var(--brand-primary-rgb), 0.12);
}
[data-mode="dark"] .help-search {
    background: rgba(22,24,30,0.7);
    border-color: rgba(255,255,255,0.1);
}
[data-mode="dark"] .help-search:focus-within {
    border-color: var(--brand-primary);
}
.help-search i { color: var(--text-muted); font-size: 1rem; flex-shrink: 0; }
.help-search input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--text-main);
}
.help-search input::placeholder { color: var(--text-muted); }

/* ── FAQ Content Section & Layout ───────────────────────────────────────── */
.help-content-section { padding: 3rem 0 7rem; }

.help-layout {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
}

/* Sidebar */
.help-sidebar {
    width: 280px;
    flex-shrink: 0;
    position: sticky;
    top: 6rem; /* Header altına yapışması için */
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    box-shadow: 0 4px 24px rgba(0,0,0,0.03);
}
[data-mode="dark"] .help-sidebar {
    box-shadow: 0 4px 24px rgba(0,0,0,0.15);
}

.sidebar-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.help-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.help-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.2s ease;
}
.help-nav-link .nav-icon {
    display: flex;
    color: var(--text-muted);
}
.help-nav-link:hover {
    background: rgba(var(--brand-primary-rgb), 0.05);
    color: var(--brand-primary);
}
.help-nav-link.active {
    background: rgba(var(--brand-primary-rgb), 0.1);
    color: var(--brand-primary);
    font-weight: 600;
}
.help-nav-link.active .nav-icon,
.help-nav-link:hover .nav-icon {
    color: var(--brand-primary);
}

/* Articles Area */
.help-articles {
    flex: 1;
    min-width: 0;
}

.help-category-block {
    margin-bottom: 4rem;
    scroll-margin-top: 6rem;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.cat-icon-large {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px; height: 48px;
    border-radius: var(--radius-lg);
    background: rgba(var(--brand-primary-rgb), 0.08);
    color: var(--brand-primary);
}
.category-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
}

.faq-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq-item {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    cursor: pointer;
}
.faq-item:hover {
    border-color: rgba(var(--brand-primary-rgb), 0.3);
    box-shadow: 0 4px 16px rgba(var(--brand-primary-rgb), 0.07);
}

/* Mobil Uyum */
@media (max-width: 900px) {
    .help-layout {
        flex-direction: column;
    }
    .help-sidebar {
        width: 100%;
        position: static;
        margin-bottom: 2rem;
    }
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.4rem 1.75rem;
    gap: 1rem;
}
.faq-question h4 {
    font-weight: 700;
    font-size: 0.975rem;
    color: var(--text-main);
    margin: 0;
    line-height: 1.4;
}
.faq-toggle {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: rgba(var(--brand-primary-rgb), 0.08);
    color: var(--brand-primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
    transition: transform 0.25s ease, background 0.2s ease;
}

.faq-answer {
    padding: 0 1.75rem 1.4rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.75;
}

/* Accordion JS ile açıkken */
.faq-item.open .faq-toggle {
    background: rgba(var(--brand-primary-rgb), 0.15);
    transform: rotate(45deg);
}
.faq-item .faq-answer { display: none; }
.faq-item.open .faq-answer { display: block; }

/* ── CTA Banner ──────────────────────────────────────────────────────────── */
.help-cta {
    max-width: 780px;
    margin: 2.5rem auto 0;
    padding: 2rem 2.5rem;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, rgba(var(--brand-primary-rgb),0.08) 0%, rgba(var(--brand-accent-rgb),0.06) 100%);
    border: 1px solid rgba(var(--brand-primary-rgb), 0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}
[data-mode="dark"] .help-cta {
    background: linear-gradient(135deg, rgba(var(--brand-primary-rgb),0.15) 0%, rgba(var(--brand-accent-rgb),0.08) 100%);
    border-color: rgba(var(--brand-primary-rgb), 0.25);
}
.help-cta-text h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.25rem;
}
.help-cta-text p {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0;
}

@media (max-width: 600px) {
    .help-cta { flex-direction: column; text-align: center; }
    .help-cta .btn { width: 100%; justify-content: center; }
}

/* ── Makale (Article) Görünümü ───────────────────────────────────────────── */

/* Hero / Breadcrumb Bant */
.article-hero-section {
    padding: 1.5rem 0;
    background: var(--card-bg);
    border-bottom: 1px solid var(--border);
}

.article-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    flex-wrap: wrap;
}
.article-breadcrumb a {
    color: var(--brand-primary);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s;
}
.article-breadcrumb a:hover { opacity: 0.75; }
.article-breadcrumb .sep { color: var(--text-muted); }
.article-breadcrumb .current {
    color: var(--text-main);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 260px;
}

/* Makale İçerik Section */
.article-content-section { padding: 3rem 0 7rem; }

/* Makale sidebar'ının nav linkleri küçük metin ile */
.article-sidebar .help-nav-link {
    font-size: 0.875rem;
    line-height: 1.4;
    align-items: flex-start;
}
.article-sidebar .help-nav-link.active {
    background: rgba(var(--brand-primary-rgb), 0.1);
    color: var(--brand-primary);
}

/* Makale Gövde Sarmalayıcısı */
.article-body-wrapper {
    max-width: 740px;
}

/* Geri Dön Butonu */
.back-to-help {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 2rem;
    font-size: 0.875rem;
}

/* Makale Başlığı */
.article-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.3;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}
@media (max-width: 600px) {
    .article-title { font-size: 1.5rem; }
}

/* Makale İçerik Gövdesi (Zengin HTML) */
.article-content {
    color: var(--text-main);
    font-size: 1rem;
    line-height: 1.85;
}
.article-content h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 2rem 0 0.75rem;
}
.article-content h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 1.5rem 0 0.5rem;
}
.article-content p {
    margin-bottom: 1.25rem;
    color: var(--text-muted);
}
.article-content ul,
.article-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1.25rem;
    color: var(--text-muted);
}
.article-content li {
    margin-bottom: 0.5rem;
    line-height: 1.75;
}
.article-content strong {
    color: var(--text-main);
    font-weight: 600;
}
.article-content em {
    color: var(--text-muted);
    font-style: italic;
}
.article-content code {
    background: rgba(var(--brand-primary-rgb), 0.08);
    color: var(--brand-primary);
    font-family: 'Fira Mono', 'Courier New', monospace;
    font-size: 0.85em;
    padding: 0.15em 0.45em;
    border-radius: 4px;
    border: 1px solid rgba(var(--brand-primary-rgb), 0.15);
}
.article-content blockquote {
    border-left: 4px solid var(--brand-primary);
    background: rgba(var(--brand-primary-rgb), 0.04);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    color: var(--text-muted);
    font-style: italic;
}
[data-mode="dark"] .article-content blockquote {
    background: rgba(var(--brand-primary-rgb), 0.08);
}

/* Yararlı Oldu mu? Widget */
.article-feedback {
    margin-top: 3.5rem;
    padding: 2rem;
    border-radius: var(--radius-xl);
    background: rgba(var(--brand-primary-rgb), 0.04);
    border: 1px solid rgba(var(--brand-primary-rgb), 0.12);
    text-align: center;
}
[data-mode="dark"] .article-feedback {
    background: rgba(var(--brand-primary-rgb), 0.08);
    border-color: rgba(var(--brand-primary-rgb), 0.2);
}
.article-feedback h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 1rem;
}
.feedback-btns {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}
.feedback-btns .btn {
    min-width: 100px;
}

/* ── Category Page: Başlık Bloğu ─────────────────────────────────────────── */
.cat-page-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--text-main);
    margin: 0 0 0.25rem;
    line-height: 1.2;
}
.cat-page-count {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0;
}
.category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: 1.75rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-light, rgba(0,0,0,0.08));
}
[data-mode="dark"] .category-header {
    border-bottom-color: rgba(255,255,255,0.07);
}

/* ── Arama Sonuç Blokları ────────────────────────────────────────────────── */
.help-search-block {
    margin-bottom: 2rem;
}
.sr-cat-label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-light, rgba(0,0,0,0.07));
}
.sr-cat-icon { opacity: 0.6; display: flex; align-items: center; }

/* ── Makale Önceki / Sonraki Navigasyon ──────────────────────────────────── */
.article-nav {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-light, rgba(0,0,0,0.08));
}
[data-mode="dark"] .article-nav {
    border-top-color: rgba(255,255,255,0.07);
}
.article-nav-item {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    max-width: 45%;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light, rgba(0,0,0,0.1));
    background: rgba(255,255,255,0.5);
    backdrop-filter: blur(10px);
    transition: all 0.2s ease;
    text-decoration: none !important;
}
[data-mode="dark"] .article-nav-item {
    background: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.07);
}
.article-nav-item:hover {
    border-color: var(--brand-primary);
    background: rgba(var(--brand-primary-rgb), 0.04);
    transform: translateY(-2px);
}
.article-nav-item.next { margin-left: auto; text-align: right; }
.nav-dir {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--brand-primary);
}
.article-nav-item.next .nav-dir { justify-content: flex-end; }
.nav-title {
    font-size: 0.85rem;
    color: var(--text-main);
    font-weight: 500;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
@media (max-width: 600px) {
    .article-nav { flex-direction: column; }
    .article-nav-item { max-width: 100%; }
    .article-nav-item.next { margin-left: 0; text-align: left; }
    .article-nav-item.next .nav-dir { justify-content: flex-start; }
}

/* ── Sidebar Kategori Geri Linki ─────────────────────────────────────────── */
.sidebar-cat-back {
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-light, rgba(0,0,0,0.08));
}
[data-mode="dark"] .sidebar-cat-back {
    border-bottom-color: rgba(255,255,255,0.07);
}
.sidebar-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--brand-primary);
    text-decoration: none;
    padding: 0.4rem 0.6rem;
    border-radius: var(--radius-md);
    transition: background 0.2s ease;
    margin-left: -0.6rem;
}
.sidebar-back-link:hover {
    background: rgba(var(--brand-primary-rgb), 0.08);
}

