/*
Theme Name: IPTV Kopen Markt
Theme URI: https://iptvkopen-markt.nl/
Author: IPTV Kopen Markt
Description: A lightweight custom WordPress theme for IPTV Kopen Markt.
Version: 0.1.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: iptv-kopen-markt
*/

/*
 * Design-system foundation. Values are intentionally restrained until the
 * supplied visual references are implemented section by section.
 */
:root {
  --color-navy-950: #050914;
  --color-navy-900: #08111f;
  --color-navy-800: #0e1a2d;
  --color-blue-700: #17345c;
  --color-cyan-500: #20d3d0;
  --color-cyan-400: #5ae6e2;
  --color-violet-500: #815cf5;
  --color-white: #ffffff;
  --color-text: #f6f8fc;
  --color-text-muted: #a8b3c7;
  --color-border: rgb(255 255 255 / 12%);
  --color-focus: #7ff7f2;

  --background-page: var(--color-navy-950);
  --background-surface: var(--color-navy-900);
  --background-surface-raised: var(--color-navy-800);
  --gradient-accent: linear-gradient(135deg, var(--color-cyan-500), var(--color-violet-500));
  --shadow-soft: 0 1.25rem 3.75rem rgb(0 0 0 / 24%);
  --shadow-glow: 0 0 2.5rem rgb(32 211 208 / 12%);

  --font-family-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: clamp(1.125rem, 1rem + 0.4vw, 1.375rem);
  --font-size-xl: clamp(1.5rem, 1.15rem + 1.2vw, 2.25rem);
  --font-size-2xl: clamp(2rem, 1.25rem + 3vw, 4.5rem);
  --line-height-tight: 1.1;
  --line-height-base: 1.65;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: clamp(4rem, 8vw, 7.5rem);

  --radius-sm: 0.5rem;
  --radius-md: 0.875rem;
  --radius-lg: 1.5rem;
  --radius-pill: 999px;

  --container-narrow: 48rem;
  --container-default: 75rem;
  --container-wide: 90rem;
  --container-gutter: clamp(1rem, 4vw, 2rem);

  --transition-fast: 160ms ease;
  --transition-base: 240ms ease;

  /* Documentation tokens; use literal values in media queries. */
  --breakpoint-sm: 23.4375rem;
  --breakpoint-md: 48rem;
  --breakpoint-lg: 64rem;
  --breakpoint-xl: 90rem;
  --breakpoint-2xl: 120rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  overflow-x: clip;
  scroll-behavior: smooth;
}

body {
  min-width: 0;
  margin: 0;
  overflow-wrap: break-word;
  background: var(--background-page);
  color: var(--color-text);
  font-family: var(--font-family-sans);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  text-rendering: optimizeLegibility;
}

img,
svg,
video,
iframe {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: var(--color-cyan-400);
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--color-white);
}

button,
input,
textarea,
select {
  font: inherit;
}

:focus-visible {
  outline: 0.1875rem solid var(--color-focus);
  outline-offset: 0.1875rem;
}

.container {
  width: min(100% - (2 * var(--container-gutter)), var(--container-default));
  margin-inline: auto;
}

.container--narrow {
  max-width: var(--container-narrow);
}

.container--wide {
  max-width: var(--container-wide);
}

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

.screen-reader-text:focus {
  z-index: 100000;
  top: var(--space-4);
  left: var(--space-4);
  width: auto;
  height: auto;
  padding: var(--space-3) var(--space-4);
  clip: auto;
  background: var(--color-white);
  color: var(--color-navy-950);
  font-weight: 700;
  white-space: normal;
}

.button {
  display: inline-flex;
  min-height: 3.65rem;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.85rem 1.65rem;
  border: 1px solid transparent;
  border-radius: 0.6rem;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: color var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.button:hover {
  transform: translateY(-2px);
}

.button--primary {
  border-color: var(--color-cyan-500);
  background: linear-gradient(135deg, #16ece7 0%, #11cde8 100%);
  box-shadow: 0 0.75rem 2.25rem rgb(17 205 232 / 18%);
  color: #02101d;
}

.button--primary:hover {
  background: linear-gradient(135deg, #5af8f3 0%, #36dcf3 100%);
  color: #02101d;
}

.button--secondary {
  border-color: var(--color-cyan-500);
  background: rgb(2 13 27 / 68%);
  color: var(--color-white);
}

.button--secondary:hover {
  background: rgb(17 205 232 / 12%);
  color: var(--color-white);
}

.button--secondary svg {
  fill: none;
  stroke: currentcolor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.site-header {
  position: relative;
  z-index: 20;
  background: #020d1b;
}

.site-notice {
  min-height: 2.15rem;
  border-bottom: 1px solid rgb(54 219 225 / 8%);
  background: linear-gradient(90deg, #06324b 0%, #063d5c 48%, #052c45 100%);
}

.site-notice__inner {
  display: flex;
  min-height: 2.15rem;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding-block: 0.35rem;
  margin-block: 0;
  color: #eefcff;
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.25;
  text-align: center;
}

.site-notice__inner > span {
  color: #0cf3ec;
  font-size: 0.65rem;
  line-height: 1;
}

.site-header__inner,
.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 5.15rem;
}

.site-header__inner,
.site-notice__inner {
  width: min(100% - (2 * var(--container-gutter)), 101.25rem);
  max-width: 101.25rem;
}

.site-branding {
  flex: 0 0 auto;
}

.site-logo,
.custom-logo-link {
  display: block;
}

.site-logo img,
.custom-logo {
  width: 15rem;
  height: auto;
  max-height: 4.25rem;
  object-fit: contain;
}

.menu-toggle {
  display: none;
  width: 3rem;
  height: 3rem;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgb(32 211 208 / 52%);
  border-radius: 0.6rem;
  background: rgb(10 30 49 / 90%);
  color: var(--color-white);
  cursor: pointer;
}

.menu-toggle__icon,
.menu-toggle__icon span {
  display: block;
}

.menu-toggle__icon {
  position: relative;
  width: 1.35rem;
  height: 1rem;
}

.menu-toggle__icon span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: var(--radius-pill);
  background: currentcolor;
  transition: transform var(--transition-fast), opacity var(--transition-fast), top var(--transition-fast);
}

.menu-toggle__icon span:nth-child(1) { top: 0; }
.menu-toggle__icon span:nth-child(2) { top: 0.4375rem; }
.menu-toggle__icon span:nth-child(3) { top: 0.875rem; }

.menu-toggle[aria-expanded="true"] .menu-toggle__icon span:nth-child(1) {
  top: 0.4375rem;
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__icon span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__icon span:nth-child(3) {
  top: 0.4375rem;
  transform: rotate(-45deg);
}

.primary-navigation {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 1.5rem;
}

.primary-navigation ul,
.footer-navigation ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: center;
  padding: 0;
  margin: 0;
  list-style: none;
}

.primary-navigation li {
  position: relative;
}

.primary-navigation a,
.footer-navigation a {
  color: var(--color-text);
  text-decoration: none;
}

.primary-navigation .primary-menu > li > a {
  position: relative;
  display: block;
  padding-block: 1.85rem;
  font-size: 0.95rem;
  font-weight: 750;
  line-height: 1;
  white-space: nowrap;
}

.primary-navigation .primary-menu > li > a::after {
  position: absolute;
  right: 50%;
  bottom: 1.05rem;
  left: 50%;
  height: 0.22rem;
  border-radius: var(--radius-pill);
  background: var(--color-cyan-500);
  content: "";
  transition: right var(--transition-fast), left var(--transition-fast);
}

.primary-navigation .primary-menu > li > a:hover::after,
.primary-navigation .current-menu-item > a::after,
.primary-navigation .current-menu-ancestor > a::after {
  right: 0;
  left: 0;
}

.primary-navigation a:hover,
.primary-navigation .current-menu-item > a,
.footer-navigation a:hover {
  color: var(--color-white);
}

.primary-navigation .sub-menu {
  position: absolute;
  z-index: 30;
  top: calc(100% - 0.6rem);
  left: -1rem;
  display: block;
  min-width: 14rem;
  padding: 0.6rem;
  visibility: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  opacity: 0;
  background: #061426;
  box-shadow: var(--shadow-soft);
  transform: translateY(-0.35rem);
  transition: opacity var(--transition-fast), visibility var(--transition-fast), transform var(--transition-fast);
}

.primary-navigation li:hover > .sub-menu,
.primary-navigation li:focus-within > .sub-menu {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.primary-navigation .sub-menu a {
  display: block;
  padding: 0.75rem 0.85rem;
  border-radius: var(--radius-sm);
}

.primary-navigation .sub-menu a:hover,
.primary-navigation .sub-menu a:focus-visible {
  background: rgb(32 211 208 / 10%);
}

.site-header__cta {
  min-width: 12.5rem;
  min-height: 3.35rem;
  padding-inline: 1.35rem;
  font-size: 0.96rem;
}

.home-hero {
  position: relative;
  min-height: 40.625rem;
  overflow: hidden;
  isolation: isolate;
  background: #020b16;
}

.home-hero::before,
.home-hero::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  pointer-events: none;
}

.home-hero::before {
  background:
    radial-gradient(ellipse at 50% 40%, rgb(2 10 22 / 88%) 0, rgb(2 11 23 / 78%) 31%, rgb(2 11 23 / 38%) 61%, rgb(1 8 18 / 18%) 100%),
    linear-gradient(90deg, rgb(2 9 20 / 10%), rgb(2 11 23 / 18%) 25%, rgb(2 12 25 / 52%) 50%, rgb(2 11 23 / 18%) 75%, rgb(2 9 20 / 10%));
}

.home-hero::after {
  background: linear-gradient(180deg, rgb(1 8 17 / 10%) 50%, #020b16 100%);
}

.home-hero__media,
.home-hero__media img {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
}

.home-hero__media img {
  object-fit: cover;
  object-position: center;
  transform: scale(1.05);
}

.home-hero__content {
  display: flex;
  min-height: 40.625rem;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding-top: clamp(3rem, 5.5vh, 4rem);
  padding-bottom: 1.5rem;
  text-align: center;
}

.home-hero__content.container {
  width: calc(100% - 2rem);
  max-width: none;
}

.home-hero__title {
  max-width: 75rem;
  margin: 0 0 1.25rem;
  color: var(--color-white);
  font-size: clamp(2.5rem, 4.1vw, 3.5rem);
  font-weight: 850;
  letter-spacing: -0.03em;
  line-height: 1.2;
  text-shadow: 0 0.2rem 1.4rem rgb(0 0 0 / 48%);
  text-wrap: balance;
}

.home-hero__title span,
.home-hero__title strong {
  display: block;
}

.home-hero__title strong {
  color: #11dfeb;
  font-weight: inherit;
  text-shadow: 0 0.4rem 2.25rem rgb(0 218 231 / 18%);
}

.home-hero__lead {
  max-width: 50rem;
  margin: 1.1rem auto 0;
  color: var(--color-white);
  font-size: clamp(1.2rem, 1.28vw, 1.55rem);
  font-weight: 750;
  line-height: 1.28;
  text-wrap: balance;
}

.home-hero__description {
  width: 100%;
  max-width: none;
  margin: 0.85rem auto 0;
  color: #c9d5e6;
  font-size: 1.25rem;
  line-height: 1.65;
  text-wrap: wrap;
}

.home-hero__actions {
  display: flex;
  width: min(100%, 34rem);
  justify-content: center;
  gap: 1rem;
  margin-top: 1.35rem;
}

.home-hero__actions .button {
  flex: 1 1 0;
  min-height: 3.75rem;
  padding-inline: 1.2rem;
}

.home-hero__features {
  display: grid;
  width: min(100%, 72rem);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  padding: 0;
  margin: 2rem 0 0;
  list-style: none;
}

.home-hero__features li {
  min-width: 0;
  text-align: left;
}

.home-hero__features a {
  display: flex;
  min-height: 4.55rem;
  align-items: center;
  gap: 0.8rem;
  padding: 0.75rem 0.95rem;
  border: 1px solid rgb(70 210 220 / 22%);
  border-radius: 1rem;
  background: rgb(5 23 42 / 82%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 4%);
  color: inherit;
  text-decoration: none;
  transition: border-color var(--transition-fast), background-color var(--transition-fast), transform var(--transition-fast);
}

.home-hero__features a:hover {
  border-color: rgb(32 211 208 / 64%);
  background: rgb(8 33 57 / 92%);
  color: inherit;
  transform: translateY(-2px);
}

.home-hero__features svg {
  width: 2.15rem;
  height: 2.15rem;
  flex: 0 0 auto;
  fill: none;
  stroke: #13e8e5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}

.home-hero__features li > a > span {
  min-width: 0;
}

.home-hero__features li:nth-child(1) svg,
.home-hero__features li:nth-child(2) svg {
  fill: #13e8e5;
  stroke: #13e8e5;
}

.home-hero__features strong,
.home-hero__features small {
  display: block;
}

.home-hero__features strong {
  color: var(--color-white);
  font-size: 0.92rem;
  line-height: 1.2;
}

.home-hero__features small {
  margin-top: 0.2rem;
  color: #c3ccdc;
  font-size: 0.76rem;
  line-height: 1.3;
}

.content-area,
.archive-header,
.error-404 {
  padding-block: var(--space-8);
}

.entry-title,
.page-title {
  margin-block: 0 var(--space-5);
  font-size: var(--font-size-2xl);
  line-height: var(--line-height-tight);
  text-wrap: balance;
}

.entry-meta,
.site-footer {
  color: var(--color-text-muted);
}

.entry-content > * {
  max-width: var(--container-narrow);
}

.entry-content > .alignwide {
  max-width: var(--container-default);
}

.entry-content > .alignfull {
  max-width: none;
}

.post-list {
  display: grid;
  gap: var(--space-6);
}

.post-card {
  padding: var(--space-5);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--background-surface);
}

.site-footer {
  padding-block: var(--space-6);
  border-top: 1px solid var(--color-border);
  background: var(--background-surface);
}

@media (max-width: 83.99rem) {
  .site-header__inner {
    min-height: 4.75rem;
  }

  .js .menu-toggle {
    display: inline-flex;
  }

  .primary-navigation {
    position: absolute;
    z-index: 40;
    top: 100%;
    right: 0;
    left: 0;
    display: block;
    max-height: calc(100vh - 7.75rem);
    padding: 0.75rem var(--container-gutter) 1.25rem;
    overflow-y: auto;
    border-top: 1px solid rgb(32 211 208 / 18%);
    border-bottom: 1px solid rgb(32 211 208 / 24%);
    background: rgb(2 13 27 / 98%);
    box-shadow: 0 1.5rem 3rem rgb(0 0 0 / 40%);
  }

  .primary-navigation[hidden] {
    display: none;
  }

  .primary-navigation ul {
    display: block;
    flex-direction: column;
  }

  .primary-navigation .primary-menu > li > a {
    padding: 0.9rem 0.5rem;
    border-bottom: 1px solid rgb(255 255 255 / 8%);
    font-size: 1rem;
  }

  .primary-navigation .primary-menu > li > a::after {
    top: 0.75rem;
    right: auto;
    bottom: 0.75rem;
    left: -0.75rem;
    width: 0.2rem;
    height: auto;
  }

  .primary-navigation .primary-menu > li > a:hover::after,
  .primary-navigation .current-menu-item > a::after,
  .primary-navigation .current-menu-ancestor > a::after {
    right: auto;
    left: -0.75rem;
  }

  .primary-navigation .sub-menu {
    position: static;
    display: block;
    min-width: 0;
    padding: 0 0 0 1rem;
    visibility: visible;
    border: 0;
    opacity: 1;
    background: transparent;
    box-shadow: none;
    transform: none;
  }

  .site-header__cta {
    width: 100%;
    margin-top: 1rem;
  }

  .home-hero,
  .home-hero__content {
    min-height: 43rem;
  }

  .home-hero__content {
    padding-top: 2.5rem;
    padding-bottom: 1.5rem;
  }

  .home-hero__title {
    font-size: clamp(2.5rem, 4.1vw, 3.5rem);
  }

  .home-hero__features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
    margin-top: 1.75rem;
  }
}

@media (max-width: 63.99rem) {
  .home-hero,
  .home-hero__content {
    min-height: 45rem;
  }

  .home-hero__content {
    padding-top: 2rem;
  }
}

@media (max-width: 47.99rem) {
  .site-notice__inner {
    font-size: clamp(0.7rem, 3vw, 0.78rem);
    white-space: nowrap;
  }

  .site-header__inner {
    min-height: 4.4rem;
  }

  .site-logo img,
  .custom-logo {
    width: min(13rem, 66vw);
    max-height: 3.5rem;
  }

  .menu-toggle {
    width: 2.75rem;
    height: 2.75rem;
  }

  .primary-navigation {
    max-height: calc(100vh - 7rem);
  }

  .home-hero,
  .home-hero__content {
    min-height: 50rem;
  }

  .home-hero::before {
    background: linear-gradient(180deg, rgb(2 11 24 / 58%), rgb(2 11 24 / 76%));
  }

  .home-hero__media img {
    opacity: 0.7;
    object-position: 22% center;
    transform: scale(1.02);
  }

  .home-hero__content {
    padding-top: 2rem;
    padding-bottom: 1.5rem;
  }

  .home-hero__title {
    font-size: clamp(2rem, 7.5vw, 2.5rem);
    letter-spacing: -0.03em;
    line-height: 1.2;
  }

  .home-hero__lead {
    margin-top: 1rem;
    font-size: 1.08rem;
  }

  .home-hero__description {
    margin-top: 0.8rem;
    font-size: 1.0625rem;
  }

  .home-hero__actions {
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.25rem;
  }

  .home-hero__actions .button {
    width: 100%;
    min-height: 3.65rem;
    flex-basis: auto;
  }

  .home-hero__features {
    gap: 0.7rem;
    margin-top: 1.5rem;
  }

  .home-hero__features a {
    gap: 0.7rem;
    min-height: 4.35rem;
    padding: 0.65rem 0.7rem;
    border-radius: 0.8rem;
  }

  .home-hero__features svg {
    width: 2.2rem;
    height: 2.2rem;
  }

  .home-hero__features strong {
    font-size: 0.82rem;
  }

  .home-hero__features small {
    font-size: 0.72rem;
  }

  .site-footer__inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 22rem) {
  .site-logo img,
  .custom-logo {
    width: 11.75rem;
  }

  .home-hero,
  .home-hero__content {
    min-height: 56rem;
  }

  .home-hero__title {
    font-size: 2.5rem;
  }

  .home-hero__features {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .home-hero__features a {
    min-height: 4.25rem;
    padding-inline: 1rem;
  }
}

@media (min-width: 48rem) {
  .post-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 84rem) {
  .menu-toggle,
  .js .menu-toggle {
    display: none;
  }

  .primary-navigation[hidden] {
    display: flex;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
