/*
Theme Name: IPTV Smart UK
Theme URI: https://iptvsmartuk.com/
Author: OpenAI
Author URI: https://openai.com/
Description: Premium dark-blue WordPress theme for IPTV Smart UK with homepage, pricing, channels, setup guide, FAQ, contact, blog, and support layouts.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: iptvsmartuk
*/

:root {
  --bg: #050b18;
  --bg-2: #09152c;
  --panel: rgba(10, 26, 56, 0.84);
  --panel-2: rgba(8, 18, 39, 0.96);
  --panel-border: rgba(67, 165, 255, 0.22);
  --text: #ffffff;
  --muted: #a8bddf;
  --blue: #1ca4ff;
  --blue-2: #61d8ff;
  --blue-3: #0f78ff;
  --success: #63e6be;
  --warning: #ffd76a;
  --danger: #ff6d8d;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.34);
  --glow: 0 0 30px rgba(28, 164, 255, 0.24);
  --radius: 24px;
  --radius-sm: 16px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  line-height: 1.55;
  background:
    radial-gradient(circle at top center, rgba(28,164,255,.18), transparent 34%),
    radial-gradient(circle at 20% 20%, rgba(97,216,255,.08), transparent 22%),
    linear-gradient(180deg, #030816 0%, #08142a 50%, #040914 100%);
}
body.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .site-header { top: 46px; } }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--blue-2); }
img { max-width: 100%; display: block; }
.container { width: min(100% - 32px, var(--max)); margin: 0 auto; }
.screen-reader-text { position: absolute; left: -9999px; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(4, 11, 26, 0.78);
  border-bottom: 1px solid rgba(79, 166, 255, 0.12);
}
.nav-bar {
  min-height: 78px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.branding { display: flex; align-items: center; gap: 14px; }
.brand-mark {
  width: 54px; height: 54px; border-radius: 16px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(36,143,255,.34), rgba(97,216,255,.12));
  border: 1px solid rgba(97,216,255,.34);
  box-shadow: var(--glow);
  position: relative;
}
.brand-mark::before {
  content: "S";
  font-size: 34px; font-weight: 900;
  background: linear-gradient(180deg, #70deff 0%, #148bff 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.brand-copy small { display: block; color: var(--muted); font-weight: 700; }
.brand-copy strong { display: block; font-size: 20px; }
.site-header nav ul {
  list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 26px;
}
.site-header nav li { position: relative; }
.site-header nav a { color: var(--muted); font-weight: 700; }
.site-header nav a:hover,
.site-header nav .current-menu-item > a { color: #fff; }
.header-actions { display: flex; align-items: center; gap: 12px; }

.button,
.wp-block-button__link,
button,
input[type="submit"] {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 22px; border-radius: 14px; font-weight: 700; border: 0;
  background: linear-gradient(180deg, #31b7ff 0%, #0f85ff 100%);
  color: #fff; box-shadow: var(--glow); cursor: pointer;
}
.button:hover,
.wp-block-button__link:hover,
button:hover,
input[type="submit"]:hover { color: #fff; filter: brightness(1.05); }
.button.secondary {
  background: transparent; border: 1px solid rgba(97,216,255,.34); box-shadow: none;
}

main.site-main { min-height: 60vh; }
.section { padding: 42px 0; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 28px; }
.section-title {
  margin: 0 0 12px; line-height: 1.04;
  font-size: clamp(30px, 4vw, 48px);
}
.section-title .accent, .accent { color: var(--blue-2); }
.section-head p, .muted, .entry-content p, .entry-content li { color: var(--muted); }

.hero { padding: 76px 0 34px; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 30px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px; border-radius: 999px;
  background: rgba(97,216,255,.08); border: 1px solid rgba(97,216,255,.18);
  color: var(--blue-2); font-size: 13px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase;
}
.hero h1 { margin: 18px 0 16px; font-size: clamp(40px, 6vw, 68px); line-height: 1.02; letter-spacing: -1.6px; }
.hero p { margin: 0 0 24px; font-size: 18px; max-width: 620px; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 24px; }
.mini-card,
.card,
.panel,
.feature-box,
.plan-card,
.post-card,
.faq-item,
.contact-card,
.channel-card,
.setup-step,
.support-box,
.value-card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.mini-card { padding: 18px; }
.mini-card strong { display: block; font-size: 24px; margin-bottom: 6px; }
.mini-card span { color: var(--muted); font-size: 14px; }

.hero-visual {
  min-height: 540px; position: relative; overflow: hidden; border-radius: 30px;
  background:
    radial-gradient(circle at 30% 25%, rgba(97,216,255,.12), transparent 24%),
    linear-gradient(180deg, rgba(18,38,78,.96), rgba(7,17,39,.98));
  border: 1px solid rgba(97,216,255,.18); box-shadow: var(--shadow);
}
.hero-visual::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 0, rgba(97,216,255,.06) 100%);
}
.screen-wall {
  position: absolute; right: 28px; top: 52px; width: 78%;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  transform: perspective(1000px) rotateY(-14deg) rotateX(7deg);
}
.screen {
  aspect-ratio: 16/10; border-radius: 14px; position: relative; overflow: hidden;
  background: linear-gradient(135deg, rgba(55,110,255,.34), rgba(9,19,44,.95));
  border: 1px solid rgba(97,216,255,.2);
}
.screen::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.16), transparent 52%);
}
.device-group { position: absolute; left: 26px; bottom: 30px; display: flex; align-items: flex-end; gap: 16px; }
.tv, .tablet, .phone, .remote {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, #153267, #091229);
  border: 1px solid rgba(97,216,255,.22);
  box-shadow: 0 12px 40px rgba(0,0,0,.45);
}
.tv { width: 280px; height: 165px; border-radius: 18px; }
.tablet { width: 120px; height: 160px; border-radius: 18px; }
.phone { width: 72px; height: 140px; border-radius: 18px; }
.remote { width: 60px; height: 120px; border-radius: 24px; transform: rotate(24deg); margin-left: -8px; }
.tv::before, .tablet::before, .phone::before {
  content: ""; position: absolute; inset: 10px; border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(97,216,255,.15), rgba(6,13,29,.35)),
    repeating-linear-gradient(90deg, rgba(255,255,255,.08) 0 18%, rgba(255,255,255,.02) 18% 22%);
}
.remote::before {
  content: ""; position: absolute; inset: 16px 18px;
  background: radial-gradient(circle, rgba(97,216,255,.4) 0 4px, transparent 5px), radial-gradient(circle, rgba(97,216,255,.25) 0 3px, transparent 4px);
  background-size: 22px 22px, 18px 18px; background-position: 0 0, 2px 44px; background-repeat: repeat-y;
}

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card, .feature-box, .post-card, .value-card, .support-box, .channel-card, .contact-card, .setup-step, .faq-item, .plan-card { padding: 24px; }
.icon-box {
  width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 14px;
  background: linear-gradient(180deg, rgba(44,184,255,.22), rgba(17,35,70,.25)); border: 1px solid rgba(97,216,255,.22); font-size: 26px;
}
.card h3, .feature-box h3, .channel-card h3, .plan-card h3, .contact-card h3, .setup-step h3 { margin: 0 0 10px; font-size: 22px; }
.card p:last-child, .feature-box p:last-child, .setup-step p:last-child, .contact-card p:last-child { margin-bottom: 0; }

.devices-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.device-card {
  text-align: center; padding: 22px 12px; border-radius: 18px;
  background: rgba(9, 22, 47, 0.78); border: 1px solid rgba(97,216,255,.16);
}
.device-card .emoji { font-size: 34px; margin-bottom: 10px; }
.device-card span { color: var(--muted); font-size: 15px; }

.plan-card { position: relative; background: linear-gradient(180deg, rgba(11,29,63,.96), rgba(6,15,31,.98)); }
.plan-card.featured { transform: translateY(-8px); border-color: rgba(97,216,255,.42); box-shadow: 0 22px 70px rgba(15,133,255,.22); }
.badge {
  position: absolute; top: 18px; right: 18px; padding: 7px 12px; border-radius: 999px; font-size: 12px; font-weight: 700;
  background: rgba(97,216,255,.12); color: var(--blue-2); border: 1px solid rgba(97,216,255,.24);
}
.price-tag { font-size: 54px; font-weight: 800; margin: 8px 0; }
.price-tag small { font-size: 18px; color: var(--muted); }
.plan-card ul { list-style: none; margin: 22px 0; padding: 0; display: grid; gap: 12px; }
.plan-card li::before { content: "✓"; color: var(--blue-2); font-weight: 800; margin-right: 10px; }

.trust-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 10px;
}
.trust-item {
  padding: 18px; text-align: center; border-radius: 18px;
  background: rgba(9, 22, 47, 0.78); border: 1px solid rgba(97,216,255,.16);
}
.stars { color: var(--warning); letter-spacing: 2px; margin-bottom: 10px; }

details.faq-item summary { cursor: pointer; font-weight: 700; font-size: 18px; }
details.faq-item p { margin: 12px 0 0; }

.page-hero { padding: 72px 0 24px; }
.page-hero-box {
  padding: 34px; border-radius: 30px; border: 1px solid rgba(97,216,255,.18);
  background: linear-gradient(180deg, rgba(12,31,67,.96), rgba(6,15,31,.98)); box-shadow: var(--shadow);
}
.page-hero-box h1 { margin: 10px 0 12px; font-size: clamp(34px, 5vw, 58px); line-height: 1.03; }
.breadcrumbs { color: var(--muted); font-size: 14px; }

.channel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.channel-card ul { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.channel-card li::before { content: "•"; color: var(--blue-2); margin-right: 8px; }

.setup-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step-number {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 14px;
  background: linear-gradient(180deg, #31b7ff 0%, #0f85ff 100%); font-weight: 800;
}

.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; }
.form-shell {
  padding: 26px; background: var(--panel); border: 1px solid var(--panel-border); border-radius: 24px; box-shadow: var(--shadow);
}
label { display: block; margin-bottom: 8px; font-weight: 700; }
input[type="text"], input[type="email"], textarea, select {
  width: 100%; padding: 14px 16px; border-radius: 14px; border: 1px solid rgba(97,216,255,.18);
  background: rgba(6,12,24,.8); color: #fff; outline: none;
}
textarea { min-height: 160px; resize: vertical; }
.form-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.form-group { margin-bottom: 16px; }

.content-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; }
.sidebar .widget {
  padding: 22px; margin-bottom: 18px; background: var(--panel); border: 1px solid var(--panel-border); border-radius: 24px;
}
.sidebar .widget-title { margin: 0 0 14px; font-size: 20px; }
.sidebar ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.post-card .post-meta, .entry-meta { color: var(--muted); font-size: 14px; }
.post-card h2, .entry-title { margin: 10px 0 12px; }
.post-card p { margin-bottom: 18px; }

.pagination { display: flex; gap: 10px; margin-top: 24px; }
.pagination .page-numbers {
  padding: 12px 16px; border-radius: 12px; background: var(--panel); border: 1px solid var(--panel-border);
}
.pagination .current { background: linear-gradient(180deg, #31b7ff 0%, #0f85ff 100%); }

.cta-box {
  padding: 36px; text-align: center; border-radius: 30px;
  background:
    radial-gradient(circle at center, rgba(44,184,255,.16), transparent 36%),
    linear-gradient(180deg, rgba(10, 28, 61, 0.95), rgba(5, 12, 25, 0.98));
  border: 1px solid rgba(97,216,255,.2); box-shadow: var(--shadow);
}

.site-footer { padding: 28px 0 46px; color: var(--muted); }
.footer-wrap {
  display: flex; justify-content: space-between; gap: 18px; align-items: center;
  border-top: 1px solid rgba(97,216,255,.12); padding-top: 22px;
}
.footer-menu ul { list-style: none; display: flex; gap: 18px; padding: 0; margin: 0; }

.not-found { text-align: center; padding: 80px 0; }
.not-found h1 { font-size: 92px; margin: 0; }

@media (max-width: 1080px) {
  .hero-grid, .contact-grid, .content-wrap { grid-template-columns: 1fr; }
  .grid-4, .grid-3, .pricing-grid, .channel-grid, .setup-grid, .trust-strip { grid-template-columns: 1fr 1fr; }
  .devices-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  .nav-bar { flex-wrap: wrap; padding: 12px 0; }
  .site-header nav ul { width: 100%; justify-content: center; flex-wrap: wrap; gap: 14px; font-size: 14px; }
  .header-actions { width: 100%; justify-content: center; }
  .hero, .page-hero { padding-top: 46px; }
  .hero-grid, .grid-4, .grid-3, .grid-2, .mini-stats, .devices-grid, .channel-grid, .setup-grid, .trust-strip, .form-row { grid-template-columns: 1fr; }
  .hero-visual { min-height: 420px; }
  .screen-wall { width: 88%; right: 12px; top: 40px; }
  .device-group { transform: scale(.8); transform-origin: left bottom; }
  .footer-wrap, .footer-menu ul { flex-direction: column; align-items: flex-start; }
}
