/* ===========================================================
   Minecraft Server Kurma — pastel tema
   batihost.com/wiki ile aynı YAPI (header, kategori kartları,
   breadcrumb, içindekiler, ilgili rehberler), farklı renk paleti.
   =========================================================== */

:root {
    --bg: #FAF8FF;
    --surface: #FFFFFF;
    --surface-alt: #F1EDFC;
    --primary: #8E7CC3;
    --primary-dark: #6F5FA6;
    --primary-tint: #EDE7F9;
    --secondary: #6FCBAE;
    --secondary-tint: #E4F7EF;
    --accent: #F3A6B8;
    --accent-tint: #FCE9EE;
    --peach: #FFC98B;
    --peach-tint: #FFF1DF;
    --text: #2E2A3D;
    --text-muted: #6B6580;
    --border: #E4DEF5;
    --radius: 14px;
    --shadow: 0 2px 10px rgba(110, 95, 166, 0.08);
    --shadow-lg: 0 8px 28px rgba(110, 95, 166, 0.14);
}

* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: -apple-system, "Segoe UI", Roboto, "Inter", Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
}
a { color: var(--primary-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* ---------- Üst şerit + header ---------- */
.top-bar {
    background: var(--primary);
    color: #fff;
    font-size: 13px;
    text-align: center;
    padding: 7px 10px;
}
.top-bar a { color: #fff; font-weight: 600; text-decoration: underline; }

.site-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky; top: 0; z-index: 20;
}
.site-header .container {
    display: flex; align-items: center; justify-content: space-between;
    padding-top: 14px; padding-bottom: 14px; gap: 20px;
}
.logo { font-weight: 800; font-size: 20px; color: var(--primary-dark); display: flex; align-items: center; gap: 8px; }
.logo .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--secondary); }
.nav-links { display: flex; gap: 22px; font-size: 14px; font-weight: 600; color: var(--text-muted); }
.nav-links a { color: var(--text-muted); }
.nav-links a:hover { color: var(--primary-dark); }
.btn {
    display: inline-block; padding: 9px 18px; border-radius: 999px;
    font-weight: 700; font-size: 13px; border: none; cursor: pointer;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); text-decoration: none; }
.btn-ghost { background: var(--surface-alt); color: var(--primary-dark); }

/* ---------- Breadcrumb ---------- */
.breadcrumb {
    font-size: 13px; color: var(--text-muted); padding: 14px 0;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb .sep { margin: 0 6px; opacity: .5; }

/* ---------- Hero (wiki index) ---------- */
.wiki-hero {
    background: linear-gradient(135deg, var(--primary-tint), var(--secondary-tint));
    border-radius: 20px;
    padding: 36px 32px;
    margin-bottom: 28px;
}
.wiki-hero .eyebrow {
    display: inline-block; background: var(--surface); color: var(--primary-dark);
    font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 999px; margin-bottom: 12px;
}
.wiki-hero h1 { font-size: 30px; margin: 0 0 10px; }
.wiki-hero p { color: var(--text-muted); max-width: 640px; margin: 0 0 20px; }
.search-box {
    display: flex; background: var(--surface); border-radius: 12px; box-shadow: var(--shadow);
    padding: 4px; max-width: 480px;
}
.search-box input {
    flex: 1; border: none; outline: none; padding: 10px 14px; font-size: 14px; border-radius: 10px; background: transparent;
}
.stat-pills { display: flex; gap: 24px; margin-top: 22px; flex-wrap: wrap; }
.stat-pill .num { font-size: 22px; font-weight: 800; color: var(--primary-dark); }
.stat-pill .label { font-size: 12px; color: var(--text-muted); }

/* ---------- Kategori filtre çubuğu ---------- */
.cat-filter { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 30px; }
.cat-filter a {
    background: var(--surface); border: 1px solid var(--border); color: var(--text);
    font-size: 13px; font-weight: 600; padding: 7px 14px; border-radius: 999px;
}
.cat-filter a.active, .cat-filter a:hover { background: var(--primary); border-color: var(--primary); color: #fff; text-decoration: none; }

/* ---------- Kategori kartı + rehber listesi ---------- */
.category-block { margin-bottom: 36px; }
.category-block h2 { font-size: 19px; margin: 0 0 4px; }
.category-block .cat-desc { color: var(--text-muted); font-size: 13.5px; margin: 0 0 14px; }
.article-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px;
}
.article-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 16px 18px; box-shadow: var(--shadow);
}
.article-card a.title { font-weight: 700; font-size: 14.5px; color: var(--text); }
.article-card a.title:hover { color: var(--primary-dark); }
.article-card .desc { font-size: 13px; color: var(--text-muted); margin-top: 6px; }

/* ---------- Makale sayfası ---------- */
.article-layout { display: grid; grid-template-columns: 1fr 300px; gap: 34px; align-items: start; }
@media (max-width: 880px) { .article-layout { grid-template-columns: 1fr; } }

.article-header h1 { font-size: 28px; margin: 6px 0 10px; }
.article-header .lede { color: var(--text-muted); font-size: 15.5px; }
.article-meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--text-muted); margin: 14px 0 22px; }
.article-meta span { background: var(--surface-alt); padding: 4px 10px; border-radius: 999px; }

.summary-box {
    background: var(--secondary-tint); border: 1px solid var(--secondary);
    border-radius: var(--radius); padding: 18px 20px; margin: 20px 0;
}
.summary-box h3 { margin: 0 0 10px; font-size: 14px; color: var(--primary-dark); }
.summary-box ul { margin: 0; padding-left: 20px; font-size: 14.5px; }

.toc { background: var(--surface-alt); border-radius: var(--radius); padding: 16px 18px; margin: 22px 0; font-size: 14px; }
.toc h3 { margin: 0 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); }
.toc ol { margin: 0; padding-left: 20px; }

.article-body h2 { font-size: 21px; margin-top: 34px; border-top: 2px solid var(--border); padding-top: 24px; }
.article-body h3 { font-size: 16.5px; margin-top: 22px; }
.article-body pre {
    background: #2E2A3D; color: #EDE7F9; padding: 14px 16px; border-radius: 10px; overflow-x: auto; font-size: 13.5px;
}
.article-body code { background: var(--surface-alt); padding: 2px 6px; border-radius: 6px; font-size: 13px; }
.article-body pre code { background: none; padding: 0; }
.article-body table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14px; }
.article-body th, .article-body td { border: 1px solid var(--border); padding: 8px 10px; text-align: left; }
.article-body th { background: var(--surface-alt); }

.callout { border-radius: var(--radius); padding: 14px 18px; margin: 18px 0; font-size: 14px; border-left: 4px solid; }
.callout-info { background: var(--primary-tint); border-color: var(--primary); }
.callout-warning { background: var(--peach-tint); border-color: var(--peach); }
.callout-danger { background: var(--accent-tint); border-color: var(--accent); }
.callout strong { display: block; margin-bottom: 4px; }

.faq details { border-bottom: 1px solid var(--border); padding: 14px 0; }
.faq summary { font-weight: 700; cursor: pointer; font-size: 14.5px; }
.faq p { margin: 10px 0 0; color: var(--text-muted); font-size: 14px; }

/* ---------- Sağ sütun: reklam + ilgili rehberler ---------- */
.sidebar-ad {
    background: linear-gradient(160deg, var(--peach-tint), var(--accent-tint));
    border: 1px solid var(--peach); border-radius: var(--radius);
    padding: 20px; text-align: center; position: sticky; top: 90px;
}
.sidebar-ad .badge { font-size: 11px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; }
.sidebar-ad h4 { margin: 10px 0 6px; font-size: 16px; }
.sidebar-ad p { font-size: 13px; color: var(--text-muted); margin: 0 0 14px; }
.sidebar-ad .btn { width: 100%; }

.related-box { margin-top: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.related-box h4 { margin: 0 0 12px; font-size: 13px; text-transform: uppercase; color: var(--text-muted); }
.related-box li { font-size: 13.5px; margin-bottom: 9px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--surface-alt); margin-top: 60px; padding: 40px 0 24px; font-size: 13.5px; color: var(--text-muted); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px; margin-bottom: 24px; }
.footer-grid h5 { color: var(--text); margin: 0 0 10px; font-size: 13px; }
.footer-grid li { margin-bottom: 6px; }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 18px; text-align: center; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- İstatistik paneli ---------- */
.admin-body { background: var(--bg); }
.admin-header { display: flex; justify-content: space-between; align-items: center; padding: 22px 0; flex-wrap: wrap; gap: 12px; }
.admin-header h1 { margin: 0 0 4px; font-size: 24px; }
.admin-header .sub { color: var(--text-muted); font-size: 13.5px; }
.card-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 24px; }
.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.stat-card .num { font-size: 26px; font-weight: 800; color: var(--primary-dark); }
.stat-card .lbl { font-size: 12.5px; color: var(--text-muted); margin-top: 4px; }
.stat-card .sub2 { font-size: 11.5px; color: var(--text-muted); margin-top: 6px; }

.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--border); margin-bottom: 20px; }
.tabs a { padding: 10px 16px; font-size: 13.5px; font-weight: 600; color: var(--text-muted); border-bottom: 2px solid transparent; }
.tabs a.active { color: var(--primary-dark); border-color: var(--primary); }

.admin-table-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); overflow-x: auto; }
table.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
table.data-table th { text-align: left; padding: 9px 10px; border-bottom: 2px solid var(--border); color: var(--text-muted); white-space: nowrap; }
table.data-table td { padding: 9px 10px; border-bottom: 1px solid var(--border); white-space: nowrap; }
table.data-table tr:hover td { background: var(--surface-alt); }
.badge-pill { font-size: 11px; padding: 3px 9px; border-radius: 999px; font-weight: 700; }
.badge-yes { background: var(--secondary-tint); color: #2E8B69; }
.badge-no { background: var(--surface-alt); color: var(--text-muted); }

.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--bg); }
.login-card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 34px; width: 320px; }
.login-card h1 { font-size: 18px; margin: 0 0 18px; }
.login-card input { width: 100%; padding: 10px 12px; margin-bottom: 12px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; }
.login-card .btn { width: 100%; }
.login-error { background: var(--accent-tint); color: #9C3B52; padding: 10px 12px; border-radius: 8px; font-size: 13px; margin-bottom: 14px; }
