/* TizIPTV Mega Theme Styles & Animations */

/* Fonts Override (Poppins + Inter combo if not already loaded) */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@600;700;800&family=Inter:wght@400;500;600&display=swap');

:root {
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
}

h1, h2, h3, h4, .font-heading {
  font-family: var(--font-heading);
}

body, p, a, span {
  font-family: var(--font-body);
}

/* Glassmorphism & Topbar */
.glass-header {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: var(--bg-header);
  border-bottom: 1px solid var(--border-light);
}

.topbar-promo {
  background: var(--gold, #f59e0b);
  color: #000;
  text-align: center;
  padding: 8px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 1000;
}
.topbar-promo a {
  background: #000;
  color: #fff;
  padding: 4px 10px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 11px;
  text-transform: uppercase;
}
.topbar-close {
  position: absolute;
  right: 15px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 800;
}

/* Float WhatsApp Button */
.wa-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #25d366;
  color: #FFF;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  z-index: 1000;
  width: 60px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 10px rgba(37,211,102, 0.4);
  animation: bounce-in 1s ease-out;
}

/* Scroll To Top */
.scroll-top {
  position: fixed;
  bottom: 100px;
  right: 30px;
  background: var(--bg-tertiary);
  color: #fff;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: 0.3s;
  z-index: 999;
  border: 1px solid rgba(255,255,255,0.1);
}
.scroll-top.visible {
  opacity: 1;
  pointer-events: auto;
}

/* Animations Definitions */
@keyframes slide-up {
  from { transform: translateY(40px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes pulse-btn {
  0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4); }
  70% { box-shadow: 0 0 0 15px rgba(245, 158, 11, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}
.btn-pulse {
  animation: pulse-btn 2s infinite;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.ticker-wrap {
  overflow: hidden;
  white-space: nowrap;
  width: 100%;
  box-sizing: border-box;
}
.ticker-content {
  display: inline-block;
  animation: marquee 30s linear infinite;
  white-space: nowrap;
}

/* Word Stagger */
.word-stagger span {
  display: inline-block;
  opacity: 0;
  transform: translateY(10px);
}

/* Typing Cursor */
.typing-text::after {
  content: '|';
  animation: blink 1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* Glow & Hover */
.card-hover:hover {
  transform: scale(1.04);
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.15); /* Accent blue glow */
  border-color: rgba(37, 99, 235, 0.3);
  z-index: 0;
}

/* Light Mode Overrides */
[data-theme="light"] .card, 
[data-theme="light"] .faq-box, 
[data-theme="light"] .pricing-card {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .card-hover:hover {
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
  border-color: var(--accent);
}

[data-theme="light"] .glass-header {
  background: rgba(255, 255, 255, 0.8) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.card-hover {
  transition: all 0.3s ease;
}

.badge-float {
  animation: float 3s ease-in-out infinite;
}
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0px); }
}

.glow-live {
  animation: glow-red 2s infinite;
}
@keyframes glow-red {
  0% { box-shadow: 0 0 5px #ef4444; }
  50% { box-shadow: 0 0 20px #ef4444; }
  100% { box-shadow: 0 0 5px #ef4444; }
}

/* Card Flip */
.flip-card {
  perspective: 1000px;
  height: 120px;
}
.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}
.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}
.flip-card-front, .flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
}
.flip-card-back {
  transform: rotateY(180deg);
  background: var(--bg-tertiary);
  color: var(--accent);
}

/* Video Modal */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.9);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: 0.3s;
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.video-wrapper {
  width: 80%;
  max-width: 900px;
  aspect-ratio: 16/9;
}

/* SVG Line Draw */
.path-draw {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  transition: stroke-dashoffset 2s ease-in-out;
}
.path-draw.drawn {
  stroke-dashoffset: 0;
}

/* Gradient Text */
.text-gradient {
  background: linear-gradient(90deg, var(--accent) 0%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* FAQ Accordion */
.faq-box {
  background: var(--bg-primary);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  border: 1px solid var(--border-light);
}
.faq-q {
  padding: 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
}
.faq-a {
  max-height: 0;
  padding: 0 20px;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  color: var(--text-secondary);
}
.faq-box.active .faq-a {
  padding: 0 20px 20px;
  max-height: 400px; /* arbitrary high number */
}

/* VOD Posters */
.vod-poster {
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  transition: 0.4s;
}
.vod-poster img {
  width: 100%;
  height: auto;
  display: block;
}
.vod-overlay {
  position: absolute;
  bottom: -100%;
  left: 0; right: 0;
  background: rgba(0,0,0,0.85);
  padding: 20px;
  transition: 0.4s;
  text-align: center;
}
.vod-poster:hover .vod-overlay {
  bottom: 0;
}

/* Carousel */
.testi-carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  gap: 30px;
  padding-bottom: 20px;
}
.testi-carousel::-webkit-scrollbar { display: none; }
.testi-card {
  min-width: 300px;
  scroll-snap-align: center;
}
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}
.dot {
  width: 10px;
  height: 10px;
  background: var(--border-light);
  border-radius: 50%;
  cursor: pointer;
  transition: 0.3s;
}
.dot.active {
  background: var(--gold);
}

/* VOD/Tabs System */
.tab-btn {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
  padding: 10px 20px;
  border-radius: 30px;
  cursor: pointer;
  transition: 0.3s;
}
.tab-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.tab-pane {
  display: none;
  animation: fadeSlide 0.5s forwards;
}
.tab-pane.active {
  display: block;
}
@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Map Grid */
.map-bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1000 500" xmlns="http://www.w3.org/2000/svg"><circle cx="450" cy="150" r="2" fill="white" opacity="0.5"/><circle cx="500" cy="180" r="2" fill="white" opacity="0.5"/><circle cx="550" cy="120" r="2" fill="white" opacity="0.5"/><circle cx="250" cy="180" r="2" fill="white" opacity="0.5"/><circle cx="280" cy="220" r="2" fill="white" opacity="0.5"/><circle cx="520" cy="280" r="2" fill="white" opacity="0.5"/></svg>');
  background-size: cover;
  opacity: 0.3;
  pointer-events: none;
  z-index: 0;
}
