/* ==========================================================================
   Pickle.ai Club — site styles
   Palette: deep navy + pickleball optic yellow, with a court-blue accent.
   ========================================================================== */
:root {
  --navy: #0b1f3a;
  --navy-2: #12305a;
  --blue: #1f6feb;
  --ball: #d9f24a;
  --ball-dark: #b8d12a;
  --ink: #142033;
  --muted: #5b6b82;
  --line: #e3e8ef;
  --bg: #f6f8fb;
  --white: #fff;
  --danger: #d64545;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(11, 31, 58, .10);
  --max: 1180px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Bebas Neue", "Oswald", Impact, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6; }
img, video { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; }
h1, h2 { font-family: var(--display); letter-spacing: .02em; font-weight: 400; }
h2 { font-size: clamp(2rem, 4vw, 2.8rem); }
.container { width: min(100% - 2rem, var(--max)); margin-inline: auto; }
.section { padding: 72px 0; }
.section--alt { background: var(--white); }
.section--dark { background: var(--navy); color: #e8eef7; }
.section--dark h2 { color: var(--white); }
.eyebrow { text-transform: uppercase; font-weight: 700; letter-spacing: .14em; font-size: .78rem; color: var(--blue); margin-bottom: .4rem; }
.section--dark .eyebrow { color: var(--ball); }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 720px; }
.section--dark .lead { color: #b9c6d8; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .75rem 1.3rem; border-radius: 999px; font-weight: 700; border: 2px solid transparent; cursor: pointer; font-size: .95rem; transition: transform .15s, background .15s; text-decoration: none !important; }
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--ball); color: var(--navy); }
.btn--primary:hover { background: var(--ball-dark); }
.btn--blue { background: var(--blue); color: var(--white); }
.btn--ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn--danger { background: var(--danger); color: var(--white); }
.btn--sm { padding: .45rem .9rem; font-size: .85rem; }

/* Announcement bar */
.topbar { background: var(--ball); color: var(--navy); font-size: .9rem; font-weight: 600; text-align: center; padding: .5rem 1rem; }
.topbar a { color: var(--navy); text-decoration: underline; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(11, 31, 58, .97); backdrop-filter: blur(8px); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .6rem; color: var(--white); font-family: var(--display); font-size: 1.7rem; letter-spacing: .04em; text-decoration: none !important; }
.brand__ball { width: 30px; height: 30px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, #f1ff9b, var(--ball) 55%, var(--ball-dark)); box-shadow: inset -3px -3px 0 rgba(0,0,0,.12); position: relative; }
.brand__ball::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: radial-gradient(circle, rgba(11,31,58,.35) 2px, transparent 2.5px) 0 0 / 7px 7px; }
.brand__logo { width: 44px; height: 44px; object-fit: contain; }
.venue__img { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; }
.camp__img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); }
.brand span b { color: var(--ball); font-weight: 400; }
.nav { display: flex; align-items: center; gap: .1rem; }
.nav a { color: #d4deec; font-weight: 600; font-size: .85rem; padding: .45rem .5rem; white-space: nowrap; border-radius: 8px; text-decoration: none; }
.nav a:hover, .nav a.active { color: var(--navy); background: var(--ball); }
.nav .btn { margin-left: .5rem; color: var(--navy); background: var(--ball); }
.nav .btn:hover { background: var(--white); }
.nav-toggle { display: none; background: none; border: 0; color: var(--white); font-size: 1.6rem; cursor: pointer; }

/* Dropdown group (e.g. Tournaments) */
.nav-group { position: relative; }
.nav-group__head { display: flex; align-items: center; }
.nav-group__head a { padding-right: .25rem; }
.nav-group__toggle { background: none; border: 0; color: #d4deec; cursor: pointer; font-size: .8rem; padding: .45rem .35rem; border-radius: 6px; transition: transform .15s; }
.nav-group__toggle:hover { color: var(--ball); }
.nav-sub { position: absolute; top: 100%; left: 0; min-width: 230px; padding: .5rem; margin-top: .4rem; background: var(--white); border-radius: 12px; box-shadow: 0 18px 40px rgba(0,0,0,.25); display: none; flex-direction: column; z-index: 60; }
.nav-sub::before { content: ""; position: absolute; top: -.6rem; left: 0; right: 0; height: .6rem; } /* hover bridge */
.nav-sub a { color: var(--ink); padding: .6rem .8rem; font-size: .9rem; }
.nav-sub a:hover, .nav-sub a.active { background: var(--bg); color: var(--blue); }
.nav-sub a.active { box-shadow: inset 3px 0 0 var(--ball); }
.nav-group.open .nav-sub { display: flex; }
.nav-group.open .nav-group__toggle { transform: rotate(180deg); }
@media (hover: hover) and (min-width: 1101px) {
  .nav-group:hover .nav-sub, .nav-group:focus-within .nav-sub { display: flex; }
  .nav-group:hover .nav-group__toggle { transform: rotate(180deg); }
}

@media (max-width: 1100px) {
  .nav-toggle { display: block; }
  .nav { position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--navy); padding: 1rem; display: none; max-height: calc(100vh - 68px); overflow-y: auto; }
  .nav.open { display: flex; }
  .nav .btn { margin: .5rem 0 0; justify-content: center; }
  .nav-group__head { justify-content: space-between; }
  .nav-group__head a { flex: 1; }
  .nav-group__toggle { font-size: 1rem; padding: .45rem .8rem; }
  .nav-sub { position: static; box-shadow: none; margin: .2rem 0 .4rem .8rem; padding: .2rem 0 .2rem .6rem; background: transparent; border-left: 2px solid rgba(255,255,255,.12); border-radius: 0; min-width: 0; }
  .nav-sub::before { display: none; }
  .nav-sub a { color: #b9c6d8; }
  .nav-sub a:hover, .nav-sub a.active { background: rgba(255,255,255,.06); color: var(--ball); box-shadow: none; }
}

/* Hero */
.hero { background-size: cover !important; background-position: center !important; position: relative; color: var(--white); background: linear-gradient(120deg, rgba(11,31,58,.95), rgba(18,48,90,.82)), var(--navy); overflow: hidden; }
.hero::before { /* court lines */ content: ""; position: absolute; inset: 0; background:
  linear-gradient(90deg, transparent calc(50% - 1px), rgba(255,255,255,.08) calc(50% - 1px), rgba(255,255,255,.08) calc(50% + 1px), transparent calc(50% + 1px)),
  linear-gradient(0deg, transparent calc(30% - 1px), rgba(255,255,255,.06) calc(30% - 1px), rgba(255,255,255,.06) calc(30% + 1px), transparent calc(30% + 1px)),
  linear-gradient(0deg, transparent calc(70% - 1px), rgba(255,255,255,.06) calc(70% - 1px), rgba(255,255,255,.06) calc(70% + 1px), transparent calc(70% + 1px)); pointer-events: none; }
.hero .container { position: relative; padding: 110px 0 100px; }
.hero h1 { font-size: clamp(3.2rem, 9vw, 6.5rem); margin-bottom: .1em; }
.hero h1 b { color: var(--ball); font-weight: 400; }
.hero .tagline { font-size: clamp(1.1rem, 2.4vw, 1.5rem); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ball); }
.hero p { max-width: 640px; color: #c9d5e6; font-size: 1.1rem; }
.hero .actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.hero--page .container { padding: 80px 0 64px; }
.hero--page h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); }

/* Stats strip */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; margin-top: 2.5rem; max-width: 760px; }
.stat { border-left: 3px solid var(--ball); padding-left: .9rem; }
.stat strong { display: block; font-family: var(--display); font-size: 2.2rem; font-weight: 400; color: var(--white); }
.stat span { color: #b9c6d8; font-size: .9rem; }

/* Grid + cards */
.grid { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.card__body { padding: 1.3rem; flex: 1; display: flex; flex-direction: column; }
.card__body p { color: var(--muted); margin: 0 0 1rem; }
.card__body .btn, .card__body .card__foot { margin-top: auto; }
.card__icon { width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; background: var(--navy); color: var(--ball); font-size: 1.5rem; margin-bottom: 1rem; }
.section--dark .card { background: var(--navy-2); border-color: rgba(255,255,255,.08); color: #e8eef7; }
.section--dark .card p { color: #b9c6d8; }
.promo { padding: 1.8rem; background: linear-gradient(145deg, var(--navy-2), var(--navy)); color: var(--white); border: 1px solid rgba(255,255,255,.1); }
.promo h3 { font-family: var(--display); font-weight: 400; font-size: 1.9rem; color: var(--ball); }
.promo p { color: #c9d5e6; font-size: 1.05rem; margin: 0; }

/* Tournament cards */
.t-card__media { aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--navy), var(--blue)); position: relative; overflow: hidden; }
.t-card__media img { width: 100%; height: 100%; object-fit: cover; }
.t-card__media .placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: var(--ball); font-family: var(--display); font-size: 2rem; text-align: center; padding: 1rem; }
.badge { display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: .25rem .6rem; border-radius: 999px; background: var(--ball); color: var(--navy); }
.badge--past { background: #e3e8ef; color: var(--muted); }
.badge--live { background: var(--danger); color: var(--white); }
.badge--local { background: var(--blue); color: var(--white); }
.t-card__media .badge { position: absolute; top: .8rem; left: .8rem; }
.t-card__media .badge + .badge { left: auto; right: .8rem; }
.meta { list-style: none; padding: 0; margin: 0 0 1rem; color: var(--muted); font-size: .92rem; }
.meta li { display: flex; gap: .5rem; }
.t-card h3 a { color: var(--ink); }

/* Filters */
.toolbar { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; justify-content: space-between; margin-bottom: 1.6rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { border: 1px solid var(--line); background: var(--white); border-radius: 999px; padding: .45rem 1rem; font-weight: 600; cursor: pointer; font-size: .88rem; color: var(--ink); }
.chip.active { background: var(--navy); color: var(--white); border-color: var(--navy); }
.search { border: 1px solid var(--line); border-radius: 999px; padding: .55rem 1rem; min-width: 240px; font: inherit; }
.empty { text-align: center; color: var(--muted); padding: 3rem 1rem; border: 2px dashed var(--line); border-radius: var(--radius); background: var(--white); }

/* Venues */
.venue__head { background: var(--navy); color: var(--white); padding: 1.2rem 1.3rem; }
.venue__head h3 { margin: 0; }
.venue__head small { color: var(--ball); font-weight: 700; }

/* Tournament detail */
.detail-hero { background-size: cover !important; background-position: center !important; color: var(--white); background: linear-gradient(0deg, rgba(11,31,58,.96) 10%, rgba(11,31,58,.55)), var(--navy); }
.detail-hero .container { padding: 120px 0 48px; }
.detail-hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); margin: .4rem 0; }
.detail-hero .meta { color: #c9d5e6; display: flex; flex-wrap: wrap; gap: .4rem 1.6rem; font-size: 1rem; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 2rem; align-items: start; }
@media (max-width: 900px) { .detail-layout { grid-template-columns: 1fr; } }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); margin-bottom: 1.5rem; }
.panel h2 { font-size: 1.9rem; }
.sticky { position: sticky; top: 88px; }
.facts { list-style: none; padding: 0; margin: 0 0 1.2rem; }
.facts li { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.facts li span:first-child { color: var(--muted); }
.facts li span:last-child { font-weight: 700; text-align: right; }
.schedule { width: 100%; border-collapse: collapse; }
.schedule td { padding: .6rem .4rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.schedule td:first-child { font-weight: 700; white-space: nowrap; color: var(--blue); width: 1%; }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.tag { background: var(--bg); border: 1px solid var(--line); padding: .25rem .7rem; border-radius: 999px; font-size: .85rem; font-weight: 600; }
.podium { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; }
.podium div { border-radius: 12px; padding: 1rem; background: var(--bg); border: 1px solid var(--line); }
.podium strong { display: block; font-family: var(--display); font-size: 1.5rem; font-weight: 400; color: var(--navy); }

/* Gallery + lightbox */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .7rem; }
.gallery button { padding: 0; border: 0; cursor: zoom-in; border-radius: 10px; overflow: hidden; aspect-ratio: 1; background: var(--line); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery button:hover img { transform: scale(1.06); }
.videos { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.video { aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; }
.video iframe, .video video { width: 100%; height: 100%; border: 0; }
.lightbox { position: fixed; inset: 0; background: rgba(5, 12, 24, .92); display: none; place-items: center; z-index: 100; padding: 2rem; }
.lightbox.open { display: grid; }
.lightbox img { max-height: 88vh; border-radius: 10px; }
.lightbox button { position: absolute; background: rgba(255,255,255,.12); color: var(--white); border: 0; font-size: 1.8rem; width: 48px; height: 48px; border-radius: 50%; cursor: pointer; }
.lightbox .lb-close { top: 1rem; right: 1rem; }
.lightbox .lb-prev { left: 1rem; top: 50%; }
.lightbox .lb-next { right: 1rem; top: 50%; }

/* Forms */
.form { display: grid; gap: 1rem; }
.form-row { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
label { font-weight: 600; font-size: .9rem; display: grid; gap: .35rem; }
label small { font-weight: 400; color: var(--muted); }
input, select, textarea { font: inherit; padding: .7rem .85rem; border: 1px solid #cdd6e3; border-radius: 10px; background: var(--white); color: var(--ink); width: 100%; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: transparent; }
textarea { min-height: 110px; resize: vertical; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; margin: 0; background: var(--white); }
legend { font-weight: 800; padding: 0 .5rem; color: var(--navy); }
.dropzone { border: 2px dashed #b9c6d8; border-radius: 12px; padding: 1.4rem; text-align: center; color: var(--muted); background: var(--bg); cursor: pointer; }
.dropzone.drag { border-color: var(--blue); background: #eaf2ff; }
.thumbs { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .8rem; }
.thumb { position: relative; width: 110px; height: 80px; border-radius: 8px; overflow: hidden; background: #000; }
.thumb img, .thumb video { width: 100%; height: 100%; object-fit: cover; }
.thumb button { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(0,0,0,.7); color: #fff; cursor: pointer; line-height: 1; }
.repeat-row { display: grid; grid-template-columns: 150px 1fr auto; gap: .5rem; margin-bottom: .5rem; }
.repeat-row--2 { grid-template-columns: 1fr auto; }
.notice { padding: .9rem 1.1rem; border-radius: 10px; background: #eaf2ff; border: 1px solid #c7dbff; color: var(--navy-2); font-size: .92rem; }
.notice--ok { background: #eefbd0; border-color: #d4ee8f; }
.admin-list .row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--line); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 2rem; }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.contact-list li { display: flex; gap: .8rem; align-items: flex-start; }
.contact-list .card__icon { margin: 0; width: 42px; height: 42px; font-size: 1.1rem; flex: none; }

/* CTA band */
.cta { background: var(--ball); color: var(--navy); border-radius: var(--radius); padding: 2.4rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.cta h2 { margin: 0; }

/* Footer */
.site-footer { background: #071426; color: #9fb0c8; padding: 56px 0 24px; font-size: .92rem; }
.site-footer .cols { display: grid; gap: 2rem; grid-template-columns: 2fr 1fr 1fr 1fr; }
@media (max-width: 800px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }
.site-footer h4 { color: var(--white); margin: 0 0 .8rem; font-size: .95rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.site-footer a { color: #c9d5e6; }
.site-footer .bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 2.5rem; padding-top: 1.2rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.socials { display: flex; gap: .6rem; margin-top: 1rem; }
.socials a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); color: var(--white); font-weight: 800; text-decoration: none; }

/* Cookie banner */
.cookie { position: fixed; bottom: 1rem; left: 1rem; right: 1rem; max-width: 560px; margin-inline: auto; background: var(--white); border-radius: var(--radius); box-shadow: 0 20px 50px rgba(0,0,0,.25); padding: 1rem 1.2rem; display: flex; gap: 1rem; align-items: center; z-index: 90; font-size: .9rem; }

.wa-float { position: fixed; right: 1.2rem; bottom: 1.2rem; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; font-size: 1.6rem; box-shadow: 0 10px 25px rgba(0,0,0,.25); z-index: 80; text-decoration: none !important; }
.hidden { display: none !important; }

/* About: founder card */
.founder { flex-direction: row; align-items: stretch; margin-top: 1.5rem; max-width: 900px; }
.founder__avatar { flex: none; width: 220px; display: grid; place-items: center; background: linear-gradient(145deg, var(--navy-2), var(--navy)); color: var(--ball); font-family: var(--display); font-size: 4.5rem; letter-spacing: .04em; }
.founder h3 { font-size: 1.6rem; margin-bottom: .2rem; }
.founder__role { color: var(--blue); font-weight: 700; margin-bottom: 1rem; }
.founder__facts { list-style: none; padding: 0; margin: .5rem 0 0; display: flex; flex-wrap: wrap; gap: 1.5rem; }
.founder__facts li { border-left: 3px solid var(--ball); padding-left: .8rem; }
.founder__facts strong { display: block; font-family: var(--display); font-weight: 400; font-size: 1.5rem; color: var(--navy); }
.founder__facts span { color: var(--muted); font-size: .88rem; }
@media (max-width: 700px) { .founder { flex-direction: column; } .founder__avatar { width: 100%; height: 160px; } }
.split img { max-height: 460px; width: 100%; object-fit: cover; }
