/*
Theme Name: Portobet Analiz
Theme URI: https://portobetanaliz.com
Author: Portobet Analiz
Description: Portobet / Portobahis giriş rehberi — Portobahis benzeri arayüz.
Version: 3.0.1
Text Domain: portobetanaliz
*/

:root {
  --p: #1ed760;
  --pd: #16b850;
  --on: #04140a;
  --bg: #121212;
  --bg2: #1a1a1a;
  --fg: #ffffff;
  --mu: #b0b0b0;
  --card: #1e1e1e;
  --line: rgba(255, 255, 255, 0.08);
  --soft: rgba(30, 215, 96, 0.12);
  --r: 10px;
  --font: "Outfit", system-ui, sans-serif;
  --max: 1100px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 72px;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--p); text-decoration: none; }
a:hover { color: #4ae87e; }

h1, h2, h3, h4 {
  font-family: var(--font);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 700;
}

.wrap {
  width: min(var(--max), calc(100% - 1.5rem));
  margin-inline: auto;
}

/* Header — Portobahis tarzı */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #0d0d0d;
  border-bottom: 1px solid var(--line);
}

.header-bar {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 0.75rem;
  min-height: 58px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--fg);
  justify-self: start;
}

.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #000;
  object-fit: contain;
}

.brand-text strong {
  font-size: 1rem;
  font-weight: 800;
  margin: 0;
}

.header-actions {
  display: flex;
  gap: 0.45rem;
  align-items: center;
}

.nav-toggle {
  display: inline-flex;
  width: 40px;
  height: 40px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--card);
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--fg);
  border-radius: 2px;
  transition: transform 0.2s ease;
}

.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-drawer {
  display: none;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.5rem 0.75rem 0.9rem;
  background: var(--bg2);
  border-bottom: 1px solid var(--line);
}

.nav-drawer.is-open { display: flex; }

.nav-drawer a {
  color: var(--fg);
  padding: 0.75rem 0.6rem;
  border-radius: 8px;
  font-weight: 600;
}

.nav-drawer a:hover { background: rgba(255,255,255,0.05); color: var(--p); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 42px;
  padding: 0 1.1rem;
  border-radius: 8px;
  background: var(--p);
  color: var(--on) !important;
  font-weight: 700;
  font-size: 0.92rem;
  border: 0;
  cursor: pointer;
}

.btn:hover { background: var(--pd); color: var(--on) !important; }

.btn-ghost {
  background: transparent;
  color: var(--fg) !important;
  border: 1px solid rgba(255,255,255,0.35);
}

.btn-ghost:hover { background: rgba(255,255,255,0.06); }

.btn-sm {
  min-height: 36px;
  padding: 0 0.9rem;
  font-size: 0.85rem;
}

.btn-lg {
  min-height: 48px;
  padding: 0 1.35rem;
  font-size: 1rem;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.1rem;
}

/* Hero banner — Portobahis slider hissi */
.hero-banner {
  position: relative;
  min-height: clamp(280px, 48vw, 420px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #0a0a0a;
}

.hero-banner-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-banner-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.55) 45%, rgba(0,0,0,0.25) 100%),
    linear-gradient(0deg, rgba(0,0,0,0.75) 0%, transparent 55%);
}

.hero-banner-content {
  position: relative;
  z-index: 1;
  padding: 2rem 0 2.2rem;
  max-width: 36rem;
}

.brand-hero {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--p);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-banner h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 0.45rem;
}

.lead {
  color: var(--mu);
  font-size: 1.02rem;
  margin: 0;
  max-width: 34rem;
}

.meta-line {
  margin-top: 0.85rem;
  color: var(--mu);
  font-size: 0.85rem;
}

/* Category cards — Portobahis 5’li grid */
.cat-grid-wrap {
  padding: 1rem 0 0.5rem;
  background: var(--bg);
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.65rem;
}

.cat-card {
  position: relative;
  display: block;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(30, 215, 96, 0.35);
  box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.15) inset;
  color: var(--fg) !important;
  background: var(--card);
}

.cat-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.cat-card:hover img { transform: scale(1.05); }

.cat-card span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.55rem 0.45rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.92));
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.cat-card-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(160deg, #163d24, #0d0d0d);
}

.cat-card-cta img {
  width: 42%;
  height: auto;
  object-fit: contain;
}

.cat-card-cta span {
  position: static;
  background: none;
  padding: 0;
}

/* Sections */
.section { padding: 2rem 0; }
.section-alt {
  background: var(--bg2);
  border-block: 1px solid var(--line);
}

.section h2 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); }

.section-head { margin-bottom: 1.1rem; max-width: 40rem; }
.section-head .lead { margin-top: 0.3rem; font-size: 0.98rem; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.step {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1.1rem;
}

.step-num {
  display: block;
  color: var(--p);
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
}

.step h3 { font-size: 1rem; margin-bottom: 0.35rem; }
.step p { margin: 0; color: var(--mu); font-size: 0.92rem; }

.info-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 1.1rem;
  background: var(--soft);
  border: 1px solid rgba(30, 215, 96, 0.28);
  border-radius: var(--r);
  padding: 1.1rem 1.2rem;
}

.info-box dt { color: var(--mu); font-size: 0.82rem; }
.info-box dd { margin: 0.15rem 0 0; font-weight: 600; }

.promo-list {
  display: grid;
  gap: 0.55rem;
}

.promo-row {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.95rem 1.05rem;
  border-radius: var(--r);
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--fg) !important;
}

.promo-row:hover { border-color: rgba(30, 215, 96, 0.45); }

.promo-row strong { font-size: 1.02rem; }
.promo-row span { color: var(--mu); font-size: 0.88rem; }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1.05rem;
}

.card h3 { font-size: 1rem; margin-bottom: 0.35rem; }
.card p { margin: 0; color: var(--mu); font-size: 0.9rem; }

.card-ico {
  width: 38px;
  height: 38px;
  margin-bottom: 0.7rem;
  padding: 0.55rem;
  border-radius: 9px;
  background: var(--soft);
  color: var(--p);
  border: 1px solid rgba(30, 215, 96, 0.25);
}

.card-ico svg { width: 100%; height: 100%; }

.split-cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.split-cta > div {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1.2rem;
}

.prose { max-width: 42rem; }
.prose-wide { max-width: 46rem; }
.prose p, .entry-content p { color: var(--mu); margin: 0 0 0.9rem; }
.prose ul, .entry-content ul { color: var(--mu); padding-left: 1.15rem; }

.faq { display: grid; gap: 0.5rem; max-width: 48rem; }

.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}

.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1rem;
  background: none;
  border: 0;
  color: var(--fg);
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.faq-a {
  display: none;
  padding: 0 1rem 0.95rem;
  color: var(--mu);
  margin: 0;
}

.faq-item.is-open .faq-a { display: block; }

.cta-band {
  background: linear-gradient(135deg, rgba(30, 215, 96, 0.16), rgba(30, 215, 96, 0.04));
  border: 1px solid rgba(30, 215, 96, 0.28);
  border-radius: var(--r);
  padding: 1.35rem 1.2rem;
}

.aff-note {
  margin-top: 1.25rem;
  padding: 0.8rem 0.95rem;
  border-left: 3px solid var(--p);
  background: var(--soft);
  color: var(--mu);
  font-size: 0.86rem;
}

/* Inner pages */
.page-hero {
  padding: 1.75rem 0 1.25rem;
  background: linear-gradient(180deg, #163d24 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 { font-size: clamp(1.55rem, 3vw, 2.1rem); }

.entry-content { padding: 1.4rem 0 2.5rem; }

.content-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.25rem;
  max-width: 48rem;
}

.content-card .btn { margin: 0.2rem 0.3rem 0.2rem 0; }

.lead-inline { color: var(--mu); margin-bottom: 0.9rem !important; }

.feature-list { display: grid; gap: 0.65rem; margin: 1.1rem 0; }

.feature-item {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 0.95rem 1rem;
}

.feature-item strong {
  display: block;
  margin-bottom: 0.3rem;
}

.feature-item p { margin: 0 !important; }

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.9rem 0 1.2rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(30, 215, 96, 0.3);
  background: var(--soft);
  color: var(--fg);
  font-size: 0.82rem;
  font-weight: 600;
}

/* Footer */
.site-footer {
  margin-top: 1.5rem;
  padding: 2rem 0 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--mu);
  font-size: 0.9rem;
  background: #0d0d0d;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 1.25rem;
}

.site-footer h4 {
  color: var(--fg);
  margin: 0 0 0.55rem;
  font-size: 0.92rem;
}

.site-footer a {
  display: block;
  color: var(--mu);
  margin-bottom: 0.35rem;
}

.site-footer a:hover { color: var(--fg); }

.legal-line {
  margin-top: 1.25rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
}

/* Bottom nav — Portobahis mobilde */
.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: end;
  min-height: 64px;
  padding: 0.35rem 0.25rem calc(0.35rem + env(safe-area-inset-bottom));
  background: #0d0d0d;
  border-top: 1px solid var(--line);
}

.bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  color: var(--mu);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.25rem;
}

.bottom-nav a:hover,
.bottom-nav a:focus { color: var(--p); }

.bn-ico {
  width: 22px;
  height: 22px;
  color: inherit;
}

.bn-ico svg { width: 100%; height: 100%; }

.bn-center {
  position: relative;
  top: -12px;
}

.bn-center-btn {
  display: inline-flex;
  width: 52px;
  height: 52px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--p);
  color: var(--on);
  box-shadow: 0 6px 20px rgba(30, 215, 96, 0.4);
}

.bn-center-btn svg { width: 24px; height: 24px; }

.bn-center span:last-child {
  color: var(--fg);
  margin-top: 0.15rem;
}

/* Desktop: header actions bigger, bottom nav stays (Portobet mobile feel) but can refine */
@media (min-width: 900px) {
  .header-bar {
    grid-template-columns: 42px 1fr auto;
  }

  .brand-text strong { font-size: 1.08rem; }

  .hero-banner { min-height: 400px; }

  body { padding-bottom: 76px; }
}

@media (max-width: 860px) {
  .cat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cat-card:nth-child(4),
  .cat-card:nth-child(5) {
    /* keep all visible on 3-col: 2 wrap */
  }

  .steps,
  .grid-3,
  .split-cta,
  .footer-grid,
  .info-box {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .cat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-banner-content { padding-bottom: 1.5rem; }

  .header-actions .btn-sm { padding: 0 0.7rem; }
}

@media (min-width: 861px) {
  .steps,
  .grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .split-cta,
  .info-box {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
}
