/* ============================================================
   XtremeIPTVHD — Components CSS
   Blog thumbnails · Home pricing · Contact world map
   Fully responsive · Light & dark theme aware
   ============================================================ */

/* ============================================================
   1. BLOG CARD THUMBNAIL — Clean image fix
      Removes teal blob artefacts, proper image display
   ============================================================ */

/* Override style.css .blog-thumb aspect-ratio with fixed height */
.blog-thumb {
  position: relative !important;
  height: 210px !important;
  aspect-ratio: unset !important;
  overflow: hidden !important;
  border-radius: var(--radius) var(--radius) 0 0 !important;
  background: #0e4d5c !important; /* fallback while image loads */
}

.blog-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-card:hover .blog-thumb img {
  transform: scale(1.06);
}

/* Dark gradient overlay — bottom fade for legibility */
.blog-thumb-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 10, 15, 0.72) 0%,
    rgba(0, 10, 15, 0.08) 55%,
    transparent 100%
  );
  z-index: 1;
  pointer-events: none;
}

/* Category badge — bottom-left, pill style, above overlay */
.blog-thumb .blog-category {
  position: absolute !important;
  bottom: 12px !important;
  left: 14px !important;
  top: auto !important;
  right: auto !important;
  z-index: 2;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 100px;
  background: rgba(8, 145, 178, 0.88);
  color: #fff;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Blog card base */
.blog-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(8, 145, 178, 0.18);
}

/* Blog body */
.blog-body {
  padding: 22px 24px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-meta {
  display: flex;
  gap: 14px;
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.blog-title {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.45;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.blog-excerpt {
  font-size: 0.855rem;
  color: var(--text-secondary);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 16px;
}

.blog-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--primary);
  text-decoration: none;
  transition: gap 0.2s ease;
  margin-top: auto;
}

.blog-read-more:hover { gap: 10px; }
.blog-read-more svg {
  width: 14px; height: 14px;
  stroke: currentColor; fill: none; stroke-width: 2;
}

/* Blog grid responsive */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

@media (max-width: 1024px) { .blog-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; } }
@media (max-width: 600px)  { .blog-grid { grid-template-columns: 1fr; gap: 18px; } }


/* ============================================================
   2. HOME PAGE PRICING TABLES — Updated prices & style
   ============================================================ */

/* Refresh the home pricing section */
.home-pricing-section { padding: 100px 0; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1040px;
  margin: 0 auto;
}

@media (max-width: 900px)  { .pricing-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 580px)  { .pricing-grid { grid-template-columns: 1fr; } }

.pricing-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  position: relative;
}

.pricing-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(8,145,178,0.4), rgba(34,211,238,0.6), transparent);
}

.pricing-card.popular::before {
  background: linear-gradient(90deg, #0891b2, #22d3ee, #67e8f9, #22d3ee, #0891b2);
  height: 3px;
}

.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 56px rgba(8, 145, 178, 0.2);
}

.pricing-header {
  padding: 30px 28px 20px;
}

.pricing-name {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.pricing-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 18px;
}

.pricing-price {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  line-height: 1;
  margin-bottom: 6px;
}

.price-currency {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--primary);
  padding-bottom: 4px;
}

.price-amount {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 3rem;
  color: var(--text-primary);
  line-height: 1;
}

.price-period {
  font-size: 0.8rem;
  color: var(--text-muted);
  padding-bottom: 6px;
  margin-left: 2px;
}

.pricing-body {
  padding: 0 28px 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.pricing-features {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.pricing-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.check-icon {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: rgba(8, 145, 178, 0.12);
  border: 1px solid rgba(8, 145, 178, 0.25);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--primary);
}

.check-icon svg {
  width: 10px; height: 10px;
  stroke: var(--primary); fill: none; stroke-width: 2.5;
}

/* Popular badge */
.popular-badge {
  position: absolute;
  top: -1px; right: 20px;
  background: linear-gradient(135deg, #0891b2, #22d3ee);
  color: #fff;
  font-family: 'Sora', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px 5px;
  border-radius: 0 0 8px 8px;
}


/* ============================================================
   3. CONTACT PAGE — Animated World Map (enhanced)
   ============================================================ */

.contact-map-section {
  padding: 80px 0 80px;
  position: relative;
}

.contact-map-wrap {
  position: relative;
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  min-height: 500px;
  display: flex;
  align-items: stretch;
  background: linear-gradient(160deg, #001218 0%, #011e27 35%, #0c3d4a 65%, #001a1f 100%);
  box-shadow: 0 32px 80px rgba(0,0,0,0.45), 0 0 0 1px rgba(34,211,238,0.12);
}

/* Glow orbs */
.map-orb { position: absolute; border-radius: 50%; pointer-events: none; }
.map-orb-1 {
  width: 450px; height: 450px; top: -100px; left: -80px;
  background: radial-gradient(circle, rgba(8,145,178,0.22), transparent 68%);
  animation: orbDrift 18s ease-in-out infinite;
}
.map-orb-2 {
  width: 320px; height: 320px; bottom: -60px; right: 25%;
  background: radial-gradient(circle, rgba(34,211,238,0.14), transparent 68%);
  animation: orbDrift 22s ease-in-out infinite reverse;
}
.map-orb-3 {
  width: 200px; height: 200px; top: 40%; left: 45%;
  background: radial-gradient(circle, rgba(103,232,249,0.1), transparent 70%);
  animation: orbDrift 14s ease-in-out infinite 3s;
}

/* Floating particles */
.map-particles {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  overflow: hidden;
}
.map-particles span {
  position: absolute; border-radius: 50%;
  background: rgba(103, 232, 249, 0.5);
  animation: floatDot linear infinite;
}
.map-particles span:nth-child(1) { width:4px; height:4px; left:15%; top:25%; animation-duration:9s; }
.map-particles span:nth-child(2) { width:3px; height:3px; left:70%; top:18%; animation-duration:12s; animation-delay:1s; }
.map-particles span:nth-child(3) { width:5px; height:5px; left:45%; top:72%; animation-duration:8s; animation-delay:2s; background:rgba(34,211,238,0.4); }
.map-particles span:nth-child(4) { width:3px; height:3px; left:85%; top:60%; animation-duration:14s; animation-delay:0.5s; }
.map-particles span:nth-child(5) { width:4px; height:4px; left:28%; top:80%; animation-duration:10s; animation-delay:3s; background:rgba(8,145,178,0.5); }
.map-particles span:nth-child(6) { width:3px; height:3px; left:62%; top:40%; animation-duration:11s; animation-delay:1.5s; }
.map-particles span:nth-child(7) { width:2px; height:2px; left:5%;  top:60%; animation-duration:13s; animation-delay:4s; }
.map-particles span:nth-child(8) { width:4px; height:4px; left:90%; top:35%; animation-duration:9s; animation-delay:2.5s; background:rgba(103,232,249,0.4); }

/* SVG map */
#world-map-svg {
  flex: 1;
  width: 60%;
  height: auto;
  position: relative;
  z-index: 2;
  padding: 32px 24px 32px 40px;
  box-sizing: border-box;
  min-height: 460px;
}

/* Land paths */
.map-land {
  fill: none;
  stroke: rgba(8, 145, 178, 0.38);
  stroke-width: 0.7;
  stroke-linejoin: round;
  stroke-linecap: round;
}

/* Mesh lines */
.map-mesh {
  fill: none;
  stroke: rgba(34, 211, 238, 0.12);
  stroke-width: 0.4;
}

/* Animated connection lines */
.map-conn {
  stroke: rgba(34, 211, 238, 0.22);
  stroke-width: 0.7;
  stroke-dasharray: 5 4;
  animation: connFlow 5s linear infinite;
}
@keyframes connFlow {
  0%   { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -36; }
}

/* Node rings — expanding pulse */
.map-node-ring {
  fill: none;
  stroke: rgba(103, 232, 249, 0.5);
  stroke-width: 0.8;
  animation: nodeRing 2.8s ease-out infinite;
}
.map-pulse-lg { animation-duration: 2.2s; }

@keyframes nodeRing {
  0%   { r: 5;  opacity: 0.9; }
  100% { r: 18; opacity: 0; }
}

/* Node dots */
.map-node {
  fill: rgba(103, 232, 249, 0.9);
  filter: drop-shadow(0 0 4px rgba(103, 232, 249, 0.8));
  animation: nodePulse 2.8s ease-in-out infinite;
}
@keyframes nodePulse {
  0%, 100% { opacity: 0.8; }
  50%       { opacity: 1; filter: drop-shadow(0 0 7px rgba(103,232,249,1)); }
}

/* Country label badges */
.map-badge {
  position: absolute;
  z-index: 10;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(0, 18, 24, 0.82);
  color: rgba(103, 232, 249, 0.95);
  border: 1px solid rgba(34, 211, 238, 0.3);
  backdrop-filter: blur(6px);
  white-space: nowrap;
  letter-spacing: 0.04em;
  pointer-events: none;
  animation: badgeFade 3s ease-in-out infinite;
}
@keyframes badgeFade {
  0%, 100% { opacity: 0.85; }
  50%       { opacity: 1; }
}
/* Position badges relative to map SVG — approximate % positions */
/* ── Badge positions — spread to avoid overlap ── */
.map-badge-uk { left: 25.5%; top: 12%;  }   /* United Kingdom */
.map-badge-ie { left: 22.5%; top: 15%;  }   /* Ireland */
.map-badge-se { left: 27.5%; top:  8%;  }   /* Sweden */
.map-badge-nl { left: 30.5%; top: 14%;  }   /* Netherlands */
.map-badge-de { left: 31.5%; top: 18%;  }   /* Germany */
.map-badge-fr { left: 28.5%; top: 20.5%;}   /* France */
.map-badge-es { left: 25%;   top: 23%;  }   /* Spain */
.map-badge-it { left: 31%;   top: 24%;  }   /* Italy */
.map-badge-ca { left: 12%;   top: 16%;  }   /* Canada */
.map-badge-us { left:  8%;   top: 22%;  }   /* USA */
.map-badge-ae { left: 34%;   top: 25.5%;}   /* UAE */
.map-badge-in { left: 37.5%; top: 29%;  }   /* India */
.map-badge-sg { left: 41.5%; top: 34%;  }   /* Singapore */
.map-badge-jp { left: 46%;   top: 16%;  }   /* Japan */
.map-badge-au { left: 43%;   top: 58%;  }   /* Australia */
.map-badge-br { left: 14%;   top: 62%;  }   /* Brazil */

/* Right info panel */
.map-info-overlay {
  width: 38%;
  min-width: 240px;
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  padding: 40px 36px;
  background: linear-gradient(180deg, rgba(0,18,24,0.3) 0%, rgba(0,10,16,0.6) 100%);
  border-left: 1px solid rgba(34,211,238,0.1);
  backdrop-filter: blur(4px);
}

.map-info-inner { width: 100%; }

.map-info-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
  background: rgba(8, 145, 178, 0.15);
  color: #67e8f9;
  border: 1px solid rgba(34, 211, 238, 0.25);
  margin-bottom: 20px;
}

.map-live-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.8);
  animation: livePulse 1.6s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes livePulse {
  0%, 100% { box-shadow: 0 0 4px rgba(34,197,94,0.6); }
  50%       { box-shadow: 0 0 12px rgba(34,197,94,0.9); }
}

.map-info-title {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  color: #fff;
  line-height: 1.15;
  margin-bottom: 14px;
  letter-spacing: -0.025em;
}
.map-info-title span {
  background: linear-gradient(135deg, #22d3ee, #67e8f9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.map-info-sub {
  font-size: 0.845rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.65;
  margin-bottom: 24px;
}

.map-stat-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 28px;
}

.map-stat {
  background: rgba(8, 145, 178, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.18);
  border-radius: 10px;
  padding: 12px 14px;
  text-align: center;
  backdrop-filter: blur(6px);
  transition: background 0.2s ease, border-color 0.2s ease;
}
.map-stat:hover {
  background: rgba(8, 145, 178, 0.2);
  border-color: rgba(34, 211, 238, 0.35);
}

.map-stat-num {
  display: block;
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  color: #67e8f9;
  line-height: 1;
  margin-bottom: 4px;
}

.map-stat-label {
  font-size: 0.62rem;
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

/* CTA button in map */
.map-cta-btn {
  display: block;
  text-align: center;
  padding: 13px 20px;
  background: linear-gradient(135deg, #0891b2, #22d3ee);
  color: #fff;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  border-radius: 100px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 6px 24px rgba(8,145,178,0.4);
}
.map-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(8,145,178,0.6);
  color: #fff;
}

/* ── Badge animation stagger ── */
.map-badge-ie { animation-delay: 0.3s; }
.map-badge-se { animation-delay: 0.6s; }
.map-badge-nl { animation-delay: 0.9s; }
.map-badge-de { animation-delay: 1.2s; }
.map-badge-fr { animation-delay: 1.5s; }
.map-badge-es { animation-delay: 1.8s; }
.map-badge-it { animation-delay: 2.1s; }
.map-badge-ca { animation-delay: 0.4s; }
.map-badge-us { animation-delay: 0.8s; }
.map-badge-ae { animation-delay: 1.0s; }
.map-badge-in { animation-delay: 1.3s; }
.map-badge-sg { animation-delay: 1.7s; }
.map-badge-jp { animation-delay: 2.0s; }
.map-badge-au { animation-delay: 2.3s; }
.map-badge-br { animation-delay: 2.6s; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .contact-map-wrap {
    flex-direction: column;
    min-height: auto;
  }
  #world-map-svg {
    width: 100%;
    min-height: 300px;
    padding: 24px 20px 0;
  }
  .map-info-overlay {
    width: 100%;
    border-left: none;
    border-top: 1px solid rgba(34,211,238,0.1);
    padding: 28px 28px 32px;
  }
  /* On tablet the SVG goes full width so badges use full-width % */
  .map-badge-uk { left: 42%; top:  9%; }
  .map-badge-ie { left: 38%; top: 11%; }
  .map-badge-se { left: 46%; top:  5%; }
  .map-badge-nl { left: 49%; top: 11%; }
  .map-badge-de { left: 51%; top: 14%; }
  .map-badge-fr { left: 45%; top: 16%; }
  .map-badge-es { left: 41%; top: 18%; }
  .map-badge-it { left: 49%; top: 19%; }
  .map-badge-ca { left: 20%; top: 13%; }
  .map-badge-us { left: 13%; top: 17%; }
  .map-badge-ae { left: 55%; top: 20%; }
  .map-badge-in { left: 61%; top: 23%; }
  .map-badge-sg { left: 68%; top: 27%; }
  .map-badge-jp { left: 75%; top: 12%; }
  .map-badge-au { left: 72%; top: 46%; }
  .map-badge-br { left: 23%; top: 50%; }
}

@media (max-width: 600px) {
  .contact-map-section { padding: 60px 0 60px; }
  .contact-map-wrap { border-radius: 14px; }
  #world-map-svg { min-height: 240px; padding: 16px 12px 0; }
  .map-info-overlay { padding: 20px 20px 24px; }
  .map-info-title { font-size: 1.35rem; }
  .map-stat-row { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .map-stat-num { font-size: 1rem; }
  .map-badge { display: none; }
  .map-orb-1, .map-orb-2, .map-orb-3 { display: none; }
}
