/*
Theme Name: IPTV Premium Sweden
Theme URI: https://iptvpremium.se
Author: Antigravity
Author URI: https://iptvpremium.se
Description: A premium, fast, dark-mode focused custom theme for IPTV Premium Sweden.
Version: 1.0.0
Text Domain: iptv-premium
*/

/*
Theme Name: IPTV Premium
Description: Custom Nordic Dark Mode Theme
Text Domain: iptv-premium
*/

:root {
  --bg-dark: #0B0E14;
  --bg-card: #151A22;
  --accent-green: #00E676;
  --accent-green-hover: #00C853;
  --accent-cyan: #00B0FF;
  --text-light: #FFFFFF;
  --text-muted: #94A3B8;
  --border-color: rgba(255,255,255,0.1);
  --header-bg: rgba(11, 14, 20, 0.95);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--accent-green);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

p {
  margin-bottom: 1.5rem;
  color: var(--text-muted);
}

.text-gradient {
  background: linear-gradient(90deg, var(--accent-green), var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px; /* Crucial for mobile edge clearance */
}

section {
  padding: 80px 0;
}

/* Header & Nav */
.site-header {
  position: sticky;
  top: 0;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo span {
  color: var(--accent-green);
}

.nav-links {
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav-links a {
  font-weight: 500;
  font-size: 1rem;
}

.cta-button {
  background: var(--accent-green);
  color: #000 !important;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.2s, background 0.3s;
}

.cta-button:hover {
  background: var(--accent-green-hover);
  transform: translateY(-2px);
  color: #000 !important;
}

/* Hamburger Menu (Mobile First) */
.hamburger {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 1001;
}

/* Hero Section */
.hero {
  padding: 100px 0 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 1.125rem;
  margin-bottom: 30px;
}

.hero-actions {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.btn-secondary {
  background: rgba(255,255,255,0.1);
  color: var(--text-light);
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.2);
}

.hero-image img {
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0,230,118,0.1);
}

/* Trust Ticks */
.trust-ticks {
  display: flex;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.trust-tick {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Feature Cards */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--bg-card);
  padding: 30px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-green);
}

.feature-icon {
  font-size: 2rem;
  color: var(--accent-green);
  margin-bottom: 20px;
}

/* Channels Showcase (Text chips) */
.channels-marquee {
  display: flex;
  gap: 15px;
  overflow: hidden;
  padding: 20px 0;
  white-space: nowrap;
}

.channel-chip {
  background: var(--bg-card);
  padding: 10px 20px;
  border-radius: 30px;
  font-weight: 600;
  border: 1px solid var(--border-color);
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.pricing-card {
  background: var(--bg-card);
  padding: 40px 30px;
  border-radius: 16px;
  text-align: center;
  border: 1px solid var(--border-color);
  position: relative;
  display: flex;
  flex-direction: column;
}

.pricing-card.popular {
  border-color: var(--accent-green);
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(0,230,118,0.1);
}

.popular-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-green);
  color: #000;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 700;
}

.pricing-months {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 10px;
}

.pricing-price {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent-green);
  margin-bottom: 5px;
}

.pricing-price span {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 400;
}

.pricing-features {
  margin: 30px 0;
  text-align: left;
  flex-grow: 1;
}

.pricing-features li {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-light);
}

.pricing-btn {
  width: 100%;
  display: block;
  text-align: center;
}

/* FAQ Accordion */
.faq-item {
  background: var(--bg-card);
  border-radius: 8px;
  margin-bottom: 15px;
  border: 1px solid var(--border-color);
  overflow: hidden;
}

.faq-header {
  padding: 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 1.125rem;
}

.faq-content {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-content {
  padding: 0 20px 20px;
  max-height: 500px;
}

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

.blog-card {
  background: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.blog-card-img {
  height: 200px;
  width: 100%;
  object-fit: cover;
}

.blog-card-content {
  padding: 25px;
}

.blog-date {
  font-size: 0.875rem;
  color: var(--accent-green);
  margin-bottom: 10px;
  display: block;
}

.blog-card-title {
  font-size: 1.25rem;
  margin-bottom: 15px;
  color: var(--text-light);
}

/* Inner Page Two Column Layout */
.page-header {
  text-align: center;
  padding: 60px 0 40px;
}

.content-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.content-block {
  background: var(--bg-card);
  padding: 40px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  margin-bottom: 40px;
}

/* Footer */
.site-footer {
  background: #0a0a0a;
  border-top: 1px solid var(--border-color);
  padding: 80px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-col h4 {
  color: var(--text-light);
  margin-bottom: 20px;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul li a {
  color: var(--text-muted);
}

.footer-col ul li a:hover {
  color: var(--accent-green);
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid var(--border-color);
  padding-top: 30px;
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
  .hero h1 { font-size: 2.5rem; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .hamburger {
    display: block;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: #0a0a0a;
    flex-direction: column;
    justify-content: center;
    transition: 0.3s ease-in-out;
    opacity: 0;
    visibility: hidden;
  }
  
  .nav-links.active {
    right: 0;
    opacity: 1;
    visibility: visible;
  }

  .nav-links li {
    margin: 15px 0;
  }

  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 60px 0;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-image {
    order: -1;
  }

  .content-two-col {
    grid-template-columns: 1fr;
  }

  .pricing-card.popular {
    transform: none;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px; /* Guaranteed padding for 375px screens */
  }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }

  .features-grid { grid-template-columns: repeat(2, 1fr); } /* 2 per row as requested */
  
  .pricing-grid { grid-template-columns: 1fr; } /* 1 per row for pricing on mobile */
  
  .blog-grid { grid-template-columns: 1fr; } /* 1 per row for blog on mobile */
  
  .footer-grid { grid-template-columns: 1fr; }
  
  .content-block { padding: 20px; }
}

/* Content Images inside Blog/Silo pages */
.content-image {
  border-radius: 12px;
  margin-bottom: 30px;
  width: 100%;
  height: auto;
  display: block;
}

@media (min-width: 768px) {
  .content-image {
    max-width: 600px; /* Constrain size on desktop */
    margin-left: auto;
    margin-right: auto;
  }
}

/* Blog Grid Layout */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 30px;
}

@media (min-width: 768px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-green);
}

.blog-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.blog-card-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-date {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.blog-card-title {
  font-size: 1.25rem;
  margin-bottom: 15px;
  line-height: 1.4;
}

.blog-card-title a {
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.2s ease;
}

.blog-card-title a:hover {
  color: var(--accent-green);
}

.blog-card-content p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  flex-grow: 1;
}
