/*
Theme Name: FreedomTV
Theme URI: https://nedtvhome.lovable.app
Author: FreedomTV
Author URI: https://nedtvhome.lovable.app
Description: Premium IPTV theme for Deutschland & Balkan audiences (BHS + Albanian/Kosovo). Charcoal base with German flag red + gold accents and Balkan electric blue. Includes hero with Bundesliga-style background, marquee, brand channel grid (Sky · DAZN · RTL · Arena Sport · Pink · Klan · RTK), pricing (6/12/24 Monate), WhatsApp CTA, blog, and full set of page templates (Pricing, About, FAQ, Privacy, Terms, Refund, Reseller).
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: freedomtv
Tags: dark, red, one-column, custom-colors, custom-menu, custom-logo, featured-images, theme-options, threaded-comments, translation-ready, blog
*/

:root {
  --bg: hsl(220, 15%, 7%);
  --fg: hsl(45, 40%, 96%);
  --card: hsl(220, 14%, 10%);
  --muted: hsl(40, 8%, 72%);
  --border: hsl(220, 12%, 19%);
  --primary: hsl(354, 78%, 48%);            /* German flag red */
  --primary-foreground: hsl(45, 40%, 98%);
  --primary-glow: hsl(45, 95%, 55%);        /* gold */
  --accent: hsl(215, 90%, 55%);             /* Balkan electric blue */
  --radius: 0.75rem;
  --shadow-orange: 0 10px 40px -10px hsl(354 78% 48% / 0.55);
  --shadow-card: 0 8px 30px -8px hsl(220 30% 2% / 0.7);
  --gradient-hero:
    radial-gradient(ellipse 80% 60% at 70% 30%, hsl(354 78% 30% / 0.45), transparent 60%),
    radial-gradient(ellipse 60% 50% at 20% 70%, hsl(215 90% 45% / 0.18), transparent 60%),
    linear-gradient(180deg, hsl(220 15% 8%) 0%, hsl(220 18% 4%) 100%);
  --gradient-orange: linear-gradient(135deg, hsl(354 82% 52%) 0%, hsl(15 90% 50%) 50%, hsl(45 95% 55%) 100%);
  --gradient-text: linear-gradient(180deg, hsl(45 95% 65%) 0%, hsl(354 82% 55%) 100%);
  --gradient-card: linear-gradient(160deg, hsl(220 14% 12% / 0.85), hsl(220 18% 6% / 0.85));
  --gradient-blue: linear-gradient(135deg, hsl(215 90% 55%), hsl(225 85% 45%));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--fg);
  background: var(--gradient-hero);
  background-attachment: fixed;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  font-family: 'Poppins', 'Inter', sans-serif;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 .5em;
}
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-glow); }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.text-center { text-align: center; }
.mt-4 { margin-top: 2rem; }

.text-gradient-orange {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .9rem 1.6rem; border-radius: var(--radius);
  font-weight: 700; letter-spacing: .02em; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  border: 1px solid transparent; font-size: 1rem;
}
.btn-primary { background: var(--gradient-orange); color: var(--primary-foreground); box-shadow: var(--shadow-orange); }
.btn-primary:hover { transform: translateY(-2px); color: var(--primary-foreground); }
.btn-outline { border-color: hsl(354 78% 48% / .6); color: var(--fg); background: transparent; }
.btn-outline:hover { background: hsl(354 78% 48% / .1); color: var(--fg); }
.btn-xl { padding: 1.1rem 2rem; font-size: 1.05rem; }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  backdrop-filter: blur(12px); background: hsl(220 15% 7% / .7);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.site-brand { display: flex; align-items: center; gap: .6rem; font-family: Poppins; font-weight: 800; color: var(--primary); }
.site-brand img { width: 36px; height: 36px; border-radius: 8px; }
.primary-nav { display: none; gap: 1.4rem; }
.primary-nav a { color: hsl(45 40% 96% / .85); font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.primary-nav a:hover { color: var(--primary); }
@media (min-width: 900px) { .primary-nav { display: flex; } }

/* Hero */
.hero { position: relative; padding: 9rem 0 5rem; overflow: hidden; }
.hero h1 { font-weight: 900; font-size: clamp(2.2rem, 5vw, 5rem); text-align: center; }
.hero .lead { text-align: center; max-width: 720px; margin: 1.5rem auto 0; color: hsl(45 40% 96% / .8); font-size: 1.1rem; }
.hero .lead small { display:block; margin-top:.5rem; color: hsl(45 40% 96% / .55); font-size: .9rem; }
.hero-actions { display: flex; justify-content: center; gap: 1rem; margin-top: 2.2rem; flex-wrap: wrap; }
.float-frames { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.float-frames span { position: absolute; border: 1px solid hsl(354 78% 48% / .12); border-radius: 12px; animation: float 6s ease-in-out infinite; }
.float-frames span:nth-child(1) { top: 25%; left: 6%; width: 160px; height: 110px; transform: rotate(10deg); }
.float-frames span:nth-child(2) { top: 50%; right: 8%; width: 220px; height: 140px; transform: rotate(-6deg); animation-delay: 1.5s; }
.float-frames span:nth-child(3) { bottom: 12%; left: 22%; width: 130px; height: 80px; transform: rotate(6deg); animation-delay: 3s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

.stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem;
  max-width: 960px; margin: 4rem auto 0;
}
@media (min-width: 768px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat-card {
  background: var(--gradient-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.4rem; text-align: center;
  box-shadow: var(--shadow-card); transition: border-color .2s;
}
.stat-card:hover { border-color: hsl(354 78% 48% / .4); }
.stat-card .value { font-family: Poppins; font-weight: 800; font-size: 2rem; color: var(--primary); }
.stat-card .label { margin-top: .35rem; font-size: .72rem; font-weight: 700; letter-spacing: .12em; color: var(--muted); }

/* Marquee */
.marquee {
  background: var(--gradient-orange); border-top: 1px solid hsl(354 78% 48% / .3); border-bottom: 1px solid hsl(354 78% 48% / .3);
  padding: 1.3rem 0; overflow: hidden;
}
.marquee-track { display: inline-flex; white-space: nowrap; animation: marquee 30s linear infinite; }
.marquee-item { margin: 0 2rem; color: var(--primary-foreground); font-family: Poppins; font-weight: 800; letter-spacing: .04em; font-size: 1.05rem; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Blocks / sections */
.block { padding: 5rem 0; }
.section-title { font-size: clamp(1.8rem, 3.5vw, 3rem); font-weight: 900; text-align: center; }
.section-sub { text-align: center; max-width: 720px; margin: 1rem auto 0; color: var(--muted); }

/* Channel brand grid */
.brand-grid {
  margin-top: 3.5rem;
  display: grid; gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 640px) { .brand-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .brand-grid { grid-template-columns: repeat(5, 1fr); } }
.brand-tile {
  aspect-ratio: 3/2; border-radius: 14px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 1rem; border: 2px solid; box-shadow: var(--shadow-card);
  transition: transform .2s, box-shadow .2s; text-align: center;
}
.brand-tile:hover { transform: scale(1.05); box-shadow: var(--shadow-orange); }
.brand-tile .name { font-family: Poppins; font-weight: 900; font-size: 1.3rem; letter-spacing: -.02em; }
.brand-tile .sub { margin-top: .25rem; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; opacity: .8; }

/* Pricing */
.pricing-grid {
  margin-top: 3rem; display: grid; gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) { .pricing-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .pricing-grid { grid-template-columns: repeat(3, 1fr); } }
.price-card {
  position: relative;
  background: var(--gradient-card); border: 1px solid var(--border);
  border-radius: 18px; padding: 2rem; box-shadow: var(--shadow-card);
  transition: transform .2s, border-color .2s;
}
.price-card:hover { transform: translateY(-4px); border-color: hsl(354 78% 48% / .4); }
.price-card.featured {
  background: var(--gradient-orange); border-color: var(--primary);
  box-shadow: var(--shadow-orange); color: var(--primary-foreground);
}
.price-card.featured h3, .price-card.featured .price, .price-card.featured li { color: var(--primary-foreground); }
.price-card .badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--bg); color: var(--primary); border: 1px solid var(--primary);
  font-size: .72rem; font-weight: 800; padding: .3rem .9rem; border-radius: 999px;
}
.price-card h3 { font-size: 1.5rem; font-weight: 800; }
.price-card .price { font-family: Poppins; font-weight: 900; font-size: 2.4rem; color: var(--primary); margin-top: .5rem; }
.price-card ul { list-style: none; padding: 0; margin: 1.5rem 0; }
.price-card li { padding: .4rem 0; font-size: .95rem; }
.price-card li::before { content: "✓ "; color: var(--primary-glow); font-weight: 800; margin-right: .35rem; }
.price-card .btn { width: 100%; justify-content: center; }

/* Channel categories table */
.channel-categories { display: grid; gap: 1.25rem; margin-top: 2.5rem; }
.cat-card {
  background: var(--gradient-card); border: 1px solid var(--border);
  border-radius: 18px; padding: 1.75rem; box-shadow: var(--shadow-card);
}
.cat-card h3 { font-size: 1.4rem; color: var(--primary); margin-bottom: 1rem; }
.cat-card .chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.cat-card .chip {
  padding: .35rem .75rem; background: hsl(220 15% 7% / .5);
  border: 1px solid var(--border); border-radius: 8px;
  font-size: .85rem; transition: border-color .2s;
}
.cat-card .chip:hover { border-color: hsl(354 78% 48% / .5); }

/* Blog */
.posts-grid {
  margin-top: 2.5rem; display: grid; gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) { .posts-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .posts-grid { grid-template-columns: repeat(3, 1fr); } }
.post-card { background: var(--gradient-card); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.post-card .thumb { display: block; aspect-ratio: 16/9; background: var(--card); overflow: hidden; }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.post-card .thumb:hover img { transform: scale(1.05); }
.post-card .body { padding: 1.25rem; }
.post-card .post-meta { font-size: .75rem; color: var(--muted); margin-bottom: .5rem; }
.post-card h3 { font-size: 1.15rem; }
.post-card h3 a { color: var(--fg); }
.post-card h3 a:hover { color: var(--primary); }

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: hsl(220 15% 7% / .5); margin-top: 3rem; }
.footer-grid { display: grid; gap: 2.5rem; padding: 3.5rem 0; grid-template-columns: 1fr; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } }
.site-footer h4 { font-family: Poppins; font-weight: 700; margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; }
.site-footer ul li { padding: .3rem 0; font-size: .9rem; }
.site-footer ul a { color: var(--muted); }
.site-footer ul a:hover { color: var(--primary); }
.copyright { border-top: 1px solid var(--border); padding: 1.25rem 0; text-align: center; font-size: .8rem; color: var(--muted); }

/* WhatsApp float */
.wa-float {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 60;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px hsl(140 70% 30% / .5);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.1); }
.wa-float svg { width: 28px; height: 28px; fill: #fff; }

/* Pages */
.page-content { padding: 8rem 0 4rem; min-height: 70vh; }
.entry h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1.5rem; }
.entry h2 { margin-top: 2rem; color: var(--primary-glow); }
.entry p, .entry li { color: hsl(45 40% 96% / .88); }
