/* Varsayılan tema — Sekizsoft CMS */
:root {
    --c-primary: #1d4ed8;
    --c-accent: #f59e0b;
    --c-text: #1f2937;
    --c-muted: #6b7280;
    --c-border: #e5e7eb;
    --c-bg: #ffffff;
    --c-soft: #f6f7f9;
    --radius: 10px;
    --container: 1140px;
    --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.65; color: var(--c-text); background: var(--c-bg); }
img { max-width: 100%; height: auto; }
a { color: var(--c-primary); }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .6em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); }
h2 { font-size: clamp(1.45rem, 3vw, 1.9rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.container-wide { width: 100%; padding: 0 20px; }
.section { padding: 56px 20px; }
.container.section { padding-left: 20px; padding-right: 20px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: #000; color: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

.btn, .cms-auth button[type=submit] { display: inline-block; background: var(--c-primary); color: #fff; padding: 12px 22px; border-radius: var(--radius); text-decoration: none; font-weight: 600; border: 0; cursor: pointer; font: inherit; font-weight: 600; }
.btn:hover, .cms-auth button[type=submit]:hover { filter: brightness(.92); }
.btn-accent { background: var(--c-accent); color: #111827; }

/* Üst bölüm */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--c-border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 70px; gap: 20px; }
.brand { font-weight: 800; font-size: 1.25rem; color: var(--c-text); text-decoration: none; display: flex; align-items: center; }
.brand img { display: block; max-height: 48px; width: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav > ul { display: flex; gap: 4px; align-items: center; }
.site-nav li { position: relative; }
.site-nav a { display: block; padding: 10px 14px; color: var(--c-text); text-decoration: none; border-radius: 8px; font-weight: 500; }
.site-nav a:hover, .site-nav li.active > a { color: var(--c-primary); background: var(--c-soft); }
.site-nav .sub { position: absolute; top: 100%; left: 0; min-width: 220px; background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); padding: 6px; box-shadow: 0 12px 30px rgba(0, 0, 0, .08); display: none; }
.site-nav li.has-sub:hover > .sub, .site-nav li.has-sub:focus-within > .sub { display: block; }
.sub-toggle { display: none; }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer; }
.nav-toggle span:not(.sr) { display: block; height: 2px; background: var(--c-text); margin: 5px 0; transition: transform .2s, opacity .2s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Kapak */
.hero { background: linear-gradient(135deg, var(--c-primary), color-mix(in srgb, var(--c-primary) 60%, #000)); color: #fff; padding: clamp(72px, 12vw, 140px) 0; position: relative; overflow: hidden; }
.hero.has-image { background: linear-gradient(90deg, rgba(0, 0, 0, .65), rgba(0, 0, 0, .25)), var(--hero-img) center / cover no-repeat; }
.hero-inner { max-width: 760px; margin-left: max(20px, calc((100% - var(--container)) / 2 + 20px)); padding: 0 20px 0 0; }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); margin-bottom: .4em; }
.hero .lead { font-size: 1.2rem; opacity: .92; margin-bottom: 1.6em; }
.page-hero { background: var(--c-soft); border-bottom: 1px solid var(--c-border); padding: 48px 0 36px; }
.page-hero h1 { margin: 0; }
.page-hero .meta { color: var(--c-muted); margin-top: .5em; font-size: .95rem; }

/* İçerik */
.prose { max-width: 760px; }
.prose-wide { max-width: none; }
.prose h2 { margin-top: 1.6em; } .prose h3 { margin-top: 1.4em; }
.prose img { border-radius: var(--radius); }
.prose blockquote { margin: 1.5em 0; padding: .5em 1.2em; border-left: 4px solid var(--c-primary); background: var(--c-soft); border-radius: 0 var(--radius) var(--radius) 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5em 0; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--c-border); padding: 8px 12px; text-align: left; }
.prose pre { background: #0f172a; color: #e2e8f0; padding: 1em; border-radius: var(--radius); overflow-x: auto; }
.prose hr { border: 0; border-top: 1px solid var(--c-border); margin: 2em 0; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 1.5em 0; }
.contact-list li { padding: 14px 0; border-bottom: 1px solid var(--c-border); display: grid; grid-template-columns: 110px 1fr; gap: 12px; }
.contact-list span { color: var(--c-muted); }
.contact-list address { font-style: normal; }
.map iframe { width: 100%; aspect-ratio: 4 / 3; border: 0; border-radius: var(--radius); }

.error-page { text-align: center; padding: 100px 20px; }
.error-code { font-size: 5rem; font-weight: 800; color: var(--c-border); line-height: 1; }

/* Kartlar ve ızgaralar (paketler kullanır) */
.grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.card { border: 1px solid var(--c-border); border-radius: var(--radius); overflow: hidden; background: #fff; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: 0 14px 34px rgba(0, 0, 0, .08); transform: translateY(-2px); }
.card-img { aspect-ratio: 16 / 9; background: var(--c-soft); overflow: hidden; display: block; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 20px 22px 24px; flex: 1; }
.card-title { font-size: 1.2rem; margin: 0 0 .4em; }
.card-title a { color: var(--c-text); text-decoration: none; }
.card-title a:hover { color: var(--c-primary); }
.card-meta { color: var(--c-muted); font-size: .88rem; margin-bottom: .6em; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 1.5em 0 0; }
.tags a { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--c-soft); color: var(--c-text); text-decoration: none; font-size: .88rem; }
.tags a:hover, .tags a.active { background: var(--c-primary); color: #fff; }
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 40px; list-style: none; padding: 0; flex-wrap: wrap; }
.pagination a, .pagination span { display: inline-block; min-width: 42px; padding: 8px 12px; text-align: center; border: 1px solid var(--c-border); border-radius: 8px; text-decoration: none; color: var(--c-text); }
.pagination .current { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.layout-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; }
.sidebar-box { border: 1px solid var(--c-border); border-radius: var(--radius); padding: 20px; margin-bottom: 24px; }
.sidebar-box h2 { font-size: 1.05rem; }
.sidebar-box ul { list-style: none; padding: 0; margin: 0; }
.sidebar-box li { padding: 6px 0; }
.sidebar-box a:not(.btn) { color: var(--c-text); text-decoration: none; }
.sidebar-box a:not(.btn):hover { color: var(--c-primary); }
.cover { border-radius: var(--radius); margin-bottom: 2em; aspect-ratio: 16 / 8; object-fit: cover; width: 100%; }

/* Üyelik formları */
.cms-auth { max-width: 460px; margin: 0 auto; padding: 64px 20px; }
.cms-auth form { display: grid; gap: 14px; margin-top: 1.2em; }
.cms-auth label { display: grid; gap: 6px; font-weight: 500; font-size: .95rem; }
.cms-auth input:not([type=checkbox]) { font: inherit; padding: 11px 14px; border: 1px solid #d1d5db; border-radius: 8px; width: 100%; }
.cms-auth input:focus { outline: 2px solid color-mix(in srgb, var(--c-primary) 40%, transparent); border-color: var(--c-primary); }
.cms-auth .cms-check { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; }
.cms-auth-links { margin-top: 1.2em; font-size: .95rem; }
.cms-link { background: none; border: 0; color: var(--c-primary); cursor: pointer; padding: 0; font: inherit; }
.invalid-feedback { color: #b91c1c; font-size: .85rem; font-weight: 400; }
.cms-alert { padding: 12px 16px; border-radius: 8px; margin: 1em 0; }
.cms-alert-success { background: #ecfdf5; color: #065f46; }
.cms-alert-danger { background: #fef2f2; color: #991b1b; }
.cms-alert-info, .cms-alert-warning { background: #eff6ff; color: #1e3a8a; }

/* Alt bölüm */
.site-footer { background: #0f172a; color: #cbd5e1; margin-top: 64px; padding-top: 56px; font-size: .95rem; }
.site-footer a { color: #e2e8f0; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer-brand { font-size: 1.2rem; font-weight: 800; color: #fff; margin-bottom: .6em; }
.footer-title { color: #fff; font-weight: 600; margin-bottom: .8em; }
.footer-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.social { list-style: none; padding: 0; margin: 1em 0 0; display: flex; flex-wrap: wrap; gap: 12px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 20px; font-size: .85rem; color: #94a3b8; }
.wa-float { position: fixed; right: 20px; bottom: 20px; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0, 0, 0, .2); z-index: 60; }

@media (max-width: 900px) {
    .nav-toggle { display: block; }
    .site-nav { position: fixed; inset: 70px 0 auto 0; background: #fff; border-bottom: 1px solid var(--c-border); max-height: calc(100vh - 70px); overflow-y: auto; display: none; padding: 10px 20px 20px; box-shadow: 0 20px 30px rgba(0, 0, 0, .08); }
    .nav-open .site-nav { display: block; }
    .site-nav > ul { flex-direction: column; align-items: stretch; }
    .site-nav li.has-sub { display: grid; grid-template-columns: 1fr 44px; }
    .site-nav .sub { position: static; display: none; box-shadow: none; border: 0; padding: 0 0 0 14px; grid-column: 1 / -1; }
    .site-nav li.sub-open > .sub { display: block; }
    .site-nav li.has-sub:hover > .sub { display: none; }
    .site-nav li.sub-open:hover > .sub { display: block; }
    .sub-toggle { display: block; background: none; border: 0; font-size: 1rem; cursor: pointer; }
    .contact-grid, .layout-sidebar { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .section { padding: 40px 20px; }
}
