/**
 * Noedent Diş Terimleri Sözlüğü — Frontend Stilleri
 * Noedent Klinik Kurumsal Yeşil & Açık Yeşil Teması
 */

:root {
    --noedent-primary: #436644;
    --noedent-primary-dark: #2f4930;
    --noedent-primary-light: #e8f5e9;
    --noedent-accent: #527953;
    --noedent-text-main: #1e293b;
    --noedent-text-muted: #526654;
    --noedent-bg-light: #f4f8f4;
    --noedent-border: #d4e5d4;
    --noedent-card-shadow: 0 4px 6px -1px rgba(67, 102, 68, 0.06), 0 2px 4px -2px rgba(67, 102, 68, 0.04);
    --noedent-hover-shadow: 0 10px 15px -3px rgba(67, 102, 68, 0.1), 0 4px 6px -4px rgba(67, 102, 68, 0.06);
}

.noedent-glossary-wrapper,
.noedent-single-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--noedent-text-main);
    line-height: 1.6;
    background-color: #ffffff;
}

.noedent-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 1. Breadcrumb */
.noedent-breadcrumb {
    font-size: 13px;
    color: var(--noedent-text-muted);
    margin-bottom: 20px;
}
.noedent-breadcrumb a {
    color: var(--noedent-primary);
    text-decoration: none;
    font-weight: 500;
}
.noedent-breadcrumb a:hover {
    text-decoration: underline;
}
.noedent-breadcrumb .sep {
    margin: 0 8px;
    color: #cbd5e1;
}

/* 2. Hero Bölümü (Açık Ferah Yeşil) */
.noedent-glossary-hero,
.noedent-single-hero {
    background: linear-gradient(135deg, #f4f9f4 0%, #eaf4ea 100%);
    padding: 48px 0 36px;
    border-bottom: 1px solid var(--noedent-border);
}

.noedent-hero-title {
    font-size: 36px;
    font-weight: 800;
    color: #1e3a1f;
    margin: 0 0 12px;
    letter-spacing: -0.02em;
}

.noedent-hero-desc {
    font-size: 17px;
    color: var(--noedent-text-muted);
    max-width: 760px;
    margin: 0 0 28px;
}

/* 3. Arama Çubuğu */
.noedent-search-bar {
    position: relative;
    max-width: 680px;
}

.noedent-search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    pointer-events: none;
}

#noedent-search-input {
    width: 100%;
    padding: 16px 45px 16px 48px;
    font-size: 16px;
    border: 2px solid #b7d6b7;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(67, 102, 68, 0.08);
    transition: all 0.2s ease;
    outline: none;
    box-sizing: border-box;
}

#noedent-search-input:focus {
    border-color: var(--noedent-primary);
    box-shadow: 0 6px 20px rgba(67, 102, 68, 0.18);
}

#noedent-search-clear {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    font-size: 22px;
    color: #94a3b8;
    cursor: pointer;
}

/* 4. Alfabe Çubuğu */
.noedent-main-body {
    padding: 40px 20px;
}

.noedent-alphabet-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 24px;
    padding: 12px;
    background: var(--noedent-bg-light);
    border-radius: 12px;
    border: 1px solid var(--noedent-border);
}

.noedent-letter-btn {
    min-width: 34px;
    height: 36px;
    padding: 0 6px;
    border: 1px solid transparent;
    background: #ffffff;
    color: #1e293b;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.noedent-letter-btn:hover {
    background: var(--noedent-primary-light);
    color: var(--noedent-primary-dark);
}

.noedent-letter-btn.active {
    background: var(--noedent-primary);
    color: #ffffff;
}

/* 5. Kategori Filtre Butonları */
.noedent-category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 32px;
}

.noedent-cat-btn {
    padding: 8px 16px;
    background: #ffffff;
    border: 1px solid var(--noedent-border);
    border-radius: 30px;
    font-size: 13px;
    font-weight: 500;
    color: var(--noedent-text-muted);
    cursor: pointer;
    transition: all 0.15s ease;
}

.noedent-cat-btn:hover {
    border-color: var(--noedent-primary);
    color: var(--noedent-primary);
}

.noedent-cat-btn.active {
    background: var(--noedent-primary);
    color: #ffffff;
    border-color: var(--noedent-primary);
}

/* 6. Terim Kartları Izgarası */
.noedent-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.noedent-card {
    background: #ffffff;
    border: 1px solid var(--noedent-border);
    border-radius: 14px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--noedent-card-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.noedent-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--noedent-hover-shadow);
    border-color: #9bc59b;
}

.noedent-badge {
    display: inline-block;
    background: #e8f5e9;
    color: #27672a;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 12px;
    border: 1px solid #c8e6c9;
}

.noedent-card-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 6px;
}

.noedent-card-title a {
    color: #1e3a1f;
    text-decoration: none;
    transition: color 0.15s ease;
}

.noedent-card-title a:hover {
    color: var(--noedent-primary);
}

.noedent-phonetic {
    display: none !important;
    font-size: 13px;
    color: #2d5a30;
    background: #eef6ee;
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 12px;
    font-family: monospace;
    border: 1px solid #d0e6d0;
}

.noedent-card-desc {
    font-size: 14px;
    color: #4b5e4d;
    margin: 0 0 20px;
    flex-grow: 1;
}

.noedent-card-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--noedent-primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.noedent-card-link:hover {
    color: var(--noedent-primary-dark);
    text-decoration: underline;
}

/* Yükleniyor / Boş Durum */
.noedent-loading,
.noedent-no-results {
    text-align: center;
    padding: 40px;
    font-size: 16px;
    color: var(--noedent-text-muted);
    grid-column: 1 / -1;
}

.noedent-loading .spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #e2e8f0;
    border-top: 3px solid var(--noedent-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 12px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 7. Tekil Terim Sayfası (Single) */
.noedent-single-title {
    font-size: 40px;
    font-weight: 800;
    color: #1e3a1f;
    margin: 0 0 10px;
}

.noedent-term-category-badge {
    display: inline-block;
    background: var(--noedent-primary);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 14px;
    text-transform: uppercase;
}

.noedent-phonetic-badge {
    display: none !important;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1px solid #c5dfc5;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 15px;
    color: #2b502d;
    font-weight: 500;
    margin-bottom: 18px;
}

.noedent-spot-box {
    background: #ffffff;
    border-left: 4px solid var(--noedent-primary);
    padding: 18px 24px;
    border-radius: 0 10px 10px 0;
    box-shadow: 0 2px 8px rgba(67, 102, 68, 0.06);
}

.noedent-spot-text {
    font-size: 18px;
    font-weight: 500;
    color: #1e293b;
    margin: 0;
    line-height: 1.55;
}

.noedent-single-body {
    padding: 48px 20px 80px;
}

.noedent-section {
    margin-bottom: 48px;
}

.noedent-section-title {
    font-size: 26px;
    font-weight: 700;
    color: #1e3a1f;
    margin: 0 0 16px;
    position: relative;
    padding-bottom: 8px;
    border-bottom: 2px solid #e1ede1;
}

.noedent-section-sub {
    font-size: 15px;
    color: var(--noedent-text-muted);
    margin: -8px 0 24px;
}

.noedent-article-text {
    font-size: 17px;
    line-height: 1.8;
    color: #334155;
}

.noedent-article-text p {
    margin-bottom: 20px;
}

/* Otomatik Çapraz Linkleme Stili */
.noedent-term-crosslink {
    color: #2b5b2e;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px dashed #436644;
    padding-bottom: 1px;
    transition: all 0.15s ease;
}

.noedent-term-crosslink:hover {
    background-color: #e8f5e9;
    color: #1e3a1f;
    border-bottom-style: solid;
}

/* 8. Hızlı Bilgi Izgarası (Grid) */
.noedent-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.noedent-info-card {
    background: #f8faf8;
    border: 1px solid #dbe8db;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.2s ease;
}

.noedent-info-card:hover {
    background: #ffffff;
    border-color: #b7d6b7;
    box-shadow: 0 4px 10px rgba(67, 102, 68, 0.08);
}

.noedent-info-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.noedent-info-header .info-icon {
    font-size: 22px;
}

.noedent-info-header .info-title {
    font-size: 16px;
    font-weight: 700;
    color: #1e3a1f;
    margin: 0;
}

.noedent-info-card .info-body p {
    font-size: 14px;
    color: #374151;
    margin: 0;
    line-height: 1.6;
}

/* 9. Sıkça Sorulan Sorular (Akordeon) — TEMA ÇAKIŞMALARINA KARŞI GÜÇLENDİRİLMİŞ SPECIFICITY */
.noedent-accordion {
    border: 1px solid #cde0cd !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    background: #ffffff !important;
}

.noedent-accordion-item {
    border-bottom: 1px solid #e1ede1 !important;
}

.noedent-accordion-item:last-child {
    border-bottom: none !important;
}

/* Başlık butonu - normal ve hover durumunda yazı kesinlikle kaybolmaz */
button.noedent-accordion-header,
.noedent-accordion-header {
    width: 100% !important;
    padding: 18px 24px !important;
    background: #ffffff !important;
    border: none !important;
    text-align: left !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    cursor: pointer !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    transition: background-color 0.2s ease !important;
    box-shadow: none !important;
    outline: none !important;
}

button.noedent-accordion-header:hover,
button.noedent-accordion-header:focus,
button.noedent-accordion-header:active,
.noedent-accordion-header:hover,
.noedent-accordion-header:focus,
.noedent-accordion-header:active {
    background: #f1f8f3 !important;
    color: #1e3a1f !important;
}

.noedent-accordion-header .faq-question {
    color: #1e293b !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    display: inline-block !important;
    background: transparent !important;
    transition: color 0.2s ease !important;
}

button.noedent-accordion-header:hover .faq-question,
button.noedent-accordion-header:focus .faq-question,
button.noedent-accordion-header:active .faq-question,
.noedent-accordion-header:hover .faq-question {
    color: #1e3a1f !important;
    background: transparent !important;
}

.noedent-accordion-header .faq-arrow {
    font-size: 13px !important;
    color: var(--noedent-primary) !important;
    transition: transform 0.25s ease, color 0.2s ease !important;
    display: inline-block !important;
}

.noedent-accordion-header:hover .faq-arrow {
    color: var(--noedent-primary-dark) !important;
}

.noedent-accordion-item.active .noedent-accordion-header {
    background: #f1f8f3 !important;
}

.noedent-accordion-item.active .noedent-accordion-header .faq-question {
    color: #1e3a1f !important;
}

.noedent-accordion-item.active .noedent-accordion-header .faq-arrow {
    transform: rotate(180deg) !important;
}

.noedent-accordion-body {
    padding: 0 24px 20px !important;
    background: #ffffff !important;
}

.noedent-accordion-body p {
    font-size: 15px !important;
    color: #374151 !important;
    margin: 0 !important;
    line-height: 1.65 !important;
}

/* 10. Noedent Yerel SEO ve CTA Kartı (Ferah Yeşil / Açık Yeşil Teması) */
.noedent-cta-box,
.noedent-archive-cta {
    background: linear-gradient(135deg, #f2f8f2 0%, #e5f1e5 100%) !important;
    border: 2px solid #b7d6b7 !important;
    border-radius: 16px !important;
    padding: 40px !important;
    color: #1c381e !important;
    box-shadow: 0 10px 25px rgba(67, 102, 68, 0.08) !important;
}

.noedent-cta-tag {
    display: inline-block !important;
    background: #d8ebd8 !important;
    color: #275229 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    padding: 5px 14px !important;
    border-radius: 20px !important;
    margin-bottom: 14px !important;
    border: 1px solid #b7d6b7 !important;
}

.noedent-cta-title,
.noedent-archive-cta h3 {
    font-size: 28px !important;
    font-weight: 800 !important;
    color: #18331a !important;
    margin: 0 0 12px !important;
}

.noedent-cta-desc,
.noedent-archive-cta p {
    font-size: 16px !important;
    color: #3b5a3d !important;
    max-width: 780px !important;
    margin: 0 0 28px !important;
    line-height: 1.65 !important;
}

.noedent-cta-action-buttons,
.noedent-cta-buttons {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 14px !important;
}

.noedent-cta-box .btn,
.noedent-archive-cta .btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 14px 24px !important;
    border-radius: 10px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
}

.btn-whatsapp {
    background: #25d366 !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.25) !important;
}

.btn-whatsapp:hover {
    background: #1ebc57 !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
}

.btn-call,
.btn-phone {
    background: #3c663e !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(60, 102, 62, 0.2) !important;
}

.btn-call:hover,
.btn-phone:hover {
    background: #2e5030 !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
}

.btn-service {
    background: #ffffff !important;
    color: #2b4e2d !important;
    border: 2px solid #3c663e !important;
}

.btn-service:hover {
    background: #f1f8f1 !important;
    color: #1b381d !important;
}

.noedent-back-link {
    margin-top: 32px;
}

.noedent-back-link a {
    color: var(--noedent-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
}

.noedent-back-link a:hover {
    text-decoration: underline;
}

/* Mobil Uyumluluk */
@media (max-width: 768px) {
    .noedent-hero-title,
    .noedent-single-title {
        font-size: 28px;
    }
    .noedent-spot-text {
        font-size: 16px;
    }
    .noedent-grid {
        grid-template-columns: 1fr;
    }
    .noedent-alphabet-bar {
        overflow-x: auto;
        white-space: nowrap;
        flex-wrap: nowrap;
        padding-bottom: 12px;
    }
    .noedent-cta-box,
    .noedent-archive-cta {
        padding: 24px !important;
    }
    .noedent-cta-action-buttons,
    .noedent-cta-buttons {
        flex-direction: column !important;
    }
    .noedent-cta-box .btn,
    .noedent-archive-cta .btn {
        width: 100% !important;
        justify-content: center !important;
        box-sizing: border-box !important;
    }
}
