/* MyTEAMcard theme (Bootstrap 5.3 on top).
   Load after vendor/bootstrap-5.3.3.min.css and vendor/bootstrap-icons-1.11.3.min.css.
   Palette kept from the previous design: navy panel, teal-gradient buttons.
   Background: "Option B" - layered gradients with pitch markings, no photograph (nothing to license).
   Club sites can override --tc-accent / --tc-accent-2 / --tc-navy. */

/* Inter (SIL Open Font License 1.1), variable weight 400-800, Latin subset, self-hosted */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("vendor/fonts/inter-latin-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --tc-navy: #132f3c;
  --tc-navy-2: #1c4252;
  --tc-accent: #1ab4e8;
  --tc-accent-2: #3fdcc9;
  --tc-ink: #1d2a33;
  --tc-muted: #5f6f7b;
  --tc-surface: #ffffff;
  --tc-bg: #f3f6f8;
  --tc-border: #e3e9ee;
  --tc-radius: 14px;
  --tc-shadow: 0 1px 2px rgba(16, 38, 52, .06), 0 8px 24px rgba(16, 38, 52, .08);
  --tc-gradient: linear-gradient(90deg, var(--tc-accent), var(--tc-accent-2));
  --tc-hero-bg:
    radial-gradient(60% 55% at 85% 10%, rgba(63, 220, 201, .30), rgba(63, 220, 201, 0) 70%),
    radial-gradient(55% 60% at 8% 95%, rgba(26, 180, 232, .26), rgba(26, 180, 232, 0) 70%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .028) 0 90px, rgba(255, 255, 255, 0) 90px 180px),
    linear-gradient(145deg, #0d2430 0%, #132f3c 45%, #1b4555 100%);

  --bs-body-font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --bs-body-color: var(--tc-ink);
  --bs-body-bg: #fff;
  --bs-border-color: var(--tc-border);
  --bs-link-color-rgb: 15, 127, 166;
  --bs-link-hover-color-rgb: 11, 99, 132;
  --bs-border-radius: 10px;
  --bs-border-radius-lg: var(--tc-radius);
}

body.tc { background: var(--tc-bg); -webkit-font-smoothing: antialiased; }
.tc h1, .tc h2, .tc h3, .tc h4, .tc h5 { letter-spacing: -.01em; }
.tc .text-muted { color: var(--tc-muted) !important; }
.tc-small-caps { font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--tc-muted); }

/* ---------- buttons & inputs ---------- */
.btn-tc {
  --bs-btn-color: #fff; --bs-btn-hover-color: #fff; --bs-btn-active-color: #fff;
  background: var(--tc-gradient); border: 0; font-weight: 600; letter-spacing: .02em;
  padding: .75rem 1.25rem; border-radius: 10px; box-shadow: 0 6px 16px rgba(26, 180, 232, .28);
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}
.btn-tc:hover { filter: brightness(1.04); transform: translateY(-1px); box-shadow: 0 10px 22px rgba(26, 180, 232, .32); }
.btn-tc:focus-visible { outline: 3px solid rgba(26, 180, 232, .45); outline-offset: 2px; }
.btn-outline-tc { border: 1.5px solid var(--tc-accent); color: #0f7fa6; font-weight: 600; border-radius: 10px; }
.btn-outline-tc:hover, .btn-outline-tc:focus { background: rgba(26, 180, 232, .08); color: #0b6a8b; border-color: var(--tc-accent); }

.tc .form-control, .tc .form-select { padding: .75rem .9rem; border-radius: 10px; border-color: #d6dee5; }
.tc .form-control:focus, .tc .form-select:focus { border-color: var(--tc-accent); box-shadow: 0 0 0 .2rem rgba(26, 180, 232, .18); }
.tc .form-floating > label { color: var(--tc-muted); }
.tc .input-group-text { background: #f7f9fb; border-color: #d6dee5; color: var(--tc-muted); }

/* ---------- cards ---------- */
.tc-card { background: var(--tc-surface); border: 1px solid var(--tc-border); border-radius: var(--tc-radius); box-shadow: var(--tc-shadow); }
.tc-card .card-header { background: transparent; border-bottom: 1px solid var(--tc-border); padding: 1rem 1.25rem; font-weight: 600; }
.tc-card .card-body { padding: 1.25rem; }
.tc-icon { width: 2.5rem; height: 2.5rem; display: inline-grid; place-items: center; border-radius: 10px;
  background: rgba(26, 180, 232, .12); color: #0f84ad; font-size: 1.15rem; flex: 0 0 auto; }

/* ---------- logged-out home: split screen ---------- */
.tc-split { min-height: 100vh; display: grid; grid-template-columns: minmax(380px, 40%) 1fr; }
.tc-split__panel { background: #f8fafb; display: flex; flex-direction: column; padding: 2.5rem clamp(1.5rem, 4vw, 4rem) 1.5rem; }
.tc-split__hero { position: relative; overflow: hidden; color: #fff; background: var(--tc-hero-bg); }
.tc-split__hero::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: url("../image/brand/pitch-lines.svg") center / cover no-repeat; }
.tc-split__hero-content { position: relative; z-index: 1; padding: clamp(2rem, 7vw, 6rem) clamp(1.5rem, 5vw, 5rem); max-width: 40rem; }
.tc-hero-title { font-size: clamp(2rem, 4vw, 3.25rem); font-weight: 700; line-height: 1.1; }
.tc-hero-lead { font-size: clamp(1rem, 1.6vw, 1.25rem); color: rgba(255, 255, 255, .85); }
.tc-hero-points { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: .85rem; }
.tc-hero-points li { display: flex; gap: .75rem; align-items: center; color: rgba(255, 255, 255, .9); }
.tc-hero-points i { width: 2rem; height: 2rem; display: grid; place-items: center; border-radius: 50%;
  background: rgba(63, 220, 201, .18); color: var(--tc-accent-2); }
.tc-logo { height: 44px; width: auto; }
.tc-auth { width: 100%; max-width: 420px; margin: 0 auto; }
.tc-mobile-brand { display: none; background: #fff; border-bottom: 1px solid var(--tc-border); padding: .85rem 1rem; justify-content: center; }
.tc-mobile-brand .tc-logo { height: 34px; }

.tc-cardnum { display: grid; grid-template-columns: 2fr 3fr 3fr 3fr; gap: .5rem; }
.tc .tc-cardnum .form-control { text-align: center; font-variant-numeric: tabular-nums; letter-spacing: .12em; padding-inline: .25rem; }

.tc-divider { display: flex; align-items: center; gap: .75rem; color: var(--tc-muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.tc-divider::before, .tc-divider::after { content: ""; flex: 1; height: 1px; background: var(--tc-border); }

/* ---------- simple page (privacy, help, about as full pages) ---------- */
.tc-page-head { background: var(--tc-hero-bg); color: #fff; position: relative; overflow: hidden; }
.tc-page-head::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: url("../image/brand/pitch-lines.svg") center / cover no-repeat; opacity: .8; }
.tc-page-head > .container { position: relative; z-index: 1; }
.tc-topbar { background: #fff; border-bottom: 1px solid var(--tc-border); }

/* ---------- footer ---------- */
.tc-footer { background: #24313a; color: rgba(255, 255, 255, .72); font-size: .85rem; }
.tc-footer a { color: #fff; text-decoration: none; }
.tc-footer a:hover { text-decoration: underline; }
.tc-footer .tc-venue { height: 52px; width: auto; }
.tc-footer--light { background: transparent; color: var(--tc-muted); }
.tc-footer--light a { color: #0f7fa6; }

/* ---------- modals as cards ---------- */
.tc-modal .modal-content { border: 0; border-radius: 18px; overflow: hidden; box-shadow: 0 24px 64px rgba(10, 28, 38, .28); }
.tc-modal .modal-header { background: var(--tc-navy); color: #fff; border: 0; padding: 1.25rem 1.5rem; }
.tc-modal .modal-header .btn-close { filter: invert(1) grayscale(1) brightness(2); }
.tc-modal .modal-body { background: var(--tc-bg); padding: 1.25rem; }
.tc-modal .tc-card + .tc-card { margin-top: .75rem; }
.tc .accordion { --bs-accordion-border-color: var(--tc-border); --bs-accordion-active-bg: #eaf7fd;
  --bs-accordion-active-color: var(--tc-ink); --bs-accordion-btn-focus-box-shadow: 0 0 0 .2rem rgba(26, 180, 232, .18); }
.tc .accordion-item { border-radius: 12px !important; overflow: hidden; margin-bottom: .6rem; border: 1px solid var(--tc-border); box-shadow: var(--tc-shadow); }
.tc .accordion-button { font-weight: 600; }

/* ---------- member area (used by the myteamcard / settings templates) ---------- */
.tc-topbar .nav-link { color: var(--tc-ink); font-weight: 500; padding: .5rem .9rem !important; border-radius: 8px; }
.tc-topbar .nav-link:hover { background: var(--tc-bg); }
.tc-topbar .nav-link.active { color: #0f7fa6; background: rgba(26, 180, 232, .1); }
.tc-topbar.sticky-top { z-index: 1045; }
.tc-avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .85rem;
  background: var(--tc-gradient); color: #fff; }
.tc-subhero { background: var(--tc-hero-bg); color: #fff; position: relative; overflow: hidden; }
.tc-subhero::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: url("../image/brand/pitch-lines.svg") center / cover no-repeat; }
.tc-subhero > .container, .tc-subhero > .container-xl { position: relative; }
.tc-balance { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); border-radius: var(--tc-radius); }
.tc-balance__value { font-size: clamp(2.25rem, 5vw, 3.25rem); font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.tc-stat { font-variant-numeric: tabular-nums; font-weight: 700; font-size: clamp(1.05rem, 3.6vw, 1.35rem); white-space: nowrap; }
.tc-points-pos, .table .tc-points-pos { color: #0f8a5f; font-weight: 700; font-variant-numeric: tabular-nums; }
.tc-points-neg, .table .tc-points-neg { color: #b4472f; font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---------- responsive ---------- */
@media (max-width: 991.98px) {
  .tc-split { grid-template-columns: 1fr; min-height: 0; }
  .tc-split__hero { order: -1; min-height: 240px; }
  .tc-split__hero-content { padding: 1.75rem 1.5rem 3.5rem; }
  .tc-hero-points { display: none; }
  .tc-split__panel { padding: 0 1rem 1.5rem; background: var(--tc-bg); }
  .tc-auth-wrap { margin-top: -2.5rem; position: relative; z-index: 2; }
  .tc-panel-logo { display: none !important; }
  .tc-mobile-brand { display: flex; }
}
@media (max-width: 400px) {
  .tc-cardnum { gap: .35rem; }
  .tc .tc-cardnum .form-control { letter-spacing: .04em; font-size: .95rem; }
}
