/* ================================
   Host Player - IPTV Site
   Mobile-First | Dark Theme
   ================================ */

:root {
  --bg: #0b0b1a;
  --surface: #12122a;
  --card: #1a1a3e;
  --primary: #7c3aed;
  --accent: #25d366;
  --cyan: #06b6d4;
  --text: #f0f0f5;
  --muted: #9ca3af;
  --border: #2a2a4a;
  --gradient: linear-gradient(135deg, #7c3aed 0%, #06b6d4 100%);
  --whatsapp: #25d366;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(0,0,0,.4);
  --max-w: 1200px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary); }

.container { width: 90%; max-width: var(--max-w); margin: 0 auto; }

/* ---- HEADER ---- */
.header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  background: rgba(11,11,26,.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background .3s;
}
.header .container { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 1.25rem; font-weight: 700; color: var(--text); }
.logo svg { width: 36px; height: 36px; }
.logo:hover { color: var(--cyan); }

.nav { display: none; position: absolute; top: 64px; left: 0; width: 100%; background: var(--surface); border-bottom: 1px solid var(--border); flex-direction: column; padding: 1rem 0; }
.nav.active { display: flex; }
.nav a { padding: .75rem 5%; color: var(--text); font-weight: 500; transition: background .2s; }
.nav a:hover { background: var(--card); color: var(--cyan); }

.nav-toggle { background: none; border: none; color: var(--text); font-size: 1.5rem; cursor: pointer; padding: 4px 8px; }

@media(min-width:768px) {
  .nav { display: flex; position: static; width: auto; background: none; flex-direction: row; padding: 0; border: none; gap: 4px; align-items: center; }
  .nav a { padding: .5rem .75rem; border-radius: 8px; }
  .nav-toggle { display: none; }
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: 50px; font-weight: 700; font-size: 1rem;
  border: none; cursor: pointer; transition: transform .2s, box-shadow .2s;
  text-align: center; line-height: 1.3;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-primary { background: var(--gradient); color: #fff; }
.btn-whatsapp { background: var(--whatsapp); color: #fff; }
.btn-whatsapp:hover { color: #fff; }
.btn-outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-sm { padding: 10px 20px; font-size: .875rem; }

/* ---- HERO ---- */
.hero {
  padding: 120px 0 60px;
  background: linear-gradient(180deg, var(--bg) 0%, var(--surface) 100%);
  text-align: center;
  overflow: hidden;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
  background: radial-gradient(circle at 30% 40%, rgba(124,58,237,.15) 0%, transparent 50%),
              radial-gradient(circle at 70% 60%, rgba(6,182,212,.1) 0%, transparent 50%);
  animation: heroBg 20s linear infinite;
  pointer-events: none;
}
@keyframes heroBg { 0%{transform:rotate(0)} 100%{transform:rotate(360deg)} }
.hero-content { position: relative; z-index: 1; }
.hero h1 { font-size: 2rem; line-height: 1.2; margin-bottom: 1rem; }
.hero h1 span { background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero p { font-size: 1.1rem; color: var(--muted); max-width: 600px; margin: 0 auto 2rem; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.hero-img { margin: 2rem auto 0; max-width: 600px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.hero-img img { width: 100%; object-fit: cover; aspect-ratio: 16/9; }

@media(min-width:768px) {
  .hero { padding: 140px 0 80px; }
  .hero h1 { font-size: 3rem; }
  .hero p { font-size: 1.25rem; }
}

/* ---- SECTIONS ---- */
section { padding: 60px 0; }
.section-title { text-align: center; margin-bottom: 3rem; }
.section-title h2 { font-size: 1.75rem; margin-bottom: .5rem; }
.section-title p { color: var(--muted); max-width: 600px; margin: 0 auto; }

@media(min-width:768px) {
  section { padding: 80px 0; }
  .section-title h2 { font-size: 2.25rem; }
}

/* ---- GRID ---- */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr 1fr; }

@media(min-width:768px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr 1fr 1fr; }
}

/* ---- CARDS ---- */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  transition: transform .2s, border-color .2s;
}
.card:hover { transform: translateY(-4px); border-color: var(--primary); }
.card-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.card h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.card p { color: var(--muted); font-size: .95rem; }

/* ---- DEVICE CARDS ---- */
.device-card { text-align: center; padding: 1.5rem; }
.device-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 8px; margin-bottom: 1rem; }
.device-card h3 { font-size: 1.05rem; }

/* ---- CTA SECTION ---- */
.cta-section {
  background: var(--gradient);
  text-align: center;
  padding: 60px 0;
  border-radius: 0;
}
.cta-section h2 { font-size: 1.75rem; margin-bottom: 1rem; color: #fff; }
.cta-section p { color: rgba(255,255,255,.85); margin-bottom: 2rem; max-width: 600px; margin-left: auto; margin-right: auto; }
.cta-section .btn { background: #fff; color: var(--primary); font-size: 1.1rem; }
.cta-section .btn:hover { background: #f0f0f0; }

/* ---- TESTIMONIALS ---- */
.testimonial-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}
.testimonial-stars { color: #fbbf24; font-size: 1.1rem; margin-bottom: .75rem; }
.testimonial-card blockquote { font-style: italic; color: var(--muted); margin-bottom: 1rem; font-size: .95rem; line-height: 1.6; }
.testimonial-author { font-weight: 600; font-size: .9rem; }
.testimonial-author span { color: var(--muted); font-weight: 400; }

/* ---- FAQ ---- */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
  width: 100%; background: none; border: none; color: var(--text);
  padding: 1.25rem 0; font-size: 1rem; font-weight: 600;
  text-align: left; cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font);
}
.faq-question::after { content: '+'; font-size: 1.5rem; transition: transform .3s; color: var(--primary); }
.faq-question.active::after { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-answer p { padding: 0 0 1.25rem; color: var(--muted); line-height: 1.7; }

/* ---- BLOG CARDS ---- */
.blog-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s, border-color .2s;
}
.blog-card:hover { transform: translateY(-4px); border-color: var(--primary); }
.blog-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.blog-card-body { padding: 1.5rem; }
.blog-card-body h3 { font-size: 1.1rem; margin-bottom: .5rem; }
.blog-card-body h3 a { color: var(--text); }
.blog-card-body h3 a:hover { color: var(--cyan); }
.blog-card-body p { color: var(--muted); font-size: .9rem; margin-bottom: 1rem; }
.blog-card-body .read-more { font-weight: 600; font-size: .9rem; }

/* ---- ARTICLE / CONTENT PAGE ---- */
.article-hero {
  padding: 100px 0 40px;
  background: linear-gradient(180deg, var(--bg), var(--surface));
}
.article-hero h1 { font-size: 1.75rem; line-height: 1.3; max-width: 800px; }
.breadcrumb { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1rem; font-size: .85rem; color: var(--muted); }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--cyan); }

.content { max-width: 800px; margin: 0 auto; padding: 2rem 0 4rem; }
.content h2 { font-size: 1.5rem; margin: 2.5rem 0 1rem; color: var(--text); position: relative; padding-left: 16px; border-left: 4px solid var(--primary); }
.content h3 { font-size: 1.2rem; margin: 2rem 0 .75rem; }
.content p { color: var(--muted); margin-bottom: 1.25rem; }
.content ul, .content ol { color: var(--muted); margin: 0 0 1.25rem 1.5rem; }
.content li { margin-bottom: .5rem; }
.content strong { color: var(--text); }
.content img { border-radius: var(--radius); margin: 1.5rem 0; box-shadow: var(--shadow); }
.content a { color: var(--cyan); text-decoration: underline; }

.content-cta {
  background: var(--card);
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  margin: 2rem 0;
}
.content-cta h3 { margin-bottom: .5rem; font-size: 1.25rem; }
.content-cta p { color: var(--muted); margin-bottom: 1.25rem; }

/* ---- STATS ---- */
.stats { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: center; text-align: center; padding: 2rem 0; }
.stat { flex: 1; min-width: 140px; }
.stat-number { font-size: 2rem; font-weight: 800; background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.stat-label { color: var(--muted); font-size: .9rem; }

/* ---- FOOTER ---- */
.footer { background: var(--surface); border-top: 1px solid var(--border); padding: 60px 0 30px; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; margin-bottom: 2rem; }
.footer h4 { font-size: 1rem; margin-bottom: 1rem; }
.footer p, .footer a { color: var(--muted); font-size: .9rem; }
.footer a { display: block; margin-bottom: .5rem; }
.footer a:hover { color: var(--cyan); }
.footer-bottom { text-align: center; padding-top: 2rem; border-top: 1px solid var(--border); color: var(--muted); font-size: .85rem; }

@media(min-width:768px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

/* ---- WHATSAPP FLOAT ---- */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background: var(--whatsapp);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,.4);
  z-index: 999;
  transition: transform .2s;
}
.whatsapp-float:hover { transform: scale(1.1); }
.whatsapp-float svg { width: 32px; height: 32px; fill: #fff; }

/* ---- UTILITIES ---- */
.text-center { text-align: center; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 2rem; }
.bg-surface { background: var(--surface); }

/* ---- BLOG LISTING ---- */
.blog-hero { padding: 100px 0 40px; background: linear-gradient(180deg, var(--bg), var(--surface)); text-align: center; }
.blog-hero h1 { font-size: 2rem; margin-bottom: .5rem; }
.blog-hero p { color: var(--muted); }

/* ---- RESPONSIVE TWEAKS ---- */
@media(min-width:1024px) {
  .hero h1 { font-size: 3.5rem; }
  .article-hero h1 { font-size: 2.5rem; }
  .section-title h2 { font-size: 2.5rem; }
}
