/* FLOWW Network TV - Main Styles */
/* Import our design system */
@import url('/tv/css/style-guide.css');

/* TV-Specific Layout Overrides */
body {
  padding-top: var(--fn-header-height, 70px);
  min-height: 100vh;
}

/* Hero Section Enhancements */
.fn-hero {
  position: relative;
  height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: 
    radial-gradient(circle at 20% 80%, rgba(255, 210, 63, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(230, 57, 70, 0.08) 0%, transparent 50%),
    linear-gradient(135deg, var(--fn-dark) 0%, var(--fn-darker) 50%, var(--fn-gray-950) 100%);
}

.fn-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('/hero-bg.jpg') center/cover;
  opacity: 0.1;
  z-index: 0;
}

.fn-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 1000px;
  padding: 0 var(--fn-space-6);
}

.fn-hero-logo {
  height: 120px;
  margin-bottom: var(--fn-space-8);
  filter: drop-shadow(0 8px 32px rgba(0, 0, 0, 0.3));
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.fn-hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  margin-bottom: var(--fn-space-4);
  background: linear-gradient(135deg, var(--fn-light) 0%, var(--fn-accent) 50%, var(--fn-light) 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 4s ease-in-out infinite;
  text-shadow: 0 8px 32px rgba(255, 210, 63, 0.3);
}

.fn-hero-subtitle {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 300;
  margin-bottom: var(--fn-space-10);
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
  letter-spacing: 0.5px;
}

.fn-hero-cta {
  display: flex;
  gap: var(--fn-space-4);
  justify-content: center;
  flex-wrap: wrap;
}

.fn-hero-btn {
  padding: var(--fn-space-4) var(--fn-space-8);
  font-size: var(--fn-text-lg);
  font-weight: 700;
  border-radius: var(--fn-radius-full);
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.fn-hero-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
}

.fn-hero-btn:hover::before {
  left: 100%;
}

.fn-hero-btn-primary {
  background: linear-gradient(135deg, var(--fn-accent) 0%, var(--fn-accent-dark) 100%);
  color: var(--fn-dark);
  box-shadow: 0 8px 32px rgba(255, 210, 63, 0.4);
}

.fn-hero-btn-primary:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 16px 48px rgba(255, 210, 63, 0.6);
}

.fn-hero-btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--fn-light);
  border-color: rgba(255, 255, 255, 0.3);
}

.fn-hero-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(255, 255, 255, 0.1);
}

/* Content Sections */
.fn-section {
  padding: var(--fn-space-20) 0;
  position: relative;
}

.fn-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 10% 20%, rgba(255, 210, 63, 0.02) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(0, 217, 255, 0.02) 0%, transparent 50%);
  z-index: -1;
}

.fn-section-dark {
  background: var(--fn-gray-950);
}

.fn-section-header {
  text-align: center;
  margin-bottom: var(--fn-space-16);
}

.fn-section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: var(--fn-space-4);
  color: var(--fn-light);
  position: relative;
}

.fn-section-title::after {
  content: '';
  position: absolute;
  bottom: -var(--fn-space-2);
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--fn-accent), var(--fn-secondary));
  border-radius: var(--fn-radius-full);
}

.fn-section-subtitle {
  font-size: var(--fn-text-xl);
  color: var(--fn-gray-400);
  font-weight: 300;
  max-width: 600px;
  margin: 0 auto;
}

/* Video Grid */
.fn-video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: var(--fn-space-8);
  margin-bottom: var(--fn-space-12);
}

.fn-video-card {
  background: rgba(30, 41, 59, 0.9);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(203, 213, 225, 0.08);
  border-radius: var(--fn-radius-xl);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.fn-video-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(255, 210, 63, 0.03) 50%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.fn-video-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 
    0 32px 80px rgba(0, 0, 0, 0.25),
    0 12px 32px rgba(255, 210, 63, 0.15);
  border-color: rgba(255, 210, 63, 0.2);
}

.fn-video-card:hover::after {
  opacity: 1;
}

.fn-video-thumbnail {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.fn-video-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.fn-video-card:hover .fn-video-thumbnail img {
  transform: scale(1.1);
}

.fn-video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.fn-video-card:hover .fn-video-overlay {
  opacity: 1;
}

.fn-video-play-btn {
  width: 70px;
  height: 70px;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  border-radius: 50%;
  color: var(--fn-dark);
  font-size: 24px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
}

.fn-video-play-btn:hover {
  background: var(--fn-accent);
  transform: scale(1.1);
  box-shadow: 0 12px 40px rgba(255, 210, 63, 0.4);
}

.fn-video-badges {
  position: absolute;
  top: var(--fn-space-3);
  left: var(--fn-space-3);
  display: flex;
  gap: var(--fn-space-2);
}

.fn-video-info {
  padding: var(--fn-space-5);
}

.fn-video-title {
  font-size: var(--fn-text-lg);
  font-weight: 600;
  color: var(--fn-light);
  margin-bottom: var(--fn-space-2);
  line-height: 1.3;
}

.fn-video-meta {
  font-size: var(--fn-text-sm);
  color: var(--fn-gray-400);
  margin-bottom: var(--fn-space-3);
}

.fn-video-teams {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--fn-space-4);
}

.fn-team {
  display: flex;
  align-items: center;
  gap: var(--fn-space-2);
  font-size: var(--fn-text-sm);
  color: var(--fn-gray-300);
}

.fn-team img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

.fn-vs {
  font-size: var(--fn-text-xs);
  color: var(--fn-gray-500);
  font-weight: 700;
  padding: var(--fn-space-1) var(--fn-space-2);
  background: var(--fn-gray-800);
  border-radius: var(--fn-radius-sm);
}

/* Live Stream Section */
.fn-live-section {
  background: linear-gradient(135deg, var(--fn-primary) 0%, var(--fn-primary-dark) 100%);
  padding: var(--fn-space-16) 0;
  position: relative;
  overflow: hidden;
}

.fn-live-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: 
    radial-gradient(circle at 25% 25%, rgba(0, 255, 136, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(255, 210, 63, 0.1) 0%, transparent 50%);
  animation: rotate 20s linear infinite;
  z-index: 0;
}

@keyframes rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.fn-live-content {
  position: relative;
  z-index: 1;
}

.fn-live-indicator {
  display: inline-flex;
  align-items: center;
  gap: var(--fn-space-2);
  background: rgba(0, 255, 136, 0.2);
  backdrop-filter: blur(10px);
  padding: var(--fn-space-3) var(--fn-space-6);
  border-radius: var(--fn-radius-full);
  font-size: var(--fn-text-lg);
  font-weight: 700;
  color: var(--fn-light);
  margin-bottom: var(--fn-space-6);
  border: 1px solid rgba(0, 255, 136, 0.3);
}

.fn-live-dot {
  width: 12px;
  height: 12px;
  background: var(--fn-live);
  border-radius: 50%;
  animation: live-pulse 2s infinite;
}

/* Feature Cards */
.fn-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--fn-space-8);
}

.fn-feature-card {
  background: rgba(30, 41, 59, 0.8);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(203, 213, 225, 0.1);
  border-radius: var(--fn-radius-xl);
  padding: var(--fn-space-8);
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.fn-feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.fn-feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 210, 63, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.fn-feature-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--fn-accent) 0%, var(--fn-accent-dark) 100%);
  border-radius: var(--fn-radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--fn-dark);
  margin: 0 auto var(--fn-space-6);
  box-shadow: 0 8px 32px rgba(255, 210, 63, 0.3);
}

.fn-feature-title {
  font-size: var(--fn-text-xl);
  font-weight: 600;
  color: var(--fn-light);
  margin-bottom: var(--fn-space-3);
}

.fn-feature-description {
  color: var(--fn-gray-400);
  line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
  .fn-hero {
    height: 80vh;
    padding: 0 var(--fn-space-4);
  }
  
  .fn-hero-cta {
    flex-direction: column;
    align-items: center;
  }
  
  .fn-hero-btn {
    width: 100%;
    max-width: 300px;
  }
  
  .fn-video-grid {
    grid-template-columns: 1fr;
    gap: var(--fn-space-6);
  }
  
  .fn-section {
    padding: var(--fn-space-16) 0;
  }
  
  .fn-feature-grid {
    grid-template-columns: 1fr;
  }
}

/* Utility Classes */
.fn-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--fn-space-6);
}

.fn-text-center { text-align: center; }
.fn-mb-4 { margin-bottom: var(--fn-space-4); }
.fn-mb-8 { margin-bottom: var(--fn-space-8); }
.fn-mt-8 { margin-top: var(--fn-space-8); }