/*
Theme Name: Ozan Polat Sade
Theme URI: https://ozanpolat.com/
Author: Ozan Polat
Description: Ji bo malpera portfolyoya hunermendan temaya WordPressê ya sade û paqij. Bara jorîn, logo + menû, nivîsa tekane bi wêneyê berbiçav, gridê kartan, galerî û footerê tarî.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: ozan-sade
*/

/* ---------- Değişkenler ---------- */
:root {
  --accent: #1ab0b8;
  --kicker: #f5b800;
  --text: #111;
  --muted: #8a8a8a;
  --line: #eaeaea;
  --dark: #212121;
  --darker: #111;
  --wrap: 1068px;
  --wide: 1200px;
  --font: 'Roboto', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .6em; }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.wrap--wide { width: min(var(--wide), 100% - 40px); margin-inline: auto; }
.screen-reader-text {
  position: absolute !important; clip: rect(1px,1px,1px,1px);
  width: 1px; height: 1px; overflow: hidden;
}

/* ---------- Üst bar ---------- */
.topbar { border-bottom: 1px solid var(--line); font-size: 11px; }
.topbar .wrap--wide { display: flex; justify-content: space-between; align-items: center; height: 36px; }
.topbar ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 24px; }
.topbar a { color: var(--text); }
.topbar .social a { color: #b5b5b5; }

/* ---------- Header ---------- */
.site-header { background: #fff; }
.site-header .wrap--wide { display: flex; align-items: center; justify-content: space-between; min-height: 90px; }
.site-logo img { max-height: 70px; width: auto; }
.site-logo .site-title { font-size: 24px; font-weight: 700; color: var(--text); }
.main-nav { display: flex; align-items: center; gap: 34px; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 40px; }
.main-nav a { color: #333; font-size: 14px; letter-spacing: .3px; }
.main-nav a:hover,
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a { color: var(--accent); text-decoration: none; }
.search-toggle { background: none; border: 0; padding: 4px; cursor: pointer; color: #333; display: inline-flex; }
.nav-toggle { display: none; background: none; border: 0; font-size: 26px; cursor: pointer; }

.search-panel { display: none; border-top: 1px solid var(--line); padding: 16px 0; }
.search-panel.is-open { display: block; }
.search-form { display: flex; gap: 8px; }
.search-form input[type="search"] { flex: 1; padding: 10px 14px; border: 1px solid var(--line); font: inherit; }
.search-form button { padding: 10px 20px; border: 0; background: var(--text); color: #fff; cursor: pointer; font: inherit; }

/* ---------- Ana sayfa: profil ---------- */
.profile { display: grid; grid-template-columns: 470px 1fr; gap: 48px; padding: 60px 0 50px; align-items: start; }
.profile__photo img { display: block; width: 100%; height: auto; aspect-ratio: 470 / 408; object-fit: cover; }
.profile__name { font-size: clamp(64px, 9vw, 120px); font-weight: 900; line-height: .85; letter-spacing: -3px; margin: 0 0 40px; color: #2d2d2d; }
.profile__name span { display: block; color: #fff; text-shadow: 0 6px 24px rgba(0,0,0,.12); }
.profile__list { list-style: none; padding: 0; margin: 0 0 26px; font-size: 14px; }
.profile__list li::before { content: '•'; margin-right: 8px; }
.btn {
  display: inline-block; padding: 14px 38px; background: #fff; color: var(--text);
  box-shadow: 0 4px 16px rgba(0,0,0,.1); font-size: 14px;
}
.btn:hover { text-decoration: none; box-shadow: 0 6px 22px rgba(0,0,0,.16); }

/* ---------- Kart grid ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; margin: 0 auto 60px; max-width: 1180px; }
.card { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #333; color: #fff; }
.card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover img { transform: scale(1.05); }
.card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.75), rgba(0,0,0,.05) 65%); }
.card__body { position: absolute; left: 17px; right: 17px; bottom: 14px; z-index: 2; }
.card__title { font-size: 17px; font-weight: 700; margin: 0 0 2px; color: #fff; }
.card__meta { font-size: 11px; color: rgba(255,255,255,.55); }
.card__meta b { color: #fff; }
.card:hover { text-decoration: none; }

/* ---------- Hero (nivîsa tekane) ---------- */
.hero {
  position: relative; min-height: 560px; color: #fff;
  background: #333 center / cover no-repeat;
  display: flex; align-items: flex-end;
}
.hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.65), rgba(0,0,0,.25) 60%, rgba(0,0,0,.35)); }
.hero .wrap { position: relative; width: min(var(--wrap), 100% - 40px); padding-bottom: 44px; }
.hero h1 { font-size: 34px; font-weight: 500; margin: 0 0 8px; }

/* Valahî: wêneyê berbiçav ↔ naverok ↔ nivîsên din */
.hero + .wrap { padding: 50px 0 40px; }

/* ---------- İçerik ---------- */
.entry { padding-bottom: 20px; }
.entry-content { font-size: 15px; }
.entry-content a { color: var(--accent); }
.entry-content ul { padding-left: 20px; }
.entry-content li { margin: 6px 0; }
.entry-content iframe,
.entry-content .wp-block-embed iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; }
.entry-content .wp-block-embed,
.entry-content .wp-block-video,
.entry-content figure { margin: 0 0 30px; }

/* Galeri: 6 sütun, kare küçük resim */
.entry-content .wp-block-gallery,
.entry-content .gallery { display: grid !important; grid-template-columns: repeat(6, 1fr); gap: 24px; margin: 0 0 40px; }
.entry-content .wp-block-gallery .wp-block-image,
.entry-content .gallery-item { width: auto !important; margin: 0 !important; }
.entry-content .wp-block-gallery img,
.entry-content .gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; transition: transform .35s, box-shadow .35s; }
.entry-content .gallery a, .entry-content .wp-block-gallery a { display: block; border-radius: 8px; overflow: hidden; }
.entry-content .zoomable { cursor: zoom-in; }
.entry-content .gallery a:hover img,
.entry-content .wp-block-gallery a:hover img { transform: scale(1.06); }

/* ---------- Sayfa ---------- */
.page-head { padding: 80px 0 20px; }
.kicker { color: var(--kicker); font-size: 12px; text-transform: uppercase; letter-spacing: .3px; margin: 0 0 6px; }
.page-title { font-size: 48px; font-weight: 700; text-transform: uppercase; margin: 0; }
.page .entry-content { padding: 20px 0 60px 62px; }
.page .entry-content h4,
.page .entry-content strong { font-weight: 700; }

/* ---------- Önceki / Sonraki ---------- */
.post-nav { display: flex; justify-content: space-between; gap: 30px; margin-bottom: 80px; }
.post-nav small { display: block; color: #bbb; font-size: 11px; }
.post-nav a { color: var(--text); font-size: 14px; }
.post-nav .next { text-align: right; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: #fff; text-align: center; padding: 56px 0 0; }
.site-footer .site-logo { display: inline-block; margin-bottom: 30px; }
.footer-social a { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; background: #1a1a1a; color: #fff; }
.footer-bottom { background: var(--darker); margin-top: 60px; font-size: 11px; }
.footer-bottom .wrap--wide { display: flex; justify-content: space-between; align-items: center; height: 36px; }
.footer-bottom ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 20px; }
.footer-bottom a { color: #fff; }

.to-top {
  position: fixed; right: 0; bottom: 0; width: 40px; height: 40px; background: var(--accent); color: #fff;
  display: none; align-items: center; justify-content: center; border: 0; cursor: pointer; font-size: 20px; z-index: 50;
}
.to-top.is-visible { display: flex; }

/* ---------- Sayfalama ---------- */
.pagination { display: flex; gap: 8px; justify-content: center; margin: 0 0 60px; }
.pagination .page-numbers { padding: 6px 12px; border: 1px solid var(--line); color: var(--text); }
.pagination .current { background: var(--text); color: #fff; }

/* ---------- Mobil ---------- */
@media (max-width: 1019px) {
  .profile { grid-template-columns: 1fr; gap: 24px; }
  .profile__photo { max-width: 470px; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .entry-content .wp-block-gallery,
  .entry-content .gallery { grid-template-columns: repeat(4, 1fr); gap: 14px; }
  .page .entry-content { padding-left: 0; }
}
@media (max-width: 767px) {
  .nav-toggle { display: block; }
  .main-nav ul { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; background: #fff; border-top: 1px solid var(--line); z-index: 40; }
  .main-nav ul.is-open { display: flex; }
  .main-nav li a { display: block; padding: 14px 20px; }
  .site-header { position: relative; }
  .card-grid { grid-template-columns: 1fr; }
  .hero { min-height: 380px; }
  .hero + .wrap { padding: 32px 0 28px; }
    .hero h1 { font-size: 26px; }
  .page-title { font-size: 32px; }
  .entry-content .wp-block-gallery,
  .entry-content .gallery { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .post-nav { flex-direction: column; }
  .post-nav .next { text-align: left; }
}

/* ---------- Video ızgarası ---------- */
.js .entry-content iframe { display: none; }
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 22px; margin: 0 0 50px; }
.video-card { all: unset; box-sizing: border-box; cursor: pointer; display: block; }
.video-card:focus-visible .video-card__thumb { outline: 3px solid var(--accent); outline-offset: 3px; }
.video-card__thumb {
  position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden;
  background: #222; box-shadow: 0 6px 20px rgba(0,0,0,.12); transition: box-shadow .3s, transform .3s;
}
.video-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.video-card__thumb::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.45), rgba(0,0,0,0) 55%); }
.video-card__play {
  position: absolute; z-index: 2; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px;
  border-radius: 50%; background: rgba(255,255,255,.22); color: #fff; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.45); display: flex; align-items: center; justify-content: center;
  transition: transform .3s, background .3s;
}
.video-card__play svg { margin-left: 3px; }
.video-card:hover .video-card__thumb { box-shadow: 0 12px 30px rgba(0,0,0,.2); transform: translateY(-3px); }
.video-card:hover .video-card__thumb img { transform: scale(1.06); }
.video-card:hover .video-card__play { transform: scale(1.12); background: var(--accent); border-color: var(--accent); }
.video-card__title { display: block; margin-top: 10px; font-size: 14px; font-weight: 500; color: var(--text); line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- Lightbox ---------- */
html.lb-open { overflow: hidden; }
.lb {
  position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center;
  background: rgba(10,10,12,.92); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .2s;
}
.lb[hidden] { display: none; }
.lb.is-open { opacity: 1; }
.lb__stage { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; padding: 64px 90px 70px; }
.lb__img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; box-shadow: 0 20px 60px rgba(0,0,0,.5); transition: opacity .25s; }
.lb__img.is-loading { opacity: 0; }
.lb__video { width: min(1000px, 100%); aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lb__video iframe { width: 100%; height: 100%; border: 0; display: block; }
.lb__close, .lb__nav {
  position: absolute; z-index: 3; border: 0; cursor: pointer; color: #fff; background: rgba(255,255,255,.12);
  display: flex; align-items: center; justify-content: center; transition: background .2s;
}
.lb__close:hover, .lb__nav:hover { background: rgba(255,255,255,.28); }
.lb__close { top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 50%; font-size: 30px; line-height: 1; }
.lb__nav { top: 50%; width: 52px; height: 52px; margin-top: -26px; border-radius: 50%; }
.lb__prev { left: 20px; }
.lb__next { right: 20px; }
.lb__bar { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 24px; display: flex; justify-content: space-between; gap: 20px; color: rgba(255,255,255,.8); font-size: 13px; }

@media (max-width: 1019px) {
  .video-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  .video-grid { grid-template-columns: 1fr; gap: 24px; }
  .lb__stage { padding: 60px 12px 60px; }
  .lb__nav { width: 42px; height: 42px; margin-top: -21px; }
  .lb__prev { left: 8px; }
  .lb__next { right: 8px; }
}

/* ---------- Biçim bölümleri (ana sayfa) ---------- */
.format-section { width: min(1180px, 100% - 40px); margin: 0 auto 70px; }
.section-title { text-align: center; font-size: 28px; font-weight: 700; margin: 0 0 28px; }
.section-title::after { content: ''; display: block; width: 44px; height: 3px; background: var(--accent); margin: 12px auto 0; border-radius: 2px; }
.format-section .card-grid { margin: 0; max-width: none; }
.section-more { text-align: center; margin-top: 30px; }
.btn--outline { background: transparent; border: 1px solid var(--text); box-shadow: none; transition: background .2s, color .2s; }
.btn--outline:hover { background: var(--text); color: #fff; box-shadow: none; }

.card__badge {
  position: absolute; z-index: 3; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(0,0,0,.45); color: #fff; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
}
.card__badge--video { background: var(--accent); }
.card__badge--video svg { margin-left: 2px; }

/* Tek videolu yazı: büyük değil, ortalanmış orta boy kart */
.video-grid--single { grid-template-columns: 1fr; max-width: 720px; margin-left: auto; margin-right: auto; }
