/* Vezirköprü TV & Oyun Portalı - Modern UI Stylesheet */
:root {
  --bg-primary: #0f172a;
  --bg-surface: #1e293b;
  --bg-card: #1e293b;
  --bg-hover: #334155;
  --border: #334155;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --primary: #38bdf8;
  --primary-hover: #0284c7;
  --accent: #f59e0b;
  --danger: #ef4444;
  --success: #10b981;
  --radius: 12px;
  --shadow: 0 4px 14px rgba(0,0,0,0.3);
}

[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --bg-hover: #f1f5f9;
  --border: #e2e8f0;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --primary: #0284c7;
  --primary-hover: #0369a1;
  --shadow: 0 4px 14px rgba(0,0,0,0.06);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background: var(--bg-primary);
  color: var(--text-main);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: inherit; text-decoration: none; transition: color 0.2s; }
img { max-width: 100%; height: auto; display: block; }

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 16px;
}

/* TOP BAR */
.top-bar {
  background: #020617;
  color: #94a3b8;
  font-size: 0.82rem;
  padding: 6px 0;
  border-bottom: 1px solid #1e293b;
}
.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.top-left, .top-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.live-badge {
  background: #ef4444;
  color: #fff;
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.live-dot {
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
  animation: pulse 1.2s infinite;
}
@keyframes pulse {
  0% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.3); }
  100% { opacity: 1; transform: scale(1); }
}

/* TICKER */
.ticker-wrap {
  background: #1e1b4b;
  border-bottom: 1px solid #312e81;
  display: flex;
  align-items: center;
  overflow: hidden;
  height: 38px;
}
.ticker-badge {
  background: #ef4444;
  color: #fff;
  font-weight: 800;
  font-size: 0.8rem;
  padding: 0 16px;
  height: 100%;
  display: flex;
  align-items: center;
  white-space: nowrap;
  letter-spacing: 0.5px;
}
.ticker-content {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
}
.ticker-items {
  display: inline-block;
  padding-left: 100%;
  animation: ticker 32s linear infinite;
  font-size: 0.88rem;
  color: #e2e8f0;
}
@keyframes ticker {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-100%, 0, 0); }
}

/* HEADER */
.main-header {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #38bdf8, #2563eb);
  color: #fff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 900;
  box-shadow: 0 4px 10px rgba(56,189,248,0.3);
}
.brand-title h1 {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.1;
}
.brand-title span { color: var(--primary); }
.brand-title p {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.header-search {
  flex: 1;
  max-width: 420px;
  position: relative;
}
.header-search input {
  width: 100%;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  padding: 8px 16px 8px 38px;
  border-radius: 20px;
  color: var(--text-main);
  font-size: 0.9rem;
  outline: none;
}
.header-search input:focus { border-color: var(--primary); }
.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.btn-channel {
  background: #dc2626;
  color: #fff;
  padding: 7px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-channel:hover { background: #b91c1c; }
.btn-theme {
  background: var(--bg-hover);
  border: 1px solid var(--border);
  color: var(--text-main);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

/* NAVIGATION */
.main-nav {
  background: #020617;
  border-bottom: 2px solid #1e293b;
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-menu {
  display: flex;
  list-style: none;
  gap: 2px;
  overflow-x: auto;
  white-space: nowrap;
}
.nav-item a {
  display: block;
  padding: 12px 16px;
  font-size: 0.92rem;
  font-weight: 600;
  color: #cbd5e1;
  transition: all 0.2s;
  border-bottom: 3px solid transparent;
}
.nav-item a:hover, .nav-item.active a {
  color: #38bdf8;
  border-bottom-color: #38bdf8;
  background: rgba(56, 189, 248, 0.05);
}
.nav-badge {
  background: #f59e0b;
  color: #0f172a;
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 10px;
  font-weight: 800;
  margin-left: 4px;
}
.nav-admin-btn {
  background: #38bdf8;
  color: #0f172a !important;
  font-weight: 700 !important;
  border-radius: 6px;
  margin: 6px 0;
  padding: 6px 14px !important;
  border-bottom: none !important;
}

/* CAMPAIGN BANNER */
.campaign-banner {
  background: linear-gradient(135deg, #1e1b4b, #312e81, #0f172a);
  border: 1px solid #4338ca;
  border-radius: var(--radius);
  padding: 18px 24px;
  margin: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  box-shadow: 0 4px 20px rgba(67, 56, 202, 0.25);
}
.campaign-text h3 {
  font-size: 1.4rem;
  color: #facc15;
  margin-bottom: 4px;
}
.campaign-text p {
  color: #cbd5e1;
  font-size: 0.95rem;
}
.campaign-action {
  display: flex;
  align-items: center;
  gap: 16px;
}
.counter-box {
  text-align: right;
}
.counter-num {
  font-size: 1.6rem;
  font-weight: 900;
  color: #38bdf8;
  line-height: 1;
}
.counter-lbl { font-size: 0.75rem; color: #94a3b8; }
.btn-support {
  background: #f59e0b;
  color: #0f172a;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(245,158,11,0.3);
}

/* SECTION TITLES */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin: 30px 0 16px;
  border-bottom: 2px solid var(--border);
  padding-bottom: 8px;
}
.section-title {
  font-size: 1.4rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-link {
  font-size: 0.88rem;
  color: var(--primary);
  font-weight: 600;
}

/* GRIDS */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

/* CARDS */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  border-color: var(--primary);
}
.card-thumb {
  position: relative;
  aspect-ratio: 16/9;
  background: #000;
  overflow: hidden;
}
.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.card:hover .card-thumb img {
  transform: scale(1.05);
}
.badge-cat {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(4px);
  color: #38bdf8;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
}
.duration-tag {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0,0,0,0.8);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}
.play-btn-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  background: rgba(220, 38, 38, 0.9);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  opacity: 0.85;
  transition: transform 0.2s, opacity 0.2s;
}
.card:hover .play-btn-overlay {
  transform: translate(-50%, -50%) scale(1.15);
  opacity: 1;
}

.card-body {
  padding: 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card-title {
  font-size: 0.98rem;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.card-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
  padding-top: 8px;
  margin-top: auto;
}

/* GAME CARDS */
.game-card {
  text-align: center;
  padding: 18px 14px;
}
.game-icon {
  font-size: 3.2rem;
  margin-bottom: 8px;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}
.btn-play {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.88rem;
  display: inline-block;
  margin-top: 10px;
}

/* FILTER PILLS */
.filter-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 0 18px;
  white-space: nowrap;
}
.pill {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-main);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.pill:hover, .pill.active {
  background: var(--primary);
  color: #0f172a;
  border-color: var(--primary);
}

/* VIDEO PLAYER WRAPPER */
.player-container {
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16/9;
  box-shadow: 0 8px 30px rgba(0,0,0,0.6);
  margin-bottom: 20px;
}
.player-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* GAME PLAYER WRAPPER */
.game-wrapper {
  background: #020617;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,0.6);
  position: relative;
  display: flex;
  flex-direction: column;
}
.game-toolbar {
  background: #1e293b;
  padding: 8px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #334155;
}
.game-frame {
  width: 100%;
  height: 580px;
  border: none;
}

/* FOOTER */
.main-footer {
  background: #020617;
  color: #94a3b8;
  margin-top: auto;
  border-top: 1px solid #1e293b;
  padding: 40px 0 20px;
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 30px;
  margin-bottom: 30px;
}
.footer-col h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 14px;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a:hover { color: #38bdf8; }
.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 20px;
  text-align: center;
  font-size: 0.82rem;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .header-search { display: none; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .top-left { display: none; }
  .campaign-banner { flex-direction: column; text-align: center; }
  .campaign-action { width: 100%; justify-content: center; }
}
