/*
Theme Name: DartSignal Arena
Theme URI: https://visibles.dk/
Author: Visible Plugins
Author URI: https://visibles.dk/
Description: A classic WordPress theme for DartSignal tournament pages, live results, player apps and event websites.
Requires at least: 6.2
Tested up to: 7.0
Requires PHP: 7.4
Version: 2.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dartsignal-arena
Tags: custom-colors, custom-logo, custom-menu, featured-images, translation-ready
*/

:root {
  --ds-navy: #06183d;
  --ds-blue: #0759ff;
  --ds-cyan: #18bce8;
  --ds-soft: #f3f8fc;
  --ds-ink: #0a1428;
  --ds-muted: #596579;
  --ds-line: rgba(6, 24, 61, 0.14);
  --ds-surface: #ffffff;
  --ds-radius: 8px;
  --ds-shadow: 0 18px 52px rgba(6, 24, 61, 0.12);
  --ds-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--ds-cyan) 8%, transparent), transparent 360px),
    #ffffff;
  color: var(--ds-ink);
  font-family: var(--ds-font);
  font-size: 16px;
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--ds-blue);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--ds-navy);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--ds-cyan);
  outline-offset: 3px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 0.7em;
  color: var(--ds-ink);
  font-weight: 900;
  line-height: 1.05;
}

h1 {
  font-size: clamp(2.3rem, 6vw, 5rem);
}

h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
}

h3 {
  font-size: 1.35rem;
}

p {
  margin: 0 0 1rem;
}

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

.skip-link:focus {
  z-index: 100000;
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  clip: auto;
  padding: 10px 14px;
  border-radius: 6px;
  background: var(--ds-navy);
  color: #fff;
  font-weight: 800;
}

.ds-container {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

.ds-main {
  min-height: 62vh;
}

.ds-site-header {
  position: sticky;
  z-index: 30;
  top: 0;
  border-bottom: 1px solid rgba(6, 24, 61, 0.1);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
}

.ds-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 14px;
}

.ds-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: min(320px, 70vw);
}

.custom-logo-link img,
.ds-fallback-logo img {
  display: block;
  width: min(220px, 50vw);
  max-height: 72px;
  object-fit: contain;
}

.ds-site-title {
  display: none;
  color: var(--ds-navy);
  font-weight: 900;
  text-decoration: none;
}

.ds-site-description {
  display: none;
  margin: 0;
  color: var(--ds-muted);
  font-size: 0.86rem;
}

.ds-primary-nav {
  min-width: 0;
}

.ds-menu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ds-menu a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  color: var(--ds-ink);
  font-size: 0.95rem;
  font-weight: 800;
  text-decoration: none;
}

.ds-menu a:hover,
.ds-menu .current-menu-item > a,
.ds-menu .current_page_item > a {
  color: var(--ds-blue);
}

.ds-menu ul {
  display: none;
}

.ds-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--ds-line);
  background:
    radial-gradient(circle at 10% 20%, color-mix(in srgb, var(--ds-cyan) 18%, transparent), transparent 32%),
    linear-gradient(135deg, #ffffff 0%, #f5fbff 58%, #eaf6ff 100%);
}

.ds-hero::after {
  position: absolute;
  right: clamp(20px, 8vw, 120px);
  bottom: -90px;
  width: clamp(220px, 34vw, 480px);
  height: clamp(220px, 34vw, 480px);
  border: 36px solid color-mix(in srgb, var(--ds-blue) 8%, transparent);
  border-radius: 50%;
  content: "";
}

.ds-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  padding-block: clamp(54px, 9vw, 118px);
}

.ds-kicker {
  color: var(--ds-blue);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.ds-lead {
  max-width: 700px;
  color: #26364c;
  font-size: clamp(1.08rem, 2vw, 1.35rem);
}

.ds-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 1.4rem;
}

.ds-button,
.button,
button,
input[type="button"],
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.78rem 1rem;
  border: 1px solid var(--ds-blue);
  border-radius: 7px;
  background: var(--ds-blue);
  color: #fff;
  font: inherit;
  font-weight: 850;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}

.ds-button:hover,
.button:hover,
button:hover,
input[type="button"]:hover,
input[type="submit"]:hover {
  background: var(--ds-navy);
  border-color: var(--ds-navy);
  color: #fff;
}

.ds-button-secondary {
  background: #fff;
  color: var(--ds-blue);
}

.ds-button-secondary:hover {
  background: var(--ds-soft);
  color: var(--ds-navy);
}

.ds-section {
  padding-block: clamp(42px, 7vw, 82px);
}

.ds-section-soft {
  background: var(--ds-soft);
}

.ds-stat-grid,
.ds-card-grid,
.ds-post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.ds-stat,
.ds-event-card,
.ds-content,
.ds-tool-panel {
  border: 1px solid var(--ds-line);
  border-radius: var(--ds-radius);
  background: var(--ds-surface);
  box-shadow: var(--ds-shadow);
}

.ds-stat {
  min-height: 132px;
  padding: 18px;
  background: linear-gradient(180deg, #ffffff, #f6fbff);
}

.ds-stat strong {
  display: block;
  color: var(--ds-blue);
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 0.95;
}

.ds-stat span {
  display: block;
  margin-top: 8px;
  font-weight: 800;
}

.ds-event-card {
  padding: clamp(16px, 2.4vw, 24px);
}

.ds-event-card h2,
.ds-event-card h3 {
  font-size: 1.35rem;
}

.ds-event-card h2 a {
  color: var(--ds-ink);
  text-decoration: none;
}

.ds-event-card h2 a:hover {
  color: var(--ds-blue);
}

.ds-text-link {
  font-weight: 850;
}

.ds-content {
  padding: clamp(20px, 4vw, 48px);
}

.ds-content > article > * {
  max-width: 820px;
}

.ds-content > article > .alignwide,
.ds-content > article > .alignfull {
  max-width: 100%;
}

.ds-featured-image {
  margin-block: 24px;
}

.ds-featured-image img {
  border-radius: var(--ds-radius);
}

.ds-post-meta,
.ds-archive-description {
  color: var(--ds-muted);
  font-size: 0.95rem;
}

.ds-shortcode-shell {
  padding-block: clamp(22px, 4vw, 48px);
}

.ds-shortcode-shell h1 {
  font-size: clamp(1.9rem, 4vw, 3.2rem);
}

.ds-shortcode-shell .dtl-app {
  overflow: hidden;
  border: 1px solid rgba(6, 24, 61, 0.12);
  border-radius: var(--ds-radius);
  box-shadow: var(--ds-shadow);
}

.dtl-app {
  --dtl-bg: var(--ds-soft);
  --dtl-panel: #ffffff;
  --dtl-panel-2: #e9f3fa;
  --dtl-text: var(--ds-ink);
  --dtl-muted: #596579;
  --dtl-line: rgba(6, 24, 61, 0.14);
  --dtl-accent: var(--ds-cyan);
  --dtl-blue: var(--ds-blue);
}

.dtl-fullscreen,
.dtl-board {
  --dtl-bg: var(--ds-navy);
  --dtl-panel: #0b244d;
  --dtl-panel-2: #123565;
  --dtl-text: #ffffff;
  --dtl-muted: #c4d3e1;
  --dtl-line: rgba(255, 255, 255, 0.17);
  --dtl-accent: var(--ds-cyan);
  --dtl-blue: #5d96ff;
}

.ds-footer {
  border-top: 1px solid rgba(6, 24, 61, 0.1);
  background: var(--ds-soft);
}

.ds-footer-inner {
  padding-block: clamp(32px, 6vw, 64px);
}

.ds-footer-widgets {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}

.ds-footer-bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.ds-footer-bar p {
  margin: 4px 0 0;
  color: var(--ds-muted);
}

.ds-footer-menu a {
  min-height: 0;
  font-size: 0.9rem;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
  margin-top: 24px;
}

.nav-links a,
.nav-links span {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 6px 10px;
  border: 1px solid var(--ds-line);
  border-radius: 6px;
  background: #fff;
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 860px) {
  .ds-header-inner,
  .ds-footer-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .ds-menu {
    justify-content: flex-start;
  }

  .ds-hero-grid,
  .ds-stat-grid,
  .ds-card-grid,
  .ds-post-grid,
  .ds-footer-widgets {
    grid-template-columns: 1fr;
  }

  .ds-hero-logo {
    order: -1;
  }
}

@media (max-width: 520px) {
  .ds-container {
    width: min(100% - 24px, 1120px);
  }

  .ds-actions,
  .ds-actions .ds-button {
    width: 100%;
  }

  .ds-menu {
    gap: 4px 12px;
  }
}
