/*
Theme Name: IPTV UK Custom Theme
Theme URI: https://i-ptvuk.shop
Author: James Harrison
Description: A highly optimized, custom WordPress theme built for i-ptvuk.shop.
Version: 1.0
*/

:root {
  --primary: #00e5ff;
  --primary-glow: rgba(0, 229, 255, 0.3);
  --secondary: #7b2cbf;
  --bg-dark: #0f172a;
  --bg-card: rgba(30, 41, 59, 0.7);
  --text-light: #f8fafc;
  --text-muted: #94a3b8;
  --border: rgba(255, 255, 255, 0.1);
}

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: 3.5rem;
  background: linear-gradient(135deg, #fff 0%, var(--text-muted) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 40px;
  text-align: center;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

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

a:hover {
  color: #fff;
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-spacing {
  padding-top: 80px;
  padding-bottom: 80px;
}

/* Header */
header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.5rem 0;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  color: #fff;
  letter-spacing: -0.5px;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.logo:hover {
  opacity: 0.8;
}

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

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

nav a {
  color: var(--text-light);
  font-weight: 500;
  font-size: 0.95rem;
}

.header-buttons {
  display: flex;
  gap: 1rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.btn-primary {
  background: var(--primary);
  color: #000;
  box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
  background: #00c3d9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 229, 255, 0.4);
  color: #000;
}

.btn-outline {
  background: transparent;
  color: var(--text-light);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
}

/* Hero Section */
.hero {
  padding-top: 8rem;
  padding-bottom: 2rem;
  min-height: auto;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: var(--secondary);
  filter: blur(150px);
  opacity: 0.4;
  z-index: -1;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: var(--primary);
  filter: blur(150px);
  opacity: 0.2;
  z-index: -1;
}

.hero-content {
  display: flex;
  align-items: center;
  gap: 3rem;
  max-width: 100%;
}

.hero-text {
  flex: 1;
  text-align: left;
}

.hero-visual {
  flex: 1;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  text-align: left;
}

.hero-cta {
  display: flex;
  gap: 1.5rem;
  justify-content: flex-start;
  margin-bottom: 0;
}

.hero-image {
  max-width: 100%;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border);
}

/* Trust Bar */
.trust-bar {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.5);
  margin-bottom: 2rem;
}

.trust-item {
  font-weight: 600;
  color: var(--primary);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.trust-item span {
  color: var(--text-light);
}

/* Cards / Glassmorphism */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Pricing Grid */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.pricing-card {
  text-align: center;
  position: relative;
}

.pricing-card.featured {
  border-color: var(--primary);
  box-shadow: 0 0 20px var(--primary-glow);
}

.pricing-card.featured::before {
  content: 'Best Value';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #000;
  padding: 0.2rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: bold;
}

.price {
  font-size: 3rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: #fff;
  margin: 1rem 0;
}

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

.pricing-features {
  list-style: none;
  margin: 2rem 0;
  text-align: left;
}

.pricing-features li {
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-light);
}

.pricing-features li::before {
  content: '✓';
  color: var(--primary);
  font-weight: bold;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.features-grid .glass-card {
  padding: 1.5rem;
}

.features-grid h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.features-grid p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Supported Devices */
.devices-grid {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.device-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 1.5rem 2rem;
  border-radius: 15px;
  text-align: center;
  font-weight: 600;
  transition: transform 0.3s ease;
}

.device-item:hover {
  transform: scale(1.05);
  border-color: var(--primary);
  box-shadow: 0 0 15px var(--primary-glow);
}

.device-item span {
  display: block;
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

/* Steps */
.steps-container {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 2rem;
}

.step {
  text-align: center;
  flex: 1;
}

.step-number {
  width: 60px;
  height: 60px;
  background: var(--primary);
  color: #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 1.5rem;
  box-shadow: 0 0 20px var(--primary-glow);
}

.step-desc {
  color: var(--text-muted);
  margin-top: 1rem;
  line-height: 1.6;
}

.app-badge {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  font-weight: 500;
  color: var(--text-light);
  transition: all 0.3s ease;
}

.app-badge:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--primary);
}

/* FAQ Accordion */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 1rem;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 1.5rem;
  background: transparent;
  border: none;
  color: var(--text-light);
  font-weight: 600;
  font-size: 1.1rem;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.3s ease;
}

.faq-question:hover {
  background: rgba(255, 255, 255, 0.05);
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--primary);
  transition: transform 0.3s ease;
}

.faq-question[aria-expanded="true"]::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease-out;
  color: var(--text-muted);
}

.faq-question[aria-expanded="true"] + .faq-answer {
  padding: 0 1.5rem 1.5rem;
  max-height: 500px;
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.testimonial-card {
  padding: 2rem;
}

.stars {
  color: #fbbf24;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.testimonial-text {
  font-style: italic;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.testimonial-author {
  font-weight: 600;
  color: var(--primary);
}

/* Final CTA */
.final-cta {
  text-align: center;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.1) 0%, rgba(123, 44, 191, 0.1) 100%);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 4rem 2rem;
  margin: 2rem auto;
  max-width: 900px;
}

.final-cta h2 {
  margin-bottom: 1rem;
}

.final-cta p {
  color: var(--text-muted);
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

/* Footer */
footer {
  background: #090e17;
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--border);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  color: #fff;
  margin-bottom: 1.5rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.8rem;
}

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

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

.copyright {
  text-align: center;
  color: var(--text-muted);
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

/* Responsive */
@media (max-width: 768px) {
  .section-spacing {
    padding-top: 50px;
    padding-bottom: 50px;
  }
  
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  nav ul, .header-buttons { display: none; }
  
  .hero-content {
    flex-direction: column;
    text-align: center;
  }
  .hero-text {
    text-align: center;
  }
  .hero p {
    text-align: center;
  }
  .hero-cta {
    justify-content: center;
    margin-bottom: 2rem;
  }
  
  .steps-container { flex-direction: column; }
}

/* Split Layout */
.split-layout {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}
.split-text {
  flex: 1;
}
.split-image {
  flex: 1;
  display: flex;
  justify-content: center;
}
.split-image img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  display: block;
}

@media (max-width: 900px) {
  .split-layout {
    flex-direction: column;
    gap: 2rem;
  }
  .split-layout .split-image {
    order: 2;
  }
  .split-layout .split-text {
    order: 1;
  }
  .split-layout.reverse-desktop .split-image {
    order: 2;
  }
  .split-layout.reverse-desktop .split-text {
    order: 1;
  }
}
