/*
Theme Name: FutbolDuraklari Custom
Template: covernews
Version: 3.0
*/

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Sans:wght@300;400;500;600;700&family=DM+Mono:wght@400;500&display=swap');

/* ── DEĞİŞKENLER ── */
:root {
  --green-dark:   #002a18;
  --green:        #004225;
  --green-accent: #00a651;
  --green-light:  #22c55e;
  --red:          #dc2626;
  --bg:           #f0f2f0;
  --card:         #ffffff;
  --text:         #111827;
  --text-mid:     #374151;
  --text-muted:   #6b7280;
  --border:       #e5e7e5;
  --shadow-sm:    0 1px 4px rgba(0,0,0,0.07);
  --shadow-md:    0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg:    0 8px 32px rgba(0,0,0,0.14);
  --radius:       12px;
  --radius-sm:    8px;
  --font-display: 'Bebas Neue', Impact, sans-serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
  --font-mono:    'DM Mono', monospace;
  --tr:           0.22s cubic-bezier(0.4,0,0.2,1);
}

[data-theme="dark"] {
  --bg:         #0d1a0d;
  --card:       #1a2b1a;
  --text:       #e8f0eb;
  --text-mid:   #b8ccbe;
  --text-muted: #7a9985;
  --border:     #2d4433;
}

/* ── BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font-body); background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; transition: background .3s, color .3s; overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }

/* ── TOP BAR ── */
.fd-topbar { background: var(--green-dark); color: rgba(255,255,255,0.8); padding: 7px 0; font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em; }
.fd-topbar-inner { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: flex; justify-content: space-between; align-items: center; }
.fd-topbar a { color: rgba(255,255,255,0.7); transition: color var(--tr); }
.fd-topbar a:hover { color: var(--green-light); }

/* ── HEADER ── */
.fd-header { background: var(--card); box-shadow: 0 2px 16px rgba(0,42,24,0.10); position: sticky; top: 0; z-index: 999; transition: background .3s; }
[data-theme="dark"] .fd-header { background: #111f11; }
.fd-header-inner { max-width: 1200px; margin: 0 auto; padding: 0 20px; height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.fd-logo { font-family: var(--font-display); font-size: 28px; letter-spacing: .04em; color: var(--green); line-height: 1; }
[data-theme="dark"] .fd-logo { color: var(--green-light); }
.fd-logo-sub { font-family: var(--font-mono); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); margin-top: -2px; }
.fd-search-form { display: flex; align-items: center; gap: 8px; background: var(--bg); border: 1.5px solid var(--border); border-radius: var(--radius-sm); padding: 7px 14px; transition: border-color var(--tr), box-shadow var(--tr); }
.fd-search-form:focus-within { border-color: var(--green-accent); box-shadow: 0 0 0 3px rgba(0,166,81,.12); }
.fd-search-form input { border: none; background: transparent; outline: none; font-family: var(--font-body); font-size: 13px; color: var(--text); width: 180px; }
.fd-search-form input::placeholder { color: var(--text-muted); }
.fd-header-right { display: flex; align-items: center; gap: 8px; }
#fd-darkmode-btn { width: 36px; height: 36px; border-radius: 9px; background: var(--bg); border: 1.5px solid var(--border); color: var(--text-muted); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 16px; transition: background var(--tr), transform .15s; flex-shrink: 0; }
#fd-darkmode-btn:hover { background: var(--green); border-color: var(--green); color: #fff; transform: scale(1.08); }

/* ── NAV ── */
.fd-nav { background: var(--green); }
.fd-nav-inner { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; }
.fd-nav-inner a { font-family: var(--font-body); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.75); padding: 12px 16px; border-bottom: 3px solid transparent; transition: color var(--tr), border-color var(--tr), background var(--tr); display: block; }
.fd-nav-inner a:hover, .fd-nav-inner a.active { color: #fff; border-bottom-color: var(--green-light); background: rgba(255,255,255,.07); }

/* ── LAYOUT ── */
.fd-page { max-width: 1200px; margin: 0 auto; padding: 28px 20px 60px; display: grid; grid-template-columns: 1fr 320px; gap: 28px; align-items: start; }
@media (max-width: 900px) { .fd-page { grid-template-columns: 1fr; } .fd-sidebar { display: none; } }

/* ── SECTION BAŞLIKLARI ── */
.fd-section-title { font-family: var(--font-display); font-size: 20px; letter-spacing: .04em; color: var(--text); border-left: 4px solid var(--green-accent); padding-left: 12px; margin-bottom: 18px; line-height: 1.1; }

/* ── SLIDER ── */
.slider-wrapper { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); margin-bottom: 24px; }
.slider-main { position: relative; height: 420px; background: #111; overflow: hidden; }
.slider-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s ease; z-index: 1; }
.slider-img.active { opacity: 1; }

.slider-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
    rgba(0,0,0,.92) 0%,
    rgba(0,0,0,.55) 35%,
    rgba(0,0,0,.15) 65%,
    transparent 100%);
  z-index: 2;
  cursor: pointer;
}

.slider-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  z-index: 3;
  cursor: pointer;
}

.slider-badge {
  display: inline-block;
  background: var(--green-accent);
  color: #fff !important;
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 4px;
  text-decoration: none !important;
  position: relative;
  z-index: 4;
  cursor: pointer;
}
.slider-badge:hover { opacity: .85; }

.slider-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 36px);
  letter-spacing: .03em;
  line-height: 1.05;
  color: #fff;
  margin: 0;
}

.slider-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255,255,255,.65);
}

.slider-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; background: rgba(255,255,255,.15); backdrop-filter: blur(8px); border-radius: 50%; border: 1.5px solid rgba(255,255,255,.25); color: #fff; font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background var(--tr), transform var(--tr); z-index: 5; }
.slider-arrow:hover { background: var(--green-accent); border-color: var(--green-accent); transform: translateY(-50%) scale(1.1); }
.slider-arrow.left { left: 16px; }
.slider-arrow.right { right: 16px; }

/* Thumb'lar — sadece görsel, yazı yok */
.slider-thumbs { display: grid; grid-template-columns: repeat(4,1fr); background: var(--card); border-top: 1px solid var(--border); }
[data-theme="dark"] .slider-thumbs { background: var(--card); }

.thumb-card {
  border-right: 1px solid var(--border);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  height: 80px;
}
.thumb-card:last-child { border-right: none; }

.thumb-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: transparent;
  transition: background .2s;
  z-index: 2;
}
.thumb-card.active::before,
.thumb-card:hover::before { background: var(--green-accent); }

.thumb-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s;
  z-index: 1;
  display: block;
}
.thumb-card:hover img { transform: scale(1.06); }

.thumb-card.active::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,166,81,.25);
  z-index: 2;
}

/* Yazılar gizli */
.thumb-body { display: none; }

/* ── HABER KARTLARI ── */
.fd-news-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .fd-news-grid { grid-template-columns: 1fr; } }

.news-card { background: var(--card); border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform var(--tr), box-shadow var(--tr), border-color var(--tr); animation: fd-fadein .4s ease both; }
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--green-accent); }

.news-card .img-wrap { display: block; overflow: hidden; aspect-ratio: 16/9; }
.news-card .img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s cubic-bezier(.4,0,.2,1); }
.news-card:hover .img-wrap img { transform: scale(1.05); }

.news-card-body { padding: 10px 12px 12px; }

.news-card-cat { display: inline-block; background: var(--green-accent); color: #fff !important; font-family: var(--font-body); font-size: 9px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 2px 8px; border-radius: 4px; margin-bottom: 6px; }
.news-card-cat:hover { opacity: .85; }

.news-card h3 { font-family: var(--font-display); font-size: 15px; letter-spacing: .02em; line-height: 1.2; color: var(--text); margin-bottom: 5px; transition: color var(--tr); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-card:hover h3 { color: var(--green-accent); }
.news-card h3 a { color: inherit; }
.news-meta { font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); }

/* ── SIDEBAR ── */
.fd-sidebar { position: sticky; top: 80px; }
.fd-widget { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: 20px; box-shadow: var(--shadow-sm); }
.fd-widget-title { font-family: var(--font-display); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; background: var(--green); color: #fff; padding: 10px 16px; display: block; }
.popular-item { display: flex; align-items: flex-start; gap: 12px; padding: 11px 14px; border-bottom: 1px solid var(--border); transition: background var(--tr); }
.popular-item:last-child { border-bottom: none; }
.popular-item:hover { background: rgba(0,166,81,.06); }
.popular-item .num { font-family: var(--font-display); font-size: 22px; color: var(--green-accent); flex-shrink: 0; line-height: 1; min-width: 24px; }
.popular-item h4 { font-family: var(--font-display); font-size: 14px; letter-spacing: .02em; line-height: 1.2; color: var(--text); margin: 0; transition: color var(--tr); }
.popular-item h4 a { color: inherit; }
.popular-item:hover h4 { color: var(--green-accent); }
.popular-item .pop-meta { font-family: var(--font-mono); font-size: 10px; color: var(--text-muted); margin-top: 3px; }

/* ── FOOTER ── */
.fd-footer { background: var(--green-dark); color: rgba(255,255,255,.7); border-top: 3px solid var(--green-accent); padding: 48px 0 0; }
.fd-footer-inner { max-width: 1200px; margin: 0 auto; padding: 0 20px 32px; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 700px) { .fd-footer-inner { grid-template-columns: 1fr; } }
.fd-footer-title { font-family: var(--font-display); font-size: 15px; letter-spacing: .08em; color: #fff; border-left: 3px solid var(--green-accent); padding-left: 10px; margin-bottom: 14px; }
.fd-footer a { color: rgba(255,255,255,.65); font-size: 13px; display: block; margin-bottom: 8px; transition: color var(--tr); }
.fd-footer a:hover { color: var(--green-light); }
.fd-footer p { font-size: 13px; color: rgba(255,255,255,.5); line-height: 1.65; }
.fd-footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 16px 20px; text-align: center; font-family: var(--font-mono); font-size: 11px; color: rgba(255,255,255,.35); }

/* ── SCROLL TO TOP ── */
#fd-scroll-top { position: fixed; bottom: 28px; right: 28px; width: 44px; height: 44px; background: var(--green); color: #fff; border: none; border-radius: 50%; font-size: 20px; cursor: pointer; opacity: 0; pointer-events: none; transform: translateY(16px); transition: opacity .3s, transform .3s, background .2s; z-index: 9999; box-shadow: 0 4px 16px rgba(0,42,24,.35); display: flex; align-items: center; justify-content: center; line-height: 1; }
#fd-scroll-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
#fd-scroll-top:hover { background: var(--green-accent); transform: translateY(-2px) scale(1.05); }

/* ── ANİMASYON ── */
@keyframes fd-fadein { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.news-card:nth-child(1) { animation-delay: .04s; }
.news-card:nth-child(2) { animation-delay: .09s; }
.news-card:nth-child(3) { animation-delay: .14s; }
.news-card:nth-child(4) { animation-delay: .19s; }
.news-card:nth-child(5) { animation-delay: .24s; }
.news-card:nth-child(6) { animation-delay: .29s; }

/* ── DARK MODE ── */
.fd-header, .fd-widget, .news-card, .thumb-card, .slider-thumbs, body { transition: background-color .3s, color .3s, border-color .3s; }
[data-theme="dark"] .fd-widget, [data-theme="dark"] .news-card { background: var(--card) !important; border-color: var(--border) !important; }
[data-theme="dark"] .popular-item, [data-theme="dark"] .thumb-card { border-color: var(--border) !important; }
[data-theme="dark"] .fd-search-form { background: var(--bg); border-color: var(--border); }
[data-theme="dark"] .fd-search-form input { color: var(--text); }