/*
Theme Name: Rightiptv
Theme URI: https://rightiptv.fi
Author: Rightiptv
Author URI: https://rightiptv.fi
Description: Premium IPTV WordPress theme for the Finnish and Nordic markets. SEO-optimized, conversion-focused, and lightning-fast.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rightiptv
Tags: dark, modern, saas, iptv, conversion, seo
*/

/* ============================================
   THEME DESIGN TOKENS – v2.0
   New premium dark SaaS palette
   ============================================ */
:root {
  /* Brand Colors – New Premium Palette */
  --clr-bg-base:        #0F172A;
  --clr-bg-surface:     #111827;
  --clr-bg-card:        #1E293B;
  --clr-bg-card-hover:  #243348;
  --clr-bg-elevated:    #334155;

  /* Accent Colors */
  --clr-accent:         #3B82F6;
  --clr-accent-hover:   #2563EB;
  --clr-accent-glow:    rgba(59,130,246,0.18);
  --clr-accent-muted:   rgba(59,130,246,0.12);
  --clr-purple:         #8B5CF6;
  --clr-purple-muted:   rgba(139,92,246,0.12);
  --clr-purple-glow:    rgba(139,92,246,0.18);
  --clr-success:        #22c55e;
  --clr-gold:           #F59E0B;
  --clr-gold-muted:     rgba(245,158,11,0.12);

  /* Text */
  --clr-text-primary:   #E5E7EB;
  --clr-text-secondary: #9CA3AF;
  --clr-text-muted:     #6B7280;
  --clr-text-inverse:   #0F172A;

  /* Borders */
  --clr-border:         #1F2937;
  --clr-border-accent:  rgba(59,130,246,0.25);
  --clr-border-purple:  rgba(139,92,246,0.25);
  --clr-border-bright:  rgba(229,231,235,0.08);

  /* Typography */
  --font-sans:          'Inter', system-ui, -apple-system, sans-serif;
  --fw-normal:          400;
  --fw-medium:          500;
  --fw-semibold:        600;
  --fw-bold:            700;
  --fw-extrabold:       800;
  --fw-black:           900;

  /* Font Scale */
  --fs-xs:   0.75rem;
  --fs-sm:   0.875rem;
  --fs-base: 1rem;
  --fs-lg:   1.125rem;
  --fs-xl:   1.25rem;
  --fs-2xl:  1.5rem;
  --fs-3xl:  1.875rem;
  --fs-4xl:  2.25rem;
  --fs-5xl:  3rem;
  --fs-6xl:  3.75rem;
  --fs-7xl:  4.5rem;

  /* Spacing */
  --sp-1:  0.25rem;
  --sp-2:  0.5rem;
  --sp-3:  0.75rem;
  --sp-4:  1rem;
  --sp-5:  1.25rem;
  --sp-6:  1.5rem;
  --sp-8:  2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;
  --sp-24: 6rem;
  --sp-32: 8rem;

  /* Radii */
  --r-sm:   6px;
  --r-md:   10px;
  --r-lg:   16px;
  --r-xl:   24px;
  --r-full: 9999px;

  /* Shadows */
  --shadow-sm:     0 2px 8px rgba(0,0,0,0.3);
  --shadow-md:     0 4px 24px rgba(0,0,0,0.45);
  --shadow-lg:     0 8px 48px rgba(0,0,0,0.6);
  --shadow-accent: 0 0 32px rgba(59,130,246,0.22);
  --shadow-purple: 0 0 32px rgba(139,92,246,0.18);

  /* Transitions */
  --t-fast:   150ms ease;
  --t-base:   250ms ease;
  --t-slow:   400ms ease;

  /* Container */
  --container-max: 1200px;
  --container-pad: clamp(1rem, 4vw, 2rem);
}

/* ============================================
   BASE RESET
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  font-weight: var(--fw-normal);
  line-height: 1.6;
  color: var(--clr-text-primary);
  background-color: var(--clr-bg-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; border: none; background: none; }
h1,h2,h3,h4,h5,h6 { font-weight: var(--fw-bold); line-height: 1.2; color: var(--clr-text-primary); }

/* ============================================
   UTILITY CLASSES
   ============================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.text-center { text-align: center; }
.text-gradient {
  background: linear-gradient(135deg, #3B82F6 0%, #8B5CF6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-gradient-blue {
  background: linear-gradient(135deg, #3B82F6 0%, #60a5fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-gradient-purple {
  background: linear-gradient(135deg, #8B5CF6 0%, #A78BFA 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--clr-bg-surface); }
::-webkit-scrollbar-thumb { background: var(--clr-bg-elevated); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--clr-accent); }

/* Focus styles */
:focus-visible {
  outline: 2px solid var(--clr-accent);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

/* Selection */
/* Selection */
::selection { background: var(--clr-accent-muted); color: var(--clr-accent); }

/* ============================================
   ARTICLE CTA STRIP
   ============================================ */
.article-cta-strip {
  margin: var(--sp-10) 0;
  padding: var(--sp-6);
  background: linear-gradient(145deg, var(--clr-bg-surface), var(--clr-bg-card));
  border: 1px solid var(--clr-border);
  border-left: 4px solid var(--clr-accent);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  gap: var(--sp-6);
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-base), box-shadow var(--t-base);
}

.article-cta-strip:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--clr-accent-muted);
}

.cta-icon {
  font-size: 2.5rem;
  flex-shrink: 0;
  filter: drop-shadow(0 0 10px var(--clr-accent-glow));
}

.cta-body {
  flex-grow: 1;
}

.cta-body h4 {
  font-size: var(--fs-xl);
  margin-bottom: var(--sp-1);
  color: #fff;
  letter-spacing: -0.01em;
}

.cta-body p {
  font-size: var(--fs-sm);
  color: var(--clr-text-secondary);
  line-height: 1.4;
}

.article-cta-strip a {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  background: var(--clr-accent);
  color: #fff;
  padding: var(--sp-3) var(--sp-6);
  border-radius: var(--r-full);
  font-weight: var(--fw-bold);
  font-size: var(--fs-sm);
  white-space: nowrap;
  transition: background var(--t-fast), transform var(--t-fast);
  box-shadow: 0 4px 12px var(--clr-accent-glow);
}

.article-cta-strip a:hover {
  background: var(--clr-accent-hover);
  transform: scale(1.03);
}

.article-cta-strip a svg {
  transition: transform var(--t-fast);
}

.article-cta-strip a:hover svg {
  transform: translateX(3px);
}

@media (max-width: 640px) {
  .article-cta-strip {
    flex-direction: column;
    text-align: center;
    padding: var(--sp-8) var(--sp-6);
  }
  .article-cta-strip a {
    width: 100%;
    justify-content: center;
  }
}
