/*
Theme Name: Blue Stones Cup
Theme URI: https://example.com/blue-stones-cup
Author: Blue Stones Cup
Description: Mobile-first one-page WordPress theme for the Blue Stones Cup international judo tournament.
Version: 1.2.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: blue-stones-cup
License: GNU General Public License v2 or later
*/
:root {
      --navy: #04111f;
      --navy-soft: #071b31;
      --blue: #0d609e;
      --sky: #5bc0f7;
      --white: #f7fbff;
      --muted: #a7bbcc;
      --line: rgba(255,255,255,.13);
      --glass: rgba(6,25,43,.72);
      --radius: 24px;
      --shadow: 0 28px 90px rgba(0,0,0,.36);
    }

    * { box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    body {
      margin: 0;
      color: var(--white);
      background:
        radial-gradient(circle at 12% 0%, rgba(57,165,230,.15), transparent 33%),
        linear-gradient(180deg, #03101d 0%, #071b31 48%, #03101d 100%);
      font-family: Inter, Arial, sans-serif;
      overflow-x: hidden;
    }

    body::before {
      content: "";
      position: fixed;
      inset: 0;
      pointer-events: none;
      z-index: 100;
      opacity: .045;
      background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.65'/%3E%3C/svg%3E");
    }

    a { color: inherit; text-decoration: none; }
    img { display: block; max-width: 100%; }
    button, input, select, textarea { font: inherit; }
    section { position: relative; }
    .container { width: min(1180px, calc(100% - 32px)); margin: auto; }

    .nav {
      position: fixed;
      inset: 0 0 auto;
      height: 76px;
      display: flex;
      align-items: center;
      z-index: 60;
      transition: .3s ease;
    }

    .nav.scrolled {
      background: rgba(3,14,25,.88);
      backdrop-filter: blur(18px);
      border-bottom: 1px solid var(--line);
    }

    .nav-inner {
      width: min(1180px, calc(100% - 32px));
      margin: auto;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 20px;
    }

    .brand {
      display: flex;
      align-items: center;
      gap: 12px;
      font-family: "Barlow Condensed", sans-serif;
      font-size: 1.23rem;
      font-weight: 800;
      letter-spacing: .8px;
    }

    .brand img {
      width: 48px;
      height: 48px;
      border-radius: 50%;
      object-fit: cover;
      border: 2px solid rgba(255,255,255,.72);
    }

    .nav-right { display: flex; align-items: center; gap: 14px; }
    .nav-links { display: flex; align-items: center; gap: 24px; font-size: .91rem; color: #d9e8f4; }
    .nav-links a { transition: .2s ease; }
    .nav-links a:hover { color: var(--sky); }

    .lang-switch {
      display: inline-flex;
      padding: 4px;
      border: 1px solid var(--line);
      border-radius: 999px;
      background: rgba(255,255,255,.05);
      backdrop-filter: blur(10px);
    }

    .lang-btn {
      border: 0;
      background: transparent;
      color: var(--muted);
      border-radius: 999px;
      padding: 8px 11px;
      font-size: .75rem;
      font-weight: 800;
      cursor: pointer;
    }

    .lang-btn.active { color: #03101d; background: var(--white); }
    .menu-btn { display: none; border: 0; background: none; color: white; font-size: 1.8rem; cursor: pointer; }

    .btn {
      min-height: 50px;
      padding: 0 22px;
      border-radius: 999px;
      border: 0;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      font-weight: 800;
      cursor: pointer;
      transition: .25s ease;
    }

    .btn-primary {
      color: #03101d;
      background: linear-gradient(135deg, #86d7ff, #2ba2e8);
      box-shadow: 0 13px 34px rgba(43,162,232,.28);
    }

    .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 17px 40px rgba(43,162,232,.39); }
    .btn-outline { color: white; border: 1px solid rgba(255,255,255,.27); background: rgba(255,255,255,.055); }
    .btn-outline:hover { transform: translateY(-2px); background: rgba(255,255,255,.1); }

    .hero {
      min-height: 100svh;
      padding: 112px 0 56px;
      display: grid;
      place-items: center;
      overflow: hidden;
    }

    .video-bg {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center;
      z-index: -4;
      opacity: 1;
      filter: none;
      background: #03101d;
    }


    .video-play-btn {
      position: absolute;
      left: 50%;
      bottom: 28px;
      transform: translateX(-50%);
      z-index: 8;
      width: 58px;
      height: 58px;
      display: none;
      place-items: center;
      border: 1px solid rgba(255,255,255,.55);
      border-radius: 50%;
      color: white;
      background: rgba(3,15,27,.68);
      backdrop-filter: blur(12px);
      box-shadow: 0 12px 35px rgba(0,0,0,.32);
      cursor: pointer;
    }
    .video-play-btn.show { display: grid; }

    .video-fallback {
      position: absolute;
      inset: 0;
      z-index: -5;
      background: #03101d;
      transform: scale(1.03);
    }

    .hero::after {
      content: "";
      position: absolute;
      inset: auto 0 0;
      height: 30%;
      z-index: -3;
      pointer-events: none;
      background: linear-gradient(180deg, transparent, rgba(3,15,27,.58));
    }

    .hero-grid {
      display: grid;
      grid-template-columns: 1.07fr .93fr;
      align-items: center;
      gap: 70px;
    }

    .eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 9px;
      color: #b4e2fb;
      text-transform: uppercase;
      letter-spacing: 2px;
      font-size: .77rem;
      font-weight: 800;
      margin-bottom: 15px;
    }

    .eyebrow::before { content: ""; width: 34px; height: 2px; background: var(--sky); }

    h1, h2, h3 { margin: 0; font-family: "Barlow Condensed", sans-serif; }

    h1 {
      font-size: clamp(3.8rem, 8vw, 7.4rem);
      line-height: .82;
      letter-spacing: -2px;
      text-transform: uppercase;
    }

    h1 span {
      display: block;
      margin-top: 17px;
      color: var(--sky);
      font-size: .46em;
      letter-spacing: 4px;
    }

    .hero-copy { text-shadow: 0 3px 18px rgba(0,0,0,.74); }

    .hero-copy p {
      max-width: 630px;
      margin: 28px 0;
      color: #c6d6e4;
      font-size: 1.05rem;
      line-height: 1.75;
    }

    .hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

    .hero-card {
      max-width: 430px;
      justify-self: end;
      padding: 0;
      border: 0;
      background: transparent;
      box-shadow: none;
      transform: none;
      animation: float 6s ease-in-out infinite;
      filter: drop-shadow(0 24px 40px rgba(0,0,0,.42));
    }

    .hero-card img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; clip-path: circle(49% at 50% 50%); }
    @keyframes float { 50% { transform: translateY(-12px) rotate(-1deg); } }

    .countdown-wrap { margin-top: 42px; display: flex; gap: 12px; flex-wrap: wrap; }
    .count-box {
      min-width: 90px;
      padding: 14px 16px;
      border-radius: 18px;
      border: 1px solid var(--line);
      background: rgba(255,255,255,.055);
      backdrop-filter: blur(9px);
    }

    .count-box strong { display: block; font-family: "Barlow Condensed", sans-serif; font-size: 2rem; }
    .count-box small { color: var(--muted); text-transform: uppercase; font-size: .64rem; letter-spacing: 1.2px; }


    .event-facts {
      margin-top: -1px;
      padding: 0 0 26px;
      background: linear-gradient(180deg, rgba(3,15,27,.96), transparent);
    }

    .facts-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 12px;
    }

    .fact {
      min-height: 112px;
      padding: 22px;
      display: flex;
      flex-direction: column;
      justify-content: center;
      border: 1px solid var(--line);
      border-radius: 20px;
      background: linear-gradient(145deg, rgba(255,255,255,.075), rgba(255,255,255,.025));
      text-align: center;
    }

    .fact span {
      color: var(--sky);
      text-transform: uppercase;
      letter-spacing: 1.2px;
      font-size: .7rem;
      font-weight: 800;
      margin-bottom: 8px;
    }

    .fact strong {
      font-family: "Barlow Condensed", sans-serif;
      font-size: 1.35rem;
      line-height: 1.1;
    }

    .section { padding: 108px 0; }
    .section-title { max-width: 760px; margin-bottom: 46px; }
    .section-title h2 { font-size: clamp(2.7rem, 6vw, 4.5rem); line-height: .94; text-transform: uppercase; }
    .section-title p { color: var(--muted); line-height: 1.72; }

    .cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
    .info-card {
      padding: 28px;
      border-radius: var(--radius);
      border: 1px solid var(--line);
      background: linear-gradient(145deg, rgba(255,255,255,.075), rgba(255,255,255,.025));
      transition: .3s ease;
    }

    .info-card:hover { transform: translateY(-8px); border-color: rgba(91,192,247,.45); }
    .icon {
      width: 48px;
      height: 48px;
      display: grid;
      place-items: center;
      border-radius: 14px;
      background: rgba(91,192,247,.13);
      color: var(--sky);
      font-size: 1.35rem;
      margin-bottom: 20px;
    }

    .info-card h3 { font-size: 1.68rem; margin-bottom: 8px; }
    .info-card p { margin: 0; color: var(--muted); line-height: 1.65; }


    .schedule-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:18px; }
    .schedule-day { padding:26px; border:1px solid var(--line); border-radius:var(--radius); background:linear-gradient(145deg,rgba(255,255,255,.075),rgba(255,255,255,.025)); }
    .schedule-date { display:inline-flex; padding:7px 11px; margin-bottom:14px; border-radius:999px; color:var(--sky); background:rgba(91,192,247,.12); font-size:.75rem; font-weight:800; letter-spacing:1px; }
    .schedule-day h3 { font-size:1.8rem; margin-bottom:16px; }
    .schedule-row { display:grid; grid-template-columns:110px 1fr; gap:14px; padding:12px 0; border-top:1px solid rgba(255,255,255,.09); color:var(--muted); }
    .schedule-row strong { color:white; }
    .categories-section { background:linear-gradient(180deg,rgba(255,255,255,.02),transparent); }
    .fee-strip { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; margin-bottom:22px; }
    .fee-strip>div { padding:22px; border:1px solid var(--line); border-radius:18px; background:rgba(255,255,255,.045); text-align:center; }
    .fee-strip span { display:block; min-height:34px; color:var(--muted); font-size:.78rem; line-height:1.35; }
    .fee-strip strong { display:block; margin-top:8px; color:var(--sky); font-family:"Barlow Condensed",sans-serif; font-size:1.65rem; }
    .table-wrap { overflow-x:auto; border:1px solid var(--line); border-radius:22px; background:rgba(255,255,255,.035); }
    .categories-table { width:100%; min-width:760px; border-collapse:collapse; }
    .categories-table th,.categories-table td { padding:14px 16px; border-bottom:1px solid rgba(255,255,255,.08); text-align:left; }
    .categories-table th { color:var(--sky); background:rgba(91,192,247,.07); font-size:.78rem; text-transform:uppercase; letter-spacing:.7px; }
    .categories-table td { color:#d7e4ee; }
    .extra-info-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; margin-top:22px; }

    .registration {
      background:
        radial-gradient(circle at 86% 50%, rgba(52,166,232,.15), transparent 30%),
        linear-gradient(180deg, transparent, rgba(255,255,255,.025), transparent);
    }

    .tabs {
      display: inline-flex;
      padding: 5px;
      margin-bottom: 26px;
      border: 1px solid var(--line);
      border-radius: 999px;
      background: rgba(255,255,255,.04);
    }

    .tab-btn {
      border: 0;
      background: none;
      color: var(--muted);
      padding: 12px 20px;
      border-radius: 999px;
      font-weight: 800;
      cursor: pointer;
    }

    .tab-btn.active { background: var(--white); color: var(--navy); }

    .form-panel {
      display: none;
      padding: 30px;
      border: 1px solid var(--line);
      border-radius: 28px;
      background: rgba(255,255,255,.045);
      box-shadow: var(--shadow);
    }

    .form-panel.active { display: block; animation: appear .35s ease; }
    @keyframes appear { from { opacity: 0; transform: translateY(8px); } }

    .form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .field { display: flex; flex-direction: column; gap: 8px; }
    .field.full { grid-column: 1 / -1; }
    label { color: #dce8f1; font-size: .84rem; }

    input, select, textarea {
      width: 100%;
      padding: 15px 16px;
      border-radius: 14px;
      border: 1px solid rgba(255,255,255,.14);
      background: rgba(0,0,0,.19);
      color: white;
      outline: none;
      transition: .2s ease;
    }

    input:focus, select:focus, textarea:focus {
      border-color: var(--sky);
      box-shadow: 0 0 0 3px rgba(91,192,247,.12);
    }

    option { color: #111; }
    .form-note { color: var(--muted); font-size: .82rem; }
    .submit-row { margin-top: 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

    .download-box {
      display: grid;
      grid-template-columns: 1fr auto;
      gap: 28px;
      align-items: center;
      padding: 34px;
      border-radius: 28px;
      border: 1px solid rgba(91,192,247,.34);
      background: linear-gradient(135deg, rgba(13,96,158,.31), rgba(255,255,255,.04));
    }

    .download-box h3 { font-size: 2rem; }
    .download-box p { margin-bottom: 0; color: var(--muted); }


    .gallery-tabs {
      display: flex;
      gap: 10px;
      padding: 6px;
      margin-bottom: 24px;
      overflow-x: auto;
      scrollbar-width: none;
      border: 1px solid var(--line);
      border-radius: 999px;
      background: rgba(255,255,255,.04);
    }

    .gallery-tabs::-webkit-scrollbar { display: none; }

    .gallery-tab {
      flex: 0 0 auto;
      padding: 12px 18px;
      border: 0;
      border-radius: 999px;
      color: var(--muted);
      background: transparent;
      font-weight: 800;
      cursor: pointer;
      transition: .25s ease;
    }

    .gallery-tab.active {
      color: #03101d;
      background: var(--white);
    }

    .gallery-panel { display: none; }
    .gallery-panel.active { display: block; animation: appear .35s ease; }

    .hall-video-card {
      position: relative;
      overflow: hidden;
      border: 1px solid var(--line);
      border-radius: 28px;
      background: #020b13;
      box-shadow: var(--shadow);
    }

    .hall-video-card video {
      display: block;
      width: 100%;
      max-height: 680px;
      aspect-ratio: 16 / 9;
      object-fit: cover;
      background: #020b13;
    }

    .hall-video-info {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 18px;
      padding: 18px 22px;
      background: rgba(3,15,27,.88);
    }

    .hall-video-info h3 { font-size: 1.6rem; }
    .hall-video-info p { margin: 4px 0 0; color: var(--muted); }

    .photo-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 14px;
    }

    .gallery-photo {
      position: relative;
      min-height: 230px;
      padding: 0;
      overflow: hidden;
      border: 1px solid var(--line);
      border-radius: 20px;
      background: rgba(255,255,255,.045);
      cursor: zoom-in;
    }

    .gallery-photo:nth-child(1),
    .gallery-photo:nth-child(5) {
      grid-column: span 2;
    }

    .gallery-photo img {
      width: 100%;
      height: 100%;
      min-height: 230px;
      object-fit: cover;
      transition: transform .45s ease, filter .45s ease;
    }

    .gallery-photo:hover img {
      transform: scale(1.055);
      filter: brightness(1.08);
    }

    .gallery-photo::after {
      content: "＋";
      position: absolute;
      right: 14px;
      bottom: 14px;
      width: 40px;
      height: 40px;
      display: grid;
      place-items: center;
      border-radius: 50%;
      color: white;
      background: rgba(3,15,27,.68);
      backdrop-filter: blur(10px);
      opacity: 0;
      transform: translateY(8px);
      transition: .25s ease;
    }

    .gallery-photo:hover::after {
      opacity: 1;
      transform: none;
    }

    .gallery-empty-note {
      margin-top: 14px;
      color: var(--muted);
      font-size: .82rem;
      text-align: center;
    }

    .lightbox {
      position: fixed;
      inset: 0;
      z-index: 200;
      display: none;
      align-items: center;
      justify-content: center;
      padding: 24px;
      background: rgba(0,0,0,.92);
    }

    .lightbox.open { display: flex; }

    .lightbox img {
      max-width: min(1200px, 92vw);
      max-height: 86vh;
      object-fit: contain;
      border-radius: 12px;
      box-shadow: 0 28px 100px rgba(0,0,0,.55);
    }

    .lightbox-close,
    .lightbox-prev,
    .lightbox-next {
      position: absolute;
      width: 48px;
      height: 48px;
      display: grid;
      place-items: center;
      border: 1px solid rgba(255,255,255,.25);
      border-radius: 50%;
      color: white;
      background: rgba(3,15,27,.7);
      backdrop-filter: blur(10px);
      cursor: pointer;
    }

    .lightbox-close { top: 22px; right: 22px; font-size: 1.4rem; }
    .lightbox-prev { left: 22px; }
    .lightbox-next { right: 22px; }


    footer {
      padding: 38px 0;
      border-top: 1px solid var(--line);
      color: var(--muted);
    }

    .footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
    .socials { display: flex; gap: 12px; }
    .socials a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); }

    .reveal { opacity: 0; transform: translateY(28px); transition: .7s ease; }
    .reveal.visible { opacity: 1; transform: none; }

    @media (max-width: 920px) {
      .nav-links {
        position: fixed;
        left: 16px;
        right: 16px;
        top: 84px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 18px;
        background: #071b31;
        border: 1px solid var(--line);
        border-radius: 20px;
        box-shadow: var(--shadow);
      }

      .nav-links.open { display: flex; }
      .menu-btn { display: block; }
      .hero-grid { grid-template-columns: 1fr; gap: 44px; }
      .hero-card { justify-self: center; max-width: 360px; }
      .cards, .schedule-grid, .extra-info-grid { grid-template-columns: 1fr; }
      .photo-grid { grid-template-columns: repeat(2, 1fr); }
      .gallery-photo:nth-child(1), .gallery-photo:nth-child(5) { grid-column: auto; }
      .fee-strip { grid-template-columns: repeat(2, 1fr); }
      .facts-grid { grid-template-columns: repeat(2, 1fr); }
    }

    @media (max-width: 640px) {
      .container { width: calc(100% - 22px); }
      .nav-inner { width: calc(100% - 22px); }
      .brand span { display: none; }
      .hero { padding-top: 100px; }
      .hero-copy { text-align: center; }
      .hero-copy .eyebrow { justify-content: center; }
      .hero-actions, .countdown-wrap { justify-content: center; }
      .count-box { min-width: calc(25% - 10px); padding: 11px 7px; text-align: center; }
      .count-box strong { font-size: 1.55rem; }
      .section { padding: 82px 0; }
      .section-title { text-align: center; margin-left: auto; margin-right: auto; }
      .form-grid { grid-template-columns: 1fr; }
      .field.full { grid-column: auto; }
      .form-panel { padding: 18px; }
      .download-box { grid-template-columns: 1fr; text-align: center; }
      .download-box .btn, .submit-row .btn { width: 100%; }
      .hero-card { width: 88%; transform: none; animation: none; }
      .lang-btn { padding: 8px 9px; }
      .facts-grid { grid-template-columns: 1fr; }
      .fact { min-height: 94px; }
      .fee-strip { grid-template-columns: 1fr; }
      .schedule-row { grid-template-columns: 92px 1fr; }
      .video-play-btn { bottom: 18px; }
      .photo-grid { grid-template-columns: 1fr; }
      .gallery-photo, .gallery-photo img { min-height: 250px; }
      .hall-video-info { align-items: flex-start; flex-direction: column; }
      .lightbox-prev { left: 8px; }
      .lightbox-next { right: 8px; }
    }

/* WordPress theme optimizations */
.admin-bar .nav { top: 32px; }
.hero-video-only {
  min-height: 100svh;
  height: 100svh;
  padding: 0;
  display: block;
  background: #03101d;
}
.hero-video-only .video-bg { z-index: 0; }
.hero-video-only .video-fallback { z-index: -1; background: #03101d; }
.hero-video-only::after {
  z-index: 1;
  height: 22%;
  background: linear-gradient(180deg, transparent, rgba(3,15,27,.62));
}
.hero-video-only .video-play-btn { z-index: 4; }
.hero-scroll {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 22px;
  width: 34px;
  height: 54px;
  transform: translateX(-50%);
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 999px;
  display: grid;
  place-items: start center;
  padding-top: 9px;
  background: rgba(3,15,27,.18);
  backdrop-filter: blur(6px);
}
.hero-scroll span {
  width: 5px;
  height: 9px;
  border-radius: 99px;
  background: white;
  animation: scrollHint 1.7s infinite;
}
@keyframes scrollHint {
  0% { opacity: 0; transform: translateY(0); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translateY(22px); }
}
@media (max-width: 782px) {
  .admin-bar .nav { top: 46px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}


/* Hero without the large circular logo */
.hero-without-logo .hero-grid {
  grid-template-columns: minmax(0, 820px);
  justify-content: start;
}

.hero-without-logo .hero-copy {
  max-width: 820px;
}

@media (max-width: 760px) {
  .hero-without-logo .hero-grid {
    justify-content: center;
  }

  .hero-without-logo .hero-copy {
    max-width: 100%;
  }
}


/* Two downloadable registration forms */
.download-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.download-actions .btn {
  min-width: 190px;
  justify-content: center;
}

@media (max-width: 760px) {
  .download-actions {
    width: 100%;
    flex-direction: column;
  }

  .download-actions .btn {
    width: 100%;
  }
}
