/* ═══════════════════════════════════════════════════════════
   GuideAI — Frontend GEO İçerik Stilleri
   ═══════════════════════════════════════════════════════════ */

:root {
    --guideai-primary: #1e6b52;
    --guideai-primary-dark: #144a39;
    --guideai-accent: #c8963e;
    --guideai-bg-soft: #f2f8f5;
    --guideai-border: #d7e6df;
    --guideai-warn-bg: #fff8e1;
    --guideai-warn-border: #ffb300;
    --guideai-text: #1c2b26;
}

.guideai-quick-answer {
    background: var(--guideai-bg-soft);
    border-left: 5px solid var(--guideai-primary);
    padding: 16px 20px;
    margin: 0 0 24px;
    border-radius: 8px;
    font-size: 1.05em;
    font-weight: 500;
    line-height: 1.65;
    color: var(--guideai-text);
}

article h2, .entry-content h2, .post-content h2 {
    color: var(--guideai-primary-dark);
    border-bottom: 2px solid var(--guideai-border);
    padding-bottom: 8px;
    margin-top: 34px;
}

/* ─── Tablolar (Hızlı Bilgiler / Ücret) ─────────────────────────── */
article table, .entry-content table, .post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 18px 0 26px;
    font-size: 0.95em;
}
article table caption, .entry-content table caption, .post-content table caption {
    caption-side: top;
    text-align: left;
    font-weight: 700;
    padding-bottom: 8px;
    color: var(--guideai-primary-dark);
}
article table th, article table td,
.entry-content table th, .entry-content table td,
.post-content table th, .post-content table td {
    border: 1px solid var(--guideai-border);
    padding: 10px 14px;
    text-align: left;
}
article table th, .entry-content table th, .post-content table th {
    background: var(--guideai-bg-soft);
    font-weight: 700;
    color: var(--guideai-primary-dark);
}
article table tr:nth-child(even) td,
.entry-content table tr:nth-child(even) td,
.post-content table tr:nth-child(even) td {
    background: #fafcfb;
}

/* ─── Checklist / Belge Listeleri ───────────────────────────────── */
article ul li, .entry-content ul li, .post-content ul li {
    line-height: 1.65;
    margin-bottom: 8px;
}
article ol li, .entry-content ol li, .post-content ol li {
    line-height: 1.7;
    margin-bottom: 12px;
    padding-left: 4px;
}

/* ─── SSS (FAQ) ──────────────────────────────────────────────────── */
details.guideai-faq {
    border: 1px solid var(--guideai-border);
    border-radius: 8px;
    margin-bottom: 10px;
    background: #fff;
    overflow: hidden;
}
details.guideai-faq summary {
    padding: 14px 18px;
    cursor: pointer;
    font-weight: 600;
    list-style: none;
    background: var(--guideai-bg-soft);
    color: var(--guideai-primary-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
details.guideai-faq summary::-webkit-details-marker { display: none; }
details.guideai-faq summary::after {
    content: "+";
    font-size: 1.3em;
    font-weight: 700;
    color: var(--guideai-accent);
}
details.guideai-faq[open] summary::after { content: "−"; }
details.guideai-faq .guideai-faq-answer {
    padding: 14px 18px;
    line-height: 1.65;
    color: var(--guideai-text);
}

/* ─── İlgili İşlemler / Resmi Kaynaklar ──────────────────────────── */
ul.guideai-related-links, ul.guideai-official-sources {
    list-style: none;
    margin: 14px 0 26px;
    padding: 0;
}
ul.guideai-related-links li, ul.guideai-official-sources li {
    padding: 12px 16px;
    margin-bottom: 8px;
    border-left: 4px solid var(--guideai-primary);
    background: var(--guideai-bg-soft);
    border-radius: 6px;
    font-size: 0.95em;
}
ul.guideai-official-sources li {
    border-left-color: var(--guideai-accent);
    font-weight: 600;
    color: var(--guideai-primary-dark);
}
ul.guideai-related-links li a {
    color: var(--guideai-primary-dark);
    font-weight: 600;
    text-decoration: underline;
}

/* ─── Hukuki Dayanak ─────────────────────────────────────────────── */
ul.guideai-legal-basis {
    list-style: none;
    margin: 14px 0 26px;
    padding: 0;
}
ul.guideai-legal-basis li {
    padding: 12px 16px;
    margin-bottom: 8px;
    border-left: 4px solid var(--guideai-primary-dark);
    background: var(--guideai-bg-soft);
    border-radius: 6px;
    font-size: 0.95em;
    color: var(--guideai-primary-dark);
}

/* ─── Kaynak Güveni kutusu ───────────────────────────────────────── */
.guideai-trust-box {
    background: var(--guideai-warn-bg);
    border: 1px solid var(--guideai-warn-border);
    border-radius: 8px;
    padding: 14px 18px;
    margin: 24px 0;
    font-size: 0.9em;
    color: var(--guideai-text);
}
.guideai-trust-box p { margin: 0; }

/* ─── Son Güncelleme kutusu ──────────────────────────────────────── */
.guideai-updated-box {
    background: #fafcfb;
    border: 1px solid var(--guideai-border);
    border-radius: 8px;
    padding: 14px 18px;
    margin: 12px 0 28px;
    font-size: 0.85em;
    color: #555;
}
.guideai-updated-box ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
}
.guideai-updated-box li { margin: 0; }
.guideai-updated-box strong { color: var(--guideai-primary-dark); }

/* ═══════════════════════════════════════════════════════════
   GuideAI — Admin Panel Stilleri
   ═══════════════════════════════════════════════════════════ */

.guideai-wrap {
    max-width: 1200px;
    margin: 20px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.guideai-header {
    background: #fff;
    padding: 20px 25px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-left: 5px solid var(--guideai-primary);
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.guideai-header h1 { margin: 0; font-size: 20px; color: var(--guideai-primary-dark); }
.guideai-header .button-primary {
    background: var(--guideai-primary);
    border-color: var(--guideai-primary-dark);
}

.guideai-nav {
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
}
.guideai-nav a {
    padding: 10px 16px;
    display: inline-block;
    color: #666;
    text-decoration: none;
    border-bottom: 3px solid transparent;
    font-weight: 600;
    cursor: pointer;
    margin: 5px 5px 0 0;
    font-size: 14px;
}
.guideai-nav a.active {
    border-bottom-color: var(--guideai-primary);
    color: var(--guideai-primary);
    background: var(--guideai-bg-soft);
    border-radius: 6px 6px 0 0;
}

.guideai-card {
    background: #fff;
    padding: 22px 24px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
    margin-bottom: 20px;
}
.guideai-card h3 { margin-top: 0; border-bottom: 2px solid var(--guideai-bg-soft); padding-bottom: 10px; }
.guideai-card-highlight {
    background: #fdf6ea;
    border-left: 4px solid var(--guideai-accent);
}

.guideai-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}
.guideai-stat-box {
    background: #fafafa;
    padding: 18px;
    border-radius: 10px;
    border-top: 4px solid #ccc;
    text-align: center;
}
.guideai-stat-box span {
    font-size: 11px;
    color: #888;
    font-weight: 600;
    text-transform: uppercase;
}
.guideai-stat-box strong {
    display: block;
    font-size: 30px;
    font-weight: 800;
    margin-top: 6px;
}

.guideai-badge {
    background: var(--guideai-bg-soft);
    color: var(--guideai-primary-dark);
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
}

.guideai-api-stats {
    background: var(--guideai-bg-soft);
    padding: 10px 15px;
    border-radius: 6px;
    margin: 10px 0;
    font-size: 13px;
    border-left: 3px solid var(--guideai-primary);
}

.guideai-textarea-lg { width: 100%; height: 120px; font-family: monospace; font-size: 12px; }
.guideai-textarea-md { width: 100%; height: 90px; font-family: monospace; font-size: 12px; }

.guideai-title-block { margin-bottom: 18px; }
.guideai-title-block-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 5px; }
.guideai-title-box { width: 100%; height: 160px; font-family: monospace; font-size: 12px; border: 1px solid #ddd; background: #fafafa; border-radius: 4px; padding: 8px; }

.guideai-log-window {
    background: #16211d;
    color: #8fd6b4;
    font-family: monospace;
    font-size: 12px;
    padding: 15px;
    height: 440px;
    overflow-y: auto;
    border-radius: 6px;
}

.guideai-block-label { display: block; margin-bottom: 8px; }
.guideai-save-row { margin-top: 10px; }

.guideai-tab-content { animation: guideai-fade .15s ease-in; }
@keyframes guideai-fade { from { opacity: 0; } to { opacity: 1; } }
