﻿/* ============================================================
   iloha.tv - Ana Stil Dosyası
   Netflix/Prime Video ilhamlı dark theme
============================================================ */

:root {
  --bg-primary: #0d0d0d;
  --bg-secondary: #161616;
  --bg-card: #1a1a1a;
  --bg-overlay: rgba(0,0,0,0.85);
  --accent: #e50914;
  --accent-hover: #b20710;
  --accent-glow: rgba(229,9,20,0.3);
  --text-primary: #ffffff;
  --text-secondary: #b3b3b3;
  --text-muted: #666;
  --border: rgba(255,255,255,0.08);
  --card-radius: 8px;
  --transition: all 0.25s ease;
  --font: 'Poppins', 'Inter', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

/* ============================================================
   SCROLLBAR
============================================================ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: #333; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #555; }

/* ============================================================
   NAVBAR
============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  height: 65px;
  background: linear-gradient(180deg, rgba(0,0,0,0.95) 0%, transparent 100%);
  transition: var(--transition);
}
.navbar.scrolled {
  background: rgba(0,0,0,0.97);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
}
.nav-logo {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -1px;
  text-shadow: 0 0 30px var(--accent-glow);
}
.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  align-items: center;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--text-primary);
  border-bottom-color: var(--accent);
}
.nav-actions { display: flex; align-items: center; gap: 12px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 22px;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
}
.btn-accent {
  background: var(--accent);
  color: #fff;
}
.btn-accent:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px var(--accent-glow);
}
.btn-outline {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.3);
}
.btn-outline:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.05);
}
.btn-ghost {
  background: rgba(255,255,255,0.1);
  color: #fff;
  backdrop-filter: blur(5px);
}
.btn-ghost:hover { background: rgba(255,255,255,0.2); }

/* Avatar */
.nav-avatar {
  width: 36px; height: 36px;
  border-radius: 6px;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.9rem;
  cursor: pointer;
  position: relative;
}
.nav-avatar .dropdown {
  position: absolute;
  top: calc(100% + 10px); right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  min-width: 180px;
  padding: 8px 0;
  display: none;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}
.nav-avatar:hover .dropdown { display: block; }
.dropdown a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: var(--transition);
}
.dropdown a:hover { color: #fff; background: rgba(255,255,255,0.05); }
.dropdown hr { border: none; border-top: 1px solid var(--border); margin: 6px 0; }

/* Mobile Nav Toggle */
.nav-toggle { display: none; background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; }

/* ============================================================
   HERO - Ana Sayfa
============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0d0d0d 0%, #1a0000 50%, #0d0d0d 100%);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(229,9,20,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.hero-particles {
  position: absolute; inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero-content {
  position: relative;
  max-width: 700px;
  padding: 20px;
  animation: fadeInUp 0.8s ease;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(229,9,20,0.15);
  border: 1px solid rgba(229,9,20,0.3);
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #ff6b6b;
  margin-bottom: 24px;
  letter-spacing: 0.5px;
}
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #fff 0%, #ccc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero h1 span {
  background: linear-gradient(135deg, var(--accent), #ff6b6b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 36px;
  max-width: 500px;
  margin-left: auto; margin-right: auto;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: 40px;
  justify-content: center;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}
.stat-item { text-align: center; }
.stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  display: block;
}
.stat-label { font-size: 0.8rem; color: var(--text-muted); }

/* ============================================================
   SECTIONS
============================================================ */
.section {
  padding: 80px 5%;
}
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}
.section-title {
  font-size: 1.4rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-title::before {
  content: '';
  width: 4px; height: 22px;
  background: var(--accent);
  border-radius: 2px;
  display: block;
}
.section-link {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: var(--transition);
}
.section-link:hover { color: var(--accent); }

/* ============================================================
   CHANNEL GRID (Canli TV)
============================================================ */
.channels-scroll {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 12px;
  scrollbar-width: thin;
}
.channel-card {
  flex: 0 0 150px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  padding: 16px 12px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.channel-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent) 0%, transparent 100%);
  opacity: 0;
  transition: var(--transition);
}
.channel-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(229,9,20,0.2);
}
.channel-card:hover::after { opacity: 0.05; }
.channel-card.active {
  border-color: var(--accent);
  background: rgba(229,9,20,0.1);
}
.channel-logo {
  width: 70px; height: 45px;
  object-fit: contain;
  margin: 0 auto 10px;
  filter: brightness(0.9);
}
.channel-card:hover .channel-logo { filter: brightness(1); }
.channel-name {
  font-size: 0.72rem;
  color: var(--text-secondary);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.channel-live {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.65rem;
  color: #4ade80;
  margin-top: 5px;
}
.channel-live::before {
  content: '';
  width: 6px; height: 6px;
  background: #4ade80;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

/* ============================================================
   CANLITV SAYFASI
============================================================ */
.livetv-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 0;
  height: calc(100vh - 65px);
  margin-top: 65px;
}
.channel-sidebar {
  background: var(--bg-secondary);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.sidebar-header {
  padding: 20px 16px;
  border-bottom: 1px solid var(--border);
}
.sidebar-header h3 { font-size: 1rem; font-weight: 700; margin-bottom: 12px; }
.sidebar-search {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 9px 14px;
  color: #fff;
  font-size: 0.85rem;
  outline: none;
  transition: var(--transition);
}
.sidebar-search:focus { border-color: var(--accent); }
.sidebar-search::placeholder { color: var(--text-muted); }
.channel-list {
  flex: 1;
  overflow-y: auto;
  padding: 10px 0;
}
.channel-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  transition: var(--transition);
  border-left: 3px solid transparent;
}
.channel-item:hover {
  background: rgba(255,255,255,0.04);
  border-left-color: var(--border);
}
.channel-item.active {
  background: rgba(229,9,20,0.08);
  border-left-color: var(--accent);
}
.ch-logo {
  width: 44px; height: 30px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 4px;
  background: #222;
  padding: 3px;
}
.ch-info { flex: 1; min-width: 0; }
.ch-name {
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ch-badge {
  font-size: 0.62rem;
  background: rgba(229,9,20,0.2);
  color: #ff6b6b;
  padding: 2px 7px;
  border-radius: 3px;
  margin-top: 3px;
  display: inline-block;
}

/* Player Area */
.player-area {
  display: flex;
  flex-direction: column;
  background: #000;
  overflow: hidden;
}
.player-wrapper {
  flex: 1;
  position: relative;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-js {
  width: 100% !important;
  height: 100% !important;
}
.player-info-bar {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.playing-channel {
  display: flex;
  align-items: center;
  gap: 14px;
}
.playing-logo {
  width: 50px; height: 34px;
  object-fit: contain;
  background: #222;
  border-radius: 4px;
  padding: 4px;
}
.playing-name { font-size: 1rem; font-weight: 700; }
.playing-live {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.78rem;
  color: #4ade80;
  font-weight: 600;
}
.playing-live .dot {
  width: 8px; height: 8px;
  background: #4ade80;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}
.player-controls-extra { display: flex; gap: 10px; }

/* ============================================================
   AUTH SAYFALAR (Login / Register)
============================================================ */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
}
.auth-page::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(229,9,20,0.12) 0%, transparent 70%);
  top: -200px; right: -200px;
  pointer-events: none;
}
.auth-page::after {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(229,9,20,0.08) 0%, transparent 70%);
  bottom: -150px; left: -100px;
  pointer-events: none;
}
.auth-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 48px 44px;
  width: 100%;
  max-width: 440px;
  position: relative;
  z-index: 1;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  animation: fadeInUp 0.5s ease;
}
.auth-logo {
  text-align: center;
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 28px;
  letter-spacing: -1px;
  text-shadow: 0 0 30px var(--accent-glow);
}
.auth-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.auth-subtitle {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 32px;
}
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
  letter-spacing: 0.3px;
}
.form-control {
  width: 100%;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  color: #fff;
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition);
  font-family: var(--font);
}
.form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.form-control::placeholder { color: var(--text-muted); }
.form-control.error { border-color: #f87171; }
.form-error {
  font-size: 0.78rem;
  color: #f87171;
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.btn-full { width: 100%; justify-content: center; padding: 13px; font-size: 0.95rem; }
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0;
  color: var(--text-muted);
  font-size: 0.8rem;
}
.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.auth-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 0.87rem;
  color: var(--text-secondary);
}
.auth-footer a { color: var(--accent); font-weight: 600; }
.auth-footer a:hover { text-decoration: underline; }
.alert {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 0.87rem;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.alert-success { background: rgba(74,222,128,0.1); border: 1px solid rgba(74,222,128,0.3); color: #4ade80; }
.alert-error { background: rgba(248,113,113,0.1); border: 1px solid rgba(248,113,113,0.3); color: #f87171; }
.alert-info { background: rgba(99,179,237,0.1); border: 1px solid rgba(99,179,237,0.3); color: #63b3ed; }
.password-wrapper { position: relative; }
.password-toggle {
  position: absolute;
  right: 14px; top: 50%;
  transform: translateY(-50%);
  background: none; border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1rem;
  transition: var(--transition);
}
.password-toggle:hover { color: #fff; }

/* ============================================================
   FEATURES SECTION
============================================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.feature-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  transition: var(--transition);
}
.feature-card:hover {
  border-color: rgba(229,9,20,0.3);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.feature-icon {
  width: 50px; height: 50px;
  background: rgba(229,9,20,0.1);
  border: 1px solid rgba(229,9,20,0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 18px;
}
.feature-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.feature-desc {
  font-size: 0.87rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============================================================
   CATEGORY TABS
============================================================ */
.category-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.cat-tab {
  padding: 7px 18px;
  border-radius: 30px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}
.cat-tab:hover { border-color: rgba(229,9,20,0.3); color: #fff; }
.cat-tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ============================================================
   LOADING SPINNER
============================================================ */
.spinner-overlay {
  position: fixed; inset: 0;
  background: var(--bg-overlay);
  z-index: 9999;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 16px;
}
.spinner {
  width: 48px; height: 48px;
  border: 3px solid rgba(255,255,255,0.1);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.spinner-text { color: var(--text-secondary); font-size: 0.9rem; }

/* ============================================================
   PLAYER PAGE
============================================================ */
.watch-page {
  background: #000;
  min-height: 100vh;
  padding-top: 65px;
}
.player-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 20px;
}
.video-player-box {
  position: relative;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 50px rgba(0,0,0,0.8);
  aspect-ratio: 16/9;
  margin-bottom: 24px;
}
.video-player-box .video-js {
  width: 100% !important;
  height: 100% !important;
}

/* ============================================================
   FOOTER
============================================================ */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 50px 5% 30px;
  margin-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-logo {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 14px;
}
.footer-desc {
  color: var(--text-muted);
  font-size: 0.87rem;
  line-height: 1.8;
}
.footer-heading {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a {
  font-size: 0.87rem;
  color: var(--text-muted);
  transition: var(--transition);
}
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ============================================================
   ANIMATIONS
============================================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
.fade-in {
  animation: fadeInUp 0.5s ease forwards;
  opacity: 0;
}

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 1024px) {
  .livetv-layout { grid-template-columns: 240px 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 65px; left: 0; right: 0;
    background: rgba(0,0,0,0.98);
    padding: 20px;
    gap: 4px;
    border-bottom: 1px solid var(--border);
  }
  .nav-toggle { display: block; }
  .livetv-layout {
    grid-template-columns: 1fr;
    height: auto;
  }
  .channel-sidebar {
    height: 220px;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .channel-list { flex-direction: row; display: flex; overflow-y: hidden; overflow-x: auto; padding: 0 10px; }
  .channel-item { flex: 0 0 auto; flex-direction: column; text-align: center; padding: 10px; border-left: none; border-bottom: 3px solid transparent; }
  .channel-item.active { border-bottom-color: var(--accent); border-left-color: transparent; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
  .hero-stats { gap: 24px; }
  .auth-card { padding: 32px 24px; margin: 16px; }
}
