/* --- Navigasyon --- */
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle:hover { color: var(--accent); }
.nav-toggle::before {
  content: '';
  width: 22px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
}
.main-nav { display: flex; align-items: center; gap: 1.5rem; }
.nav-list, .nav-user { display: flex; align-items: center; gap: 0.75rem; }
.nav-list a, .nav-user a {
  color: var(--text-muted);
  font-size: 0.95rem;
  padding: 0.35em 0.5em;
  border-radius: var(--radius);
}
.nav-list a:hover, .nav-user a:hover { color: var(--text); background: var(--bg-elevated); }
.nav-user a[href*="logout"] { color: var(--accent); }

/* --- Butonlar --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6em 1.2em;
  font: inherit;
  font-size: 0.95rem;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}
.btn:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--accent-hover); }
.btn-secondary { background: var(--bg-elevated); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover:not(:disabled) { background: var(--border); }
.btn-ghost { background: transparent; color: var(--text-muted); }
.btn-ghost:hover:not(:disabled) { color: var(--text); background: var(--bg-elevated); }

/* --- Kartlar --- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition);
}
.card:hover { border-color: var(--accent); }
.card-body { padding: 1.25rem; }
.card-title { margin: 0 0 0.5rem; font-size: 1.1rem; }
.card-meta { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 0.5rem; }
.card-link { display: block; color: inherit; }
.card-link:hover { color: var(--accent); }

/* --- Form --- */
.form-group { margin-bottom: 1rem; }
.form-label { display: block; margin-bottom: 0.35rem; font-size: 0.9rem; color: var(--text-muted); }
.form-control {
  width: 100%;
  max-width: 400px;
  padding: 0.6em 0.75em;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition);
}
.form-control::placeholder { color: var(--text-muted); }
.form-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.2);
}
textarea.form-control { min-height: 120px; resize: vertical; }
.form-hint { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.25rem; }
.form-error { font-size: 0.85rem; color: #f87171; margin-top: 0.25rem; }

/* --- Grid --- */
.grid { display: grid; gap: var(--space); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* --- Stream durumu kartı (ana sayfa) --- */
.js-stream-status {
  padding: 1.25rem 1.5rem;
  min-height: 4rem;
}
.stream-status-header {
  margin-bottom: 1rem;
}
.stream-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
}
.stream-status-badge--live {
  background: rgba(34, 197, 94, 0.2);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.4);
}
.stream-status-badge--offline {
  background: var(--bg-elevated);
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.stream-status-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  font-size: 0.65rem;
  font-weight: bold;
  flex-shrink: 0;
}
.stream-status-icon--on { background: #22c55e; color: #fff; }
.stream-status-icon--off { background: var(--border); color: var(--text-muted); }
.card-body.stream-live .stream-status-icon--on { box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.4); }
.stream-status-body { margin-bottom: 0.5rem; }
.stream-status-title {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.4;
  word-break: break-word;
  color: var(--text);
}
.stream-status-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}
.stream-status-meta-item {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  color: var(--text-muted);
}
.stream-status-meta-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-muted);
  opacity: 0.9;
}
.stream-status-watch {
  display: inline-block;
  width: 100%;
  text-align: center;
  padding: 0.65rem 1rem;
  margin-top: 0.25rem;
}
.stream-status-followers {
  margin: 0;
  padding: 0.75rem 0 0;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
}
.stream-status-followers-label {
  font-weight: 500;
  margin-right: 0.25rem;
}
.card-body.stream-live {
  border-left: 3px solid #22c55e;
}
.card-body.stream-live .stream-status-body {
  padding-left: 0;
}

/* --- Giriş / Kayıt sayfaları --- */
.auth-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - var(--header-h) - 4rem);
  padding: 2rem var(--space);
}
.auth-page .container {
  max-width: 440px;
  width: 100%;
}
.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}
.auth-card .form-control { max-width: none; }
.auth-title {
  margin: 0 0 0.25rem;
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
}
.auth-subtitle {
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  text-align: center;
}
.auth-card .btn-primary {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  margin-top: 0.25rem;
}
.auth-divider {
  height: 1px;
  background: var(--border);
  margin: 1.5rem 0;
}
.auth-footer {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 1rem;
}
.auth-footer a { font-weight: 500; }
.auth-alert {
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  font-size: 0.9rem;
}
.auth-alert--error {
  background: rgba(248, 113, 113, 0.15);
  border: 1px solid rgba(248, 113, 113, 0.4);
  color: #f87171;
}
.auth-alert--error ul { padding-left: 1.25rem; margin: 0; list-style: disc; }
.auth-remember { font-size: 0.9rem; color: var(--text-muted); }
.auth-remember input { margin-right: 0.35rem; }
.auth-terms { font-size: 0.875rem; color: var(--text-muted); line-height: 1.4; }
.auth-terms a { text-decoration: underline; text-underline-offset: 2px; }

/* --- İletişim sayfası --- */
.contact-page {
  padding: 2rem var(--space) 3rem;
  max-width: 640px;
  margin: 0 auto;
}
.contact-intro {
  text-align: center;
  margin-bottom: 2rem;
}
.contact-intro .contact-title {
  margin: 0 0 0.5rem;
  font-size: 1.75rem;
  font-weight: 700;
}
.contact-intro .contact-subtitle {
  margin: 0;
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}
.contact-card .form-control { max-width: none; }
.contact-card .btn-primary {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  min-width: 140px;
}
.contact-success {
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #4ade80;
}
.contact-success p { margin: 0; }
.contact-form .form-group:last-of-type { margin-bottom: 1.25rem; }

/* --- Program (Yayın Programı) sayfası --- */
.schedule-page {
  padding: 2rem var(--space) 3rem;
  max-width: 720px;
  margin: 0 auto;
}
.schedule-intro {
  text-align: center;
  margin-bottom: 2rem;
}
.schedule-intro .schedule-title {
  margin: 0 0 0.5rem;
  font-size: 1.75rem;
  font-weight: 700;
}
.schedule-intro .schedule-subtitle {
  margin: 0;
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.schedule-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}
.schedule-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.schedule-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem 1.5rem;
  align-items: baseline;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}
.schedule-item:last-child { border-bottom: none; padding-bottom: 0; }
.schedule-item:first-child { padding-top: 0; }
.schedule-item-day-time {
  font-weight: 600;
  color: var(--text);
  min-width: 140px;
}
.schedule-item-day-time .schedule-day {
  display: inline-block;
  background: rgba(124, 58, 237, 0.2);
  color: var(--accent);
  padding: 0.2em 0.5em;
  border-radius: var(--radius);
  font-size: 0.9rem;
  margin-right: 0.5rem;
}
.schedule-item-content { color: var(--text-muted); line-height: 1.45; }
.schedule-item-content .schedule-topic { color: var(--text); font-weight: 500; }
.schedule-item-note { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.25rem; }
.schedule-empty {
  text-align: center;
  padding: 2.5rem 1.5rem;
  color: var(--text-muted);
}
.schedule-empty p { margin: 0; }
.schedule-empty p + p { margin-top: 0.5rem; font-size: 0.9rem; }

/* --- Anlar (Highlights) sayfası --- */
.highlights-page { padding: 2rem var(--space) 3rem; }
.highlights-intro {
  text-align: center;
  margin-bottom: 2rem;
}
.highlights-intro .highlights-title {
  margin: 0 0 0.5rem;
  font-size: 1.75rem;
  font-weight: 700;
}
.highlights-intro .highlights-subtitle {
  margin: 0;
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.highlight-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.highlight-card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}
.highlight-card .card-body { flex: 1; display: flex; flex-direction: column; }
.highlight-card .card-title { font-size: 1.05rem; line-height: 1.35; }
.highlight-card .card-title a { display: block; }
.highlight-card .card-meta { margin-bottom: 0.5rem; font-size: 0.85rem; }
.highlight-card-thumb {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--bg-elevated);
  overflow: hidden;
}
.highlight-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}
.highlight-card:hover .highlight-card-thumb img { transform: scale(1.03); }
.highlight-card-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--transition);
}
.highlight-card:hover .highlight-card-thumb::after { opacity: 1; }
.highlight-platform {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  background: rgba(124, 58, 237, 0.2);
  padding: 0.2em 0.5em;
  border-radius: var(--radius);
  margin-top: 0.75rem;
}
.highlight-card .btn-ghost { margin-top: auto; align-self: flex-start; }
.highlights-empty {
  text-align: center;
  padding: 2.5rem 1.5rem;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  max-width: 480px;
  margin: 0 auto;
}
.highlights-empty p { margin: 0; }
.highlights-empty p + p { margin-top: 0.5rem; font-size: 0.9rem; }

/* --- Çekilişler sayfası --- */
.giveaways-page { padding: 2rem var(--space) 3rem; }
.giveaways-intro {
  text-align: center;
  margin-bottom: 2rem;
}
.giveaways-intro .giveaways-title {
  margin: 0 0 0.5rem;
  font-size: 1.75rem;
  font-weight: 700;
}
.giveaways-intro .giveaways-subtitle {
  margin: 0;
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.giveaways-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.giveaway-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.giveaway-card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}
.giveaway-card .card-body { flex: 1; display: flex; flex-direction: column; }
.giveaway-card .card-title {
  font-size: 1.15rem;
  line-height: 1.35;
  margin-bottom: 0.5rem;
}
.giveaway-card .giveaway-prize {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(124, 58, 237, 0.2);
  padding: 0.3em 0.6em;
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
}
.giveaway-card .card-meta { font-size: 0.85rem; margin-bottom: 0.5rem; }
.giveaway-card .giveaway-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 0.75rem;
  flex: 1;
}
.giveaway-countdown {
  margin: 0.75rem 0;
  padding: 0.6rem 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
}
.giveaway-card .btn-primary { margin-top: auto; align-self: flex-start; }
.giveaways-empty {
  text-align: center;
  padding: 2.5rem 1.5rem;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  max-width: 480px;
  margin: 0 auto 1.5rem;
}
.giveaways-empty p { margin: 0; }
.giveaways-empty p + p { margin-top: 0.5rem; font-size: 0.9rem; }
.giveaways-empty .btn { margin-top: 1rem; }
.giveaways-footer {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.95rem;
}
.giveaways-footer a { font-weight: 500; }

/* --- Ana sayfa (Home / Index) --- */
.home-page { padding-bottom: 3rem; }
.home-hero {
  text-align: center;
  padding: 2.5rem 0 2rem;
  max-width: 560px;
  margin: 0 auto;
}
.home-hero .hero-title {
  margin: 0 0 0.5rem;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
}
.home-hero .hero-sub {
  margin: 0 0 1.5rem;
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.home-hero .stream-status-card-wrap {
  max-width: 420px;
  margin: 0 auto 1.5rem;
}
.home-hero .hero-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}
.home-hero .hero-links .btn { min-width: 120px; }
.home-section {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.home-section-title {
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
  font-weight: 600;
}
.home-section-sub {
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}
.home-features {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}
.home-feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.home-feature-card:hover {
  border-color: var(--accent);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
}
.home-feature-card .card-body { flex: 1; display: flex; flex-direction: column; }
.home-feature-card .card-title { font-size: 1.1rem; margin-bottom: 0.35rem; }
.home-feature-card .card-meta { margin-bottom: 0.75rem; font-size: 0.9rem; }
.home-feature-card .btn { margin-top: auto; align-self: flex-start; }
.home-cta-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  margin-top: 0.5rem;
}
.home-cta-strip .btn { flex-shrink: 0; }
.home-hero .card { box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25); }
