/**
 * TubeCast - Modern OTT / Streaming Stylesheet
 * Responsive, Dark Theme, Netflix/HBO/Prime inspired UI
 */

:root {
  --tc-primary: #f59e0b;
  --tc-primary-hover: #d97706;
  --tc-primary-glow: rgba(245, 158, 11, 0.25);
  --tc-emola: #ff6600;
  --tc-emola-dark: #e05500;
  --tc-bg: #090c10;
  --tc-bg-elevated: #0f141d;
  --tc-surface: #151c28;
  --tc-surface-card: #131924;
  --tc-surface-hover: #1f293b;
  --tc-border: #212c3f;
  --tc-border-subtle: #17202f;
  --tc-text: #f8fafc;
  --tc-text-muted: #94a3b8;
  --tc-text-subtle: #64748b;
  --tc-success: #10b981;
  --tc-danger: #ef4444;
  --tc-warning: #f59e0b;
  --tc-info: #0ea5e9;
  --tc-radius-sm: 6px;
  --tc-radius-md: 10px;
  --tc-radius-lg: 16px;
  --tc-radius-full: 9999px;
  --tc-font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  background-color: var(--tc-bg);
  color: var(--tc-text);
  font-family: var(--tc-font);
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--tc-bg);
}
::-webkit-scrollbar-thumb {
  background: var(--tc-border);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--tc-primary);
}

/* Global Navbar */
.tc-navbar {
  background-color: rgba(9, 12, 16, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--tc-border-subtle);
  transition: all 0.3s ease;
  z-index: 1030;
}
.tc-navbar.scrolled {
  background-color: rgba(9, 12, 16, 0.98);
  border-bottom-color: var(--tc-border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}
.tc-logo-img {
  height: 38px;
  width: auto;
  transition: transform 0.2s ease;
}
.tc-logo-img:hover {
  transform: scale(1.03);
}

.tc-nav-link {
  color: var(--tc-text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 0.9rem !important;
  border-radius: var(--tc-radius-sm);
  transition: color 0.2s ease, background-color 0.2s ease;
}
.tc-nav-link:hover, .tc-nav-link.active {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.05);
}

/* Hero Section */
.tc-hero {
  position: relative;
  min-height: 550px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--tc-bg);
}
.tc-hero-backdrop {
  position: absolute;
  top: 0;
  right: 0;
  width: 65%;
  height: 100%;
  background-size: cover;
  background-position: center top;
  z-index: 1;
}
.tc-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #090c10 35%, rgba(9, 12, 16, 0.8) 60%, rgba(9, 12, 16, 0.2) 100%),
              linear-gradient(0deg, #090c10 0%, rgba(9, 12, 16, 0) 50%);
  z-index: 2;
}
.tc-hero-content {
  position: relative;
  z-index: 3;
  max-width: 620px;
}

/* Badges */
.tc-badge-premium {
  background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: 0 2px 8px var(--tc-primary-glow);
}
.tc-badge-free {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
  font-weight: 600;
  font-size: 0.75rem;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
}
.tc-badge-quality {
  background: rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  font-weight: 600;
  font-size: 0.7rem;
  padding: 0.15rem 0.45rem;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Buttons */
.tc-btn-primary {
  background: linear-gradient(135deg, var(--tc-primary) 0%, var(--tc-primary-hover) 100%);
  color: #0f172a;
  font-weight: 700;
  border: none;
  border-radius: var(--tc-radius-md);
  padding: 0.7rem 1.4rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px var(--tc-primary-glow);
}
.tc-btn-primary:hover {
  background: linear-gradient(135deg, #fbbf24 0%, var(--tc-primary) 100%);
  color: #0f172a;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

.tc-btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--tc-radius-md);
  padding: 0.7rem 1.4rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  backdrop-filter: blur(8px);
  transition: all 0.2s ease;
}
.tc-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
}

.tc-btn-emola {
  background: linear-gradient(135deg, var(--tc-emola) 0%, var(--tc-emola-dark) 100%);
  color: #ffffff;
  font-weight: 700;
  border: none;
  border-radius: var(--tc-radius-md);
  padding: 0.75rem 1.5rem;
  box-shadow: 0 4px 15px rgba(255, 102, 0, 0.3);
}
.tc-btn-emola:hover {
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 102, 0, 0.45);
}

/* Movie/Series Cards */
.tc-card {
  position: relative;
  background-color: var(--tc-surface-card);
  border: 1px solid var(--tc-border-subtle);
  border-radius: var(--tc-radius-md);
  overflow: hidden;
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.28s ease, border-color 0.28s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.tc-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: var(--tc-border);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.6), 0 0 0 1px var(--tc-primary-glow);
}
.tc-card-poster-wrapper {
  position: relative;
  aspect-ratio: 2/3;
  width: 100%;
  overflow: hidden;
  background-color: #111620;
}
.tc-card-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.tc-card:hover .tc-card-poster {
  transform: scale(1.06);
}
.tc-card-badge-top {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 4;
}
.tc-card-play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(9, 12, 16, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 3;
}
.tc-card:hover .tc-card-play-overlay {
  opacity: 1;
}
.tc-card-play-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--tc-primary);
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.5);
  transform: scale(0.85);
  transition: transform 0.2s ease;
}
.tc-card:hover .tc-card-play-btn {
  transform: scale(1);
}

.tc-card-body {
  padding: 0.85rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.tc-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.35rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tc-card-meta {
  font-size: 0.8rem;
  color: var(--tc-text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
}

/* Section Titles */
.tc-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}
.tc-section-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
}
.tc-section-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 20px;
  background: var(--tc-primary);
  border-radius: 2px;
}

/* Modals & Alerts */
.modal-content.tc-modal {
  background-color: var(--tc-surface);
  border: 1px solid var(--tc-border);
  color: var(--tc-text);
  border-radius: var(--tc-radius-lg);
}
.tc-modal .modal-header {
  border-bottom: 1px solid var(--tc-border-subtle);
}
.tc-modal .modal-footer {
  border-top: 1px solid var(--tc-border-subtle);
}
.tc-alert {
  border-radius: var(--tc-radius-md);
  border: none;
  font-weight: 500;
}

/* Footer */
.tc-footer {
  background-color: #06080b;
  border-top: 1px solid var(--tc-border-subtle);
  padding: 3.5rem 0 2rem;
  color: var(--tc-text-muted);
}
.tc-footer a {
  color: var(--tc-text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}
.tc-footer a:hover {
  color: var(--tc-primary);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .tc-hero {
    min-height: 440px;
  }
  .tc-hero-backdrop {
    width: 100%;
    opacity: 0.35;
  }
  .tc-hero-overlay {
    background: linear-gradient(0deg, #090c10 10%, rgba(9, 12, 16, 0.7) 100%);
  }
  .tc-section-title {
    font-size: 1.15rem;
  }
}

/* User Area Utilities & Enhancements */
.tc-scrollbar-none::-webkit-scrollbar {
  display: none;
}
.tc-scrollbar-none {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.transition-transform {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.transition-transform:hover {
  transform: translateY(-3px);
}
.hover-opacity-100:hover {
  opacity: 1 !important;
}
