/*
Theme Name: Canlı Analiz
Theme URI: https://canlianaliz.com
Author: canlianaliz.com
Description: Modern bahis analiz teması - maç tahminleri, canlı skor, istatistik, value bet
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
Text Domain: canlianaliz
*/

/* =========================================
   RESET & BASE
========================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #00c853;
  --primary-dark: #009624;
  --secondary: #1a1a2e;
  --bg-dark: #0f0f1a;
  --bg-card: #1e1e30;
  --bg-card2: #252540;
  --text: #e0e0e0;
  --text-muted: #888;
  --accent: #ff6f00;
  --red: #f44336;
  --border: #2a2a45;
  --radius: 10px;
  --shadow: 0 4px 20px rgba(0,0,0,0.4);
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg-dark);
  color: var(--text);
  line-height: 1.6;
  font-size: 15px;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; }

/* =========================================
   LAYOUT
========================================= */
.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.grid-main { display: grid; grid-template-columns: 1fr 320px; gap: 24px; padding: 24px 0; }
.grid-main.full-width { grid-template-columns: 1fr; }

@media (max-width: 1024px) {
  .grid-main { grid-template-columns: 1fr; }
}

/* =========================================
   HEADER
========================================= */
#site-header {
  background: var(--secondary);
  border-bottom: 2px solid var(--primary);
  position: sticky; top: 0; z-index: 1000;
  box-shadow: 0 2px 20px rgba(0,200,83,0.15);
}

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px; height: 64px;
}

.site-logo {
  font-size: 22px; font-weight: 800; color: #fff;
  display: flex; align-items: center; gap: 10px;
}
.site-logo span { color: var(--primary); }
.site-logo .logo-icon { font-size: 28px; }

/* NAV */
#main-nav ul { display: flex; gap: 4px; list-style: none; }
#main-nav ul li a {
  display: block; padding: 8px 14px; border-radius: 6px;
  font-size: 14px; font-weight: 600; color: var(--text);
  transition: all .2s;
}
#main-nav ul li a:hover,
#main-nav ul li.current-menu-item a {
  background: rgba(0,200,83,0.15); color: var(--primary);
}

/* LIVE TICKER */
.live-bar {
  background: linear-gradient(90deg, #00c853, #009624);
  padding: 6px 0; overflow: hidden; font-size: 13px;
}
.live-bar-inner {
  display: flex; gap: 40px; white-space: nowrap;
  animation: ticker 30s linear infinite;
}
.live-bar-inner span { color: #fff; font-weight: 600; }
@keyframes ticker { 0% { transform: translateX(100vw); } 100% { transform: translateX(-100%); } }

/* MOBILE MENU */
.hamburger {
  display: none; background: none; border: none;
  cursor: pointer; flex-direction: column; gap: 5px; padding: 4px;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--text); border-radius: 2px; transition: .3s;
}

@media (max-width: 768px) {
  .hamburger { display: flex; }
  #main-nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    background: var(--secondary); border-top: 1px solid var(--border); padding: 12px;
  }
  #main-nav.open { display: block; }
  #main-nav ul { flex-direction: column; }
}

/* =========================================
   HERO / STATS BAR
========================================= */
.stats-bar {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}
.stats-bar-inner {
  display: flex; gap: 20px; flex-wrap: wrap;
  align-items: center;
}
.stat-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text-muted);
}
.stat-item strong { color: var(--primary); font-size: 18px; }
.stat-item .icon { font-size: 20px; }

/* =========================================
   CARDS
========================================= */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.card-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-card2);
}
.card-header h2, .card-header h3 {
  font-size: 15px; font-weight: 700;
  display: flex; align-items: center; gap: 8px;
}
.card-header .badge {
  font-size: 11px; font-weight: 700; padding: 3px 8px;
  border-radius: 20px; background: var(--primary);
  color: #000;
}
.card-body { padding: 16px 18px; }

/* =========================================
   MATCH CARDS
========================================= */
.match-list { display: flex; flex-direction: column; gap: 10px; }

.match-card {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: 8px; padding: 14px 16px;
  transition: border-color .2s, transform .2s;
  cursor: pointer;
}
.match-card:hover {
  border-color: var(--primary);
  transform: translateY(-1px);
}
.match-card.live { border-left: 3px solid var(--red); }
.match-card.value { border-left: 3px solid var(--accent); }

.match-meta {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px; font-size: 12px; color: var(--text-muted);
}
.match-meta .league { display: flex; align-items: center; gap: 6px; }
.match-meta .live-badge {
  background: var(--red); color: #fff;
  font-size: 11px; font-weight: 700; padding: 2px 8px;
  border-radius: 4px; animation: pulse 1.5s infinite;
}
@keyframes pulse { 0%,100% { opacity:1; } 50% { opacity:.6; } }

.match-teams {
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 12px; margin-bottom: 10px;
}
.team { display: flex; align-items: center; gap: 8px; }
.team.away { flex-direction: row-reverse; text-align: right; }
.team-logo { width: 32px; height: 32px; object-fit: contain; border-radius: 50%; }
.team-name { font-weight: 700; font-size: 14px; }
.score-box {
  background: var(--secondary); border-radius: 6px;
  padding: 6px 14px; font-size: 20px; font-weight: 900;
  color: #fff; text-align: center; min-width: 70px;
}
.score-box .time { font-size: 11px; color: var(--primary); display: block; font-weight: 600; }

.match-odds {
  display: flex; gap: 8px; margin-top: 10px;
}
.odd-btn {
  flex: 1; padding: 7px 6px; text-align: center;
  background: var(--secondary); border: 1px solid var(--border);
  border-radius: 6px; font-size: 13px; cursor: pointer;
  transition: all .2s;
}
.odd-btn:hover { background: rgba(0,200,83,.15); border-color: var(--primary); }
.odd-btn.dropping { border-color: var(--red); background: rgba(244,67,54,.1); }
.odd-btn.value-bet { border-color: var(--accent); background: rgba(255,111,0,.1); }
.odd-label { font-size: 10px; color: var(--text-muted); display: block; }
.odd-value { font-weight: 800; color: var(--primary); }
.odd-value.drop { color: var(--red); }
.odd-value.value { color: var(--accent); }

/* =========================================
   PREDICTION CARD
========================================= */
.prediction-bar {
  display: flex; gap: 2px; border-radius: 6px; overflow: hidden;
  height: 8px; margin: 8px 0;
}
.prediction-bar .home { background: var(--primary); }
.prediction-bar .draw { background: #888; }
.prediction-bar .away { background: var(--red); }

.prediction-labels {
  display: flex; justify-content: space-between;
  font-size: 12px; color: var(--text-muted);
}

.prediction-result {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 6px; font-size: 13px; font-weight: 700;
  margin-top: 8px;
}
.prediction-result.win { background: rgba(0,200,83,.2); color: var(--primary); }
.prediction-result.draw { background: rgba(136,136,136,.2); color: #aaa; }
.prediction-result.loss { background: rgba(244,67,54,.2); color: var(--red); }

/* =========================================
   VALUE BET INDICATOR
========================================= */
.value-indicator {
  display: flex; align-items: center; gap: 10px; margin-top: 10px;
  padding: 8px 12px; background: rgba(255,111,0,.1);
  border: 1px solid var(--accent); border-radius: 6px;
}
.value-score {
  font-size: 20px; font-weight: 900; color: var(--accent);
}
.value-label { font-size: 12px; color: var(--text-muted); }
.value-label strong { color: var(--accent); display: block; }

/* =========================================
   STATISTICS TABLE
========================================= */
.stat-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.stat-table thead th {
  padding: 10px 12px; text-align: left;
  background: var(--secondary); color: var(--text-muted);
  font-size: 12px; text-transform: uppercase; letter-spacing: .5px;
  border-bottom: 1px solid var(--border);
}
.stat-table tbody tr { border-bottom: 1px solid var(--border); }
.stat-table tbody tr:hover { background: rgba(255,255,255,.03); }
.stat-table tbody td { padding: 10px 12px; }

.form-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 4px; font-size: 11px;
  font-weight: 800;
}
.form-badge.W { background: var(--primary); color: #000; }
.form-badge.D { background: #555; color: #fff; }
.form-badge.L { background: var(--red); color: #fff; }

/* =========================================
   SIDEBAR
========================================= */
.sidebar { display: flex; flex-direction: column; gap: 20px; }

.sidebar-widget { }

/* AFFILIATE BANNER */
.affiliate-banner {
  border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(135deg, #1a1a2e, #0d47a1);
  border: 1px solid #1565c0; padding: 20px;
  text-align: center;
}
.affiliate-banner h4 { font-size: 16px; color: #fff; margin-bottom: 6px; }
.affiliate-banner p { font-size: 13px; color: #90caf9; margin-bottom: 14px; }
.btn-affiliate {
  display: inline-block; padding: 10px 22px;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  color: #000; font-weight: 800; border-radius: 6px; font-size: 14px;
  transition: transform .2s;
}
.btn-affiliate:hover { transform: scale(1.04); color: #000; }

/* =========================================
   PREMIUM / MEMBERSHIP
========================================= */
.premium-lock {
  position: relative; overflow: hidden;
}
.premium-lock .blur-overlay {
  filter: blur(4px); pointer-events: none; user-select: none;
}
.premium-cta {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: rgba(15,15,26,.85); gap: 10px;
  padding: 20px;
}
.premium-cta h4 { font-size: 18px; color: var(--accent); text-align: center; }
.premium-cta p { font-size: 13px; color: var(--text-muted); text-align: center; }
.btn-premium {
  padding: 10px 24px;
  background: linear-gradient(90deg, var(--accent), #e65100);
  color: #fff; font-weight: 800; border-radius: 6px;
  border: none; cursor: pointer; font-size: 14px;
  transition: transform .2s;
}
.btn-premium:hover { transform: scale(1.04); }

/* =========================================
   TABS
========================================= */
.tab-nav {
  display: flex; gap: 4px; border-bottom: 1px solid var(--border);
  padding: 0 16px; background: var(--bg-card2);
}
.tab-btn {
  padding: 12px 16px; font-size: 13px; font-weight: 600;
  color: var(--text-muted); background: none; border: none;
  cursor: pointer; border-bottom: 2px solid transparent;
  transition: all .2s; margin-bottom: -1px;
}
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-btn:hover { color: var(--text); }
.tab-content { display: none; padding: 16px 18px; }
.tab-content.active { display: block; }

/* =========================================
   FILTERS
========================================= */
.filters {
  display: flex; gap: 8px; flex-wrap: wrap;
  padding: 12px 0; margin-bottom: 16px;
}
.filter-btn {
  padding: 6px 14px; font-size: 13px; font-weight: 600;
  background: var(--bg-card2); border: 1px solid var(--border);
  border-radius: 20px; cursor: pointer; color: var(--text-muted);
  transition: all .2s;
}
.filter-btn.active, .filter-btn:hover {
  background: rgba(0,200,83,.15); border-color: var(--primary); color: var(--primary);
}

/* =========================================
   LOADING / SKELETON
========================================= */
.skeleton {
  background: linear-gradient(90deg, var(--bg-card2) 25%, var(--border) 50%, var(--bg-card2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 6px;
}
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }

/* =========================================
   FOOTER
========================================= */
#site-footer {
  background: var(--secondary);
  border-top: 1px solid var(--border);
  padding: 40px 0 20px;
  margin-top: 48px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px; margin-bottom: 32px;
}
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-widget h4 {
  font-size: 14px; font-weight: 700; color: #fff;
  text-transform: uppercase; letter-spacing: .5px;
  margin-bottom: 14px; padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.footer-widget ul { list-style: none; }
.footer-widget ul li { margin-bottom: 8px; }
.footer-widget ul li a { font-size: 13px; color: var(--text-muted); }
.footer-widget ul li a:hover { color: var(--primary); }
.footer-widget p { font-size: 13px; color: var(--text-muted); line-height: 1.7; }

.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 20px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 10px; font-size: 12px; color: var(--text-muted);
}
.disclaimer {
  background: rgba(255,255,255,.05); border-radius: 6px;
  padding: 12px 16px; font-size: 12px; color: var(--text-muted);
  margin-bottom: 20px; border-left: 3px solid var(--text-muted);
}

/* =========================================
   RESPONSIVE
========================================= */
@media (max-width: 640px) {
  .match-teams { grid-template-columns: 1fr auto 1fr; gap: 6px; }
  .team-name { font-size: 12px; }
  .score-box { font-size: 16px; padding: 5px 10px; min-width: 56px; }
  .match-odds { flex-wrap: wrap; }
  .odd-btn { min-width: 80px; }
  .filters { gap: 6px; }
}

/* =========================================
   NOTIFICATIONS / TOAST
========================================= */
.toast {
  position: fixed; bottom: 24px; right: 24px; z-index: 9999;
  background: var(--bg-card); border: 1px solid var(--primary);
  border-radius: 8px; padding: 12px 18px; font-size: 14px;
  box-shadow: var(--shadow); transform: translateY(20px);
  opacity: 0; transition: all .3s;
}
.toast.show { transform: translateY(0); opacity: 1; }
