/* kadirdolas.com.tr — "Saha Panosu" tasarımı (style-options-all.html .I panelinden türetildi) */

*, *::before, *::after { box-sizing: border-box; }

:root {
  --bg: #142118;
  --card: #1c2e22;
  --card-dark: #0c130f;
  --ink: #eef2ea;
  --muted: #a9b7a3;
  --pop: #c8e553;
  --amber: #e8a23d;
  --line: #263a2c;
  --field-border: #2c4231;
  --max: 900px;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--pop); outline-offset: 2px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 2.5rem 1.5rem 4rem; }

/* ---- nav ---- */
nav.site-nav {
  display: flex; justify-content: space-between; align-items: center;
  font-size: .85rem; font-weight: 700; margin-bottom: 2.2rem;
  text-transform: uppercase; letter-spacing: .06em;
  flex-wrap: wrap; gap: .8rem;
}
nav.site-nav .brand { color: var(--ink); text-decoration: none; }
nav.site-nav .links { display: flex; gap: 1.4rem; color: var(--muted); font-weight: 600; text-transform: none; letter-spacing: 0; font-size: .85rem; flex-wrap: wrap; }
nav.site-nav .links a { text-decoration: none; color: var(--muted); }
nav.site-nav .links a:hover { color: var(--ink); }
nav.site-nav .lang { display: flex; gap: .4rem; }
nav.site-nav .lang a { background: var(--card); color: var(--pop); padding: .25rem .6rem; border-radius: 6px; font-size: .72rem; text-decoration: none; }
nav.site-nav .lang a.active { background: var(--pop); color: #1c2e0c; }

/* ---- bento layout (home) ---- */
.bento { display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: auto auto; gap: .9rem; }
.panel-block { border-radius: 14px; padding: 1.5rem; position: relative; overflow: hidden; }

.p-hero { background: var(--card); color: var(--ink); grid-row: span 2; display: flex; flex-direction: column; justify-content: center; text-decoration: none; transition: background-color .15s ease; }
.p-hero:hover { background: #223528; }
.p-hero .more { display: inline-block; margin-top: 1rem; font-size: .82rem; color: var(--pop); font-weight: 700; }
.p-hero .eyebrow { color: var(--pop); font-size: .72rem; letter-spacing: .1em; margin-bottom: .7rem; text-transform: uppercase; }
.p-hero h1 { font-size: 2.3rem; font-weight: 800; letter-spacing: -.02em; margin: 0 0 .8rem; line-height: 1.02; text-wrap: balance; }
.p-hero p { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.6; max-width: 340px; }
.p-hero .field { position: absolute; right: -40px; bottom: -40px; width: 150px; height: 150px; border-radius: 50%;
  background: radial-gradient(circle, var(--bg) 0 60%, transparent 61%); border: 1px solid var(--field-border); }
.p-hero .field .sweep { position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 290deg, var(--pop) 0deg, transparent 50deg, transparent 360deg); opacity: .5; }

.p-proj { background: var(--pop); color: #1c2e0c; text-decoration: none; display: block; }
.p-proj.amber { background: var(--amber); color: #3a2500; }
.p-proj .tag { font-size: .7rem; font-weight: 800; text-transform: uppercase; margin-bottom: .4rem; }
.p-proj h3 { margin: 0 0 .4rem; font-size: 1.1rem; font-weight: 800; }
.p-proj p { margin: 0; font-size: .85rem; line-height: 1.5; }

.p-posts { background: var(--card); grid-column: span 2; }
.p-posts h2 { margin: 0 0 .9rem; font-size: .85rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--pop); }
.p-posts .post-row { display: flex; justify-content: space-between; gap: 1rem; font-size: .9rem; font-weight: 600; padding: .55rem 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.p-posts .post-row:last-child { border-bottom: none; }
.p-posts .post-row .d { font-weight: 400; font-size: .78rem; color: var(--muted); white-space: nowrap; }
.p-posts .more { display: inline-block; margin-top: 1rem; font-size: .82rem; color: var(--pop); text-decoration: none; font-weight: 700; }

.p-contact { background: var(--card-dark); grid-column: span 2; display: flex; gap: 1.4rem; flex-wrap: wrap; }
.p-contact a { color: var(--ink); text-decoration: none; font-weight: 700; font-size: .9rem; border-bottom: 2px solid var(--pop); padding-bottom: 2px; }

@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; }
  .p-hero { grid-row: auto; }
  .p-posts, .p-contact { grid-column: auto; }
}

/* ---- yayınlar list ---- */
.post-list { display: flex; flex-direction: column; }
.post-list .entry { display: flex; justify-content: space-between; gap: 1rem; padding: 1.1rem 0; border-top: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.post-list .entry:hover h3 { color: var(--pop); }
.post-list .entry h3 { margin: 0; font-size: 1.05rem; font-weight: 700; }
.post-list .entry .d { color: var(--muted); font-size: .8rem; white-space: nowrap; }

/* ---- yayın detay (article) ---- */
article.post { padding-top: .5rem; }
article.post .post-meta { color: var(--muted); font-size: .82rem; margin-bottom: .6rem; }
article.post h1 { font-size: 2rem; font-weight: 800; line-height: 1.1; margin: 0 0 1.4rem; text-wrap: balance; }
article.post .content { font-size: 1rem; line-height: 1.75; color: var(--ink); }
article.post .content p { margin: 0 0 1.2rem; }
article.post .content h2 { font-size: 1.3rem; font-weight: 700; margin: 2rem 0 1rem; }
article.post .content h3 { font-size: 1.1rem; font-weight: 700; margin: 1.6rem 0 .8rem; }
article.post .content a { color: var(--pop); }
article.post .content ul, article.post .content ol { margin: 0 0 1.2rem; padding-left: 1.3rem; }
article.post .content li { margin-bottom: .4rem; }
article.post .content blockquote { margin: 1.4rem 0; padding: .2rem 1.2rem; border-left: 3px solid var(--pop); color: var(--muted); }
article.post .content code { background: var(--card); padding: .15rem .4rem; border-radius: 4px; font-size: .88em; }
article.post .content pre { background: var(--card); padding: 1rem; border-radius: 8px; overflow-x: auto; }
article.post .content img { max-width: 100%; border-radius: 8px; }
article.post .content h4, article.post .content h5, article.post .content h6 { font-size: 1rem; font-weight: 700; margin: 1.4rem 0 .6rem; }
article.post .content u { text-decoration: underline; }
article.post .content s { text-decoration: line-through; }

/* Quill zengin metin editöründen gelen biçim sınıfları (hizalama/font/punto/girinti) */
article.post .content .ql-align-center { text-align: center; }
article.post .content .ql-align-right { text-align: right; }
article.post .content .ql-align-justify { text-align: justify; }
article.post .content .ql-font-serif { font-family: ui-serif, Georgia, serif; }
article.post .content .ql-font-monospace { font-family: ui-monospace, "Cascadia Code", monospace; }
article.post .content .ql-size-small { font-size: .8em; }
article.post .content .ql-size-large { font-size: 1.5em; }
article.post .content .ql-size-huge { font-size: 2.2em; }
article.post .content .ql-indent-1 { padding-left: 1.5rem; }
article.post .content .ql-indent-2 { padding-left: 3rem; }
article.post .content .ql-indent-3 { padding-left: 4.5rem; }
article.post .content .ql-indent-4 { padding-left: 6rem; }

.share { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; margin-top: 2.5rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.share-label { color: var(--muted); font-size: .85rem; font-weight: 700; margin-right: .3rem; }
.share-btn { appearance: none; border: 1px solid var(--field-border); background: var(--card); color: var(--ink);
  font: inherit; font-size: .82rem; font-weight: 600; text-decoration: none; padding: .4rem .9rem; border-radius: 999px;
  cursor: pointer; transition: border-color .15s, color .15s; }
.share-btn:hover { border-color: var(--pop); color: var(--pop); }

.back-link { display: inline-block; margin-top: 2.5rem; color: var(--muted); text-decoration: none; font-size: .85rem; }
.back-link:hover { color: var(--pop); }

article.post .content a.cv-download { display: inline-flex; align-items: center; gap: .5rem; background: var(--pop);
  color: #1c2e0c; text-decoration: none; font-weight: 800; padding: .7rem 1.3rem; border-radius: 8px; font-size: .9rem; }
article.post .content a.cv-download:hover { opacity: .88; }

/* ---- basit sayfa (hakkımda/iletişim bölümleri anchor olarak index içinde) ---- */
section.page-block { margin-top: 3rem; }
section.page-block h2 { font-size: 1.2rem; font-weight: 800; margin: 0 0 1rem; }

/* ---- projeler (ayrı sayfa) ---- */
.projeler-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; margin-top: 1.5rem; }

/* ---- galeri ---- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.gallery-grid figure { margin: 0; border-radius: 12px; overflow: hidden; background: var(--card); cursor: pointer; }
.gallery-grid img { display: block; width: 100%; height: 220px; object-fit: cover; transition: opacity .15s ease; }
.gallery-grid figure:hover img { opacity: .82; }
.gallery-grid figcaption { padding: .6rem .8rem; font-size: .82rem; color: var(--muted); }

/* ---- galeri lightbox ---- */
.lightbox { position: fixed; inset: 0; background: rgba(8, 13, 10, .94); display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lightbox-img { max-width: 82vw; max-height: 78vh; border-radius: 8px; position: relative; z-index: 1; }
.lightbox-caption { position: absolute; bottom: 2rem; left: 0; right: 0; text-align: center; color: var(--ink); font-size: .9rem; z-index: 1; }
.lightbox-close { position: absolute; top: 1.2rem; right: 1.5rem; background: none; border: none; color: var(--ink);
  font-size: 2rem; line-height: 1; cursor: pointer; z-index: 5; padding: .3rem .6rem; }
.lightbox-close:hover { color: var(--pop); }
.lightbox-zone { position: absolute; top: 0; bottom: 0; width: 40%; z-index: 2; cursor: pointer; }
.lightbox-prev { left: 0; }
.lightbox-next { right: 0; }
