/* ===================================
   Mira Futbol TV — style.css
   =================================== */

:root {
  --color-primary: #6C3FC5;
  --color-primary-hover: #7E57C2;
  --color-primary-dark: #4A2C8A;
  --color-secondary: #FF6B35;
  --color-secondary-hover: #FF5722;
  --color-bg: #0D0D2B;
  --color-bg-alt: #1A1A3E;
  --color-bg-card: #222250;
  --color-bg-footer: #070718;
  --color-text: #F0F0FF;
  --color-text-light: #B0B0CC;
  --color-heading: #FFFFFF;
  --color-accent-text: #FFD54F;
  --color-link: #82B1FF;
  --color-success: #4CAF50;
  --color-danger: #EF5350;
  --color-white: #FFFFFF;
  --border-radius: 16px;
  --shadow-card: 0 8px 32px rgba(108, 63, 197, 0.2);
  --font-main: 'Inter', system-ui, sans-serif;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-main);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
}
a { color: var(--color-link); text-decoration: none; }
img { max-width: 100%; height: auto; }

/* ===================================
   CONDOR
   =================================== */
#condor {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  top: -100px;
  left: -100px;
}
@media (hover: none), (pointer: coarse) {
  #condor { display: none !important; }
}

/* ===================================
   HEADER / NAV
   =================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: linear-gradient(180deg, rgba(13,13,43,0.97) 0%, rgba(26,26,62,0.95) 100%);
  border-bottom: 1px solid rgba(108, 63, 197, 0.3);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background 0.3s ease;
  padding: 0 28px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.site-header.scrolled {
  background: rgba(7, 7, 24, 0.98);
}

.logo-gradient {
  font-size: 1.35rem;
  font-weight: 700;
  background: linear-gradient(135deg, #6C3FC5, #FF6B35);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  letter-spacing: -0.3px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}
.nav-links a {
  color: var(--color-text-light);
  font-size: 0.84rem;
  padding: 7px 12px;
  border-radius: 8px;
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}
.nav-links a:hover {
  color: var(--color-accent-text);
  background: rgba(108, 63, 197, 0.15);
  backdrop-filter: blur(4px);
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  align-items: center;
  justify-content: center;
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 64px; left: 0; right: 0;
  background: rgba(10, 10, 34, 0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(108, 63, 197, 0.3);
  padding: 14px 20px 20px;
  z-index: 99;
  flex-direction: column;
  gap: 2px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  color: var(--color-text-light);
  font-size: 0.95rem;
  padding: 12px 16px;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.2s;
}
.mobile-nav a:hover {
  color: var(--color-accent-text);
  background: rgba(108, 63, 197, 0.12);
}

/* Channel header (simplified) */
.channel-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(13, 13, 43, 0.98);
  border-bottom: 1px solid rgba(108, 63, 197, 0.3);
  backdrop-filter: blur(12px);
  padding: 0 28px;
  height: 64px;
  display: flex;
  align-items: center;
}

/* ===================================
   HERO SECTION
   =================================== */
.hero {
  padding-top: 130px;
  padding-bottom: 50px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(108,63,197,0.07) 0%, transparent 60%),
    radial-gradient(circle at 80% 50%, rgba(255,107,53,0.05) 0%, transparent 60%);
  pointer-events: none;
}

.hero-badge {
  display: inline-block;
  background: rgba(108, 63, 197, 0.85);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  padding: 6px 18px;
  border-radius: 20px;
  margin-bottom: 22px;
  text-transform: uppercase;
}
.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  color: var(--color-heading);
  letter-spacing: -0.5px;
  line-height: 1.1;
  margin-bottom: 18px;
}
.hero-divider {
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #6C3FC5, #FF6B35);
  border-radius: 2px;
  margin: 0 auto 26px;
}
.hero p {
  max-width: 820px;
  margin: 0 auto;
  color: var(--color-text-light);
  font-size: 1.05rem;
  line-height: 1.75;
  padding: 0 20px;
}

/* ===================================
   SECTIONS
   =================================== */
.section { padding: 20px 0 50px; }
.section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-heading);
  text-align: center;
  margin-bottom: 6px;
}
.section-subtitle {
  text-align: center;
  color: var(--color-accent-text);
  font-size: 0.95rem;
  margin-bottom: 28px;
}

/* ===================================
   AGENDA / SCHEDULE IFRAME
   =================================== */
#schedule-wrapper {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}
#schedule-wrapper iframe {
  width: 100%;
  height: 500px;
  border: none;
  border-radius: var(--border-radius);
  border: 1px solid rgba(108, 63, 197, 0.3);
  box-shadow: 0 8px 32px rgba(108, 63, 197, 0.15);
  display: block;
}

/* ===================================
   CHANNELS GRID
   =================================== */
.channels-section { padding: 10px 0 60px; }
.channels-section h3.section-title { font-size: 1.5rem; margin: 0 0 6px; }

.channels-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.channel-card {
  background: var(--color-bg-alt);
  border-radius: var(--border-radius);
  border: 1px solid rgba(108, 63, 197, 0.2);
  overflow: hidden;
  transition: all 0.3s ease;
  text-decoration: none;
  display: block;
  color: inherit;
}
.channel-card:hover {
  transform: scale(1.02);
  border-color: var(--color-primary);
  box-shadow: 0 12px 40px rgba(108, 63, 197, 0.3);
}

.card-media {
  background: var(--color-bg-card);
  padding: 24px;
  text-align: center;
  position: relative;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-media img {
  width: 90px;
  height: 58px;
  object-fit: contain;
  filter: brightness(1.1);
}

.live-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.62rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.6px;
  background: rgba(0,0,0,0.4);
  padding: 3px 8px;
  border-radius: 20px;
}
.live-dot {
  width: 7px;
  height: 7px;
  background: var(--color-danger);
  border-radius: 50%;
  animation: pulse-dot 1.5s infinite;
  flex-shrink: 0;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.75); }
}

.card-info { padding: 18px 20px 22px; }
.card-info h4 {
  color: var(--color-heading);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.card-info p {
  color: var(--color-text-light);
  font-size: 0.82rem;
  line-height: 1.5;
  margin-bottom: 14px;
}

.btn-stream {
  display: inline-block;
  background: linear-gradient(135deg, #6C3FC5, #FF6B35);
  color: #fff;
  padding: 9px 22px;
  border-radius: 25px;
  font-weight: 600;
  font-size: 0.82rem;
  text-decoration: none;
  transition: all 0.3s ease;
}
.btn-stream:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(108, 63, 197, 0.4);
}

/* ===================================
   HOW IT WORKS
   =================================== */
.how-it-works { padding: 10px 0 60px; }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}
.step-card {
  background: var(--color-bg-alt);
  border-radius: var(--border-radius);
  padding: 32px 24px;
  text-align: center;
  border: 1px solid rgba(108, 63, 197, 0.15);
  transition: border-color 0.3s;
}
.step-card:hover { border-color: rgba(108, 63, 197, 0.4); }
.step-icon { font-size: 2.5rem; margin-bottom: 14px; display: block; }
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, #6C3FC5, #FF6B35);
  color: #fff;
  border-radius: 50%;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.step-card h4 {
  color: var(--color-heading);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.step-card p {
  color: var(--color-text-light);
  font-size: 0.87rem;
  line-height: 1.55;
}

/* ===================================
   FAQ
   =================================== */
.faq-section { padding: 10px 0 60px; }
.faq-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}
.faq-item { border-bottom: 1px solid rgba(108, 63, 197, 0.2); }
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  cursor: pointer;
  color: var(--color-heading);
  font-weight: 600;
  font-size: 1rem;
  user-select: none;
  transition: color 0.2s;
}
.faq-question:hover { color: var(--color-accent-text); }
.faq-icon {
  color: var(--color-secondary);
  font-size: 1.3rem;
  font-weight: 700;
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 16px;
  line-height: 1;
}
.faq-question.active .faq-icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.faq-answer.open {
  max-height: 500px;
  padding-bottom: 18px;
}
.faq-answer p {
  color: var(--color-text-light);
  line-height: 1.7;
  font-size: 0.95rem;
}

/* ===================================
   CHANNEL PAGE
   =================================== */
.channel-page-main {
  padding-top: 90px;
  padding-bottom: 60px;
}
.channel-page-main h1 {
  color: var(--color-heading);
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  margin: 30px 0;
  letter-spacing: -0.5px;
}

.player-wrapper {
  max-width: 1100px;
  margin: 20px auto;
  padding: 0 20px;
}
.player-iframe {
  width: 100%;
  height: 500px;
  border: none;
  border-radius: var(--border-radius);
  border: 1px solid rgba(108, 63, 197, 0.3);
  box-shadow: 0 8px 32px rgba(108, 63, 197, 0.2);
  display: block;
}

.btn-center { text-align: center; margin: 22px 0; }
.btn-reload {
  background: rgba(108, 63, 197, 0.2);
  border: 1px solid var(--color-primary);
  color: var(--color-heading);
  padding: 12px 32px;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  font-family: var(--font-main);
  transition: all 0.3s ease;
}
.btn-reload:hover {
  background: var(--color-primary);
  box-shadow: 0 4px 16px rgba(108, 63, 197, 0.35);
}

.channel-description {
  max-width: 900px;
  margin: 30px auto 0;
  padding: 0 20px 40px;
  color: var(--color-text-light);
}
.channel-description h3 {
  color: var(--color-heading);
  font-size: 1.3rem;
  text-align: center;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(108, 63, 197, 0.2);
}
.channel-description h4 {
  color: var(--color-accent-text);
  font-size: 1.05rem;
  margin-top: 26px;
  margin-bottom: 10px;
}
.channel-description p {
  line-height: 1.75;
  font-size: 0.97rem;
}
.channel-description a {
  color: var(--color-primary-hover);
  font-weight: 500;
}
.channel-description a:hover { color: var(--color-secondary); }

/* ===================================
   FOOTER
   =================================== */
.site-footer {
  background: var(--color-bg-footer);
  padding: 28px 40px;
  border-top: 1px solid rgba(108, 63, 197, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-copy {
  color: var(--color-text-light);
  font-size: 0.85rem;
}
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a {
  color: var(--color-primary);
  font-size: 0.85rem;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--color-secondary); }

/* ===================================
   DMCA PAGE
   =================================== */
.dmca-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 110px 20px 70px;
}
.dmca-content h1 {
  color: var(--color-heading);
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 30px;
}
.dmca-content h2 {
  color: var(--color-accent-text);
  font-size: 1.2rem;
  font-weight: 600;
  margin-top: 32px;
  margin-bottom: 12px;
}
.dmca-content p {
  color: var(--color-text-light);
  line-height: 1.75;
  margin-bottom: 16px;
}
.dmca-content a { color: var(--color-primary-hover); }

/* ===================================
   RESPONSIVE
   =================================== */
@media (max-width: 1024px) {
  .channels-grid { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 2.4rem; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .channels-grid { grid-template-columns: 1fr; max-width: 420px; }
  .steps-grid { grid-template-columns: 1fr; max-width: 420px; }
  .hero h1 { font-size: 2rem; }
  .site-footer {
    flex-direction: column;
    text-align: center;
    padding: 22px 20px;
  }
  .footer-links { justify-content: center; }
}

@media (max-width: 480px) {
  .hero { padding-top: 100px; padding-bottom: 30px; }
  .hero h1 { font-size: 1.7rem; }
  .site-header, .channel-header { padding: 0 16px; }
  .player-iframe { height: 260px; }
  #schedule-wrapper iframe { height: 440px; }
}
