/**
 * Tulsa Basketball Collective - Global Custom Styles
 * 
 * This stylesheet contains all global TBC brand overrides and custom styles
 * that should be applied across all pages.
 */

/* ============================================
   AMERICAN CAPTAIN FONT
   ============================================ */
@font-face {
  font-family: 'American Captain';
  src: url('../fonts/American Captain.ttf') format('truetype'),
       url('../fonts/American Captain.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}


/* ============================================
   CSS VARIABLES - TBC BRAND COLORS
   ============================================ */
:root {
  /* Silicon theme variables */
  --si-primary: #d4a017;
  --si-primary-rgb: 212, 160, 23;
  --si-body-font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  
  /* Bootstrap 5 variables - Override purple #6366f1 */
  --bs-primary: #d4a017;
  --bs-primary-rgb: 212, 160, 23;
  --bs-link-color: #d4a017;
  --bs-link-hover-color: #b8890b;
  --bs-dropdown-link-hover-color: #d4a017;
  --bs-dropdown-link-hover-bg: rgba(212, 160, 23, 0.1);
  --bs-dropdown-link-active-color: #fff;
  --bs-dropdown-link-active-bg: #d4a017;
}

/* Override for light mode specifically */
[data-bs-theme="light"] {
  --bs-primary: #d4a017;
  --bs-primary-rgb: 212, 160, 23;
  --bs-link-color: #d4a017;
  --bs-link-hover-color: #b8890b;
  --bs-dropdown-link-hover-color: #d4a017;
  --bs-dropdown-link-hover-bg: rgba(212, 160, 23, 0.1);
}

/* Override Silicon navbar hover color - KILL THE PURPLE */
.navbar-dark,
.navbar[data-bs-theme="dark"] {
  --si-navbar-hover-color: #d4a017;
  --si-navbar-active-color: #d4a017;
}

/* Theme toggle text - always visible in navbar (navbar is always dark) */
.navbar .mode-switch .form-check-label,
.navbar-dark .mode-switch .form-check-label,
.header .mode-switch .form-check-label {
  color: rgba(255, 255, 255, 0.85) !important;
}

/* When page is in light mode but navbar is dark, keep labels white */
[data-bs-theme="light"] .navbar-dark .mode-switch .form-check-label,
[data-bs-theme="light"] .header .mode-switch .form-check-label {
  color: rgba(255, 255, 255, 0.85) !important;
}


/* ============================================
   TYPOGRAPHY
   ============================================ */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
}

/* Primary Headlines - American Captain Font (H1, H2, Display) */
h1, h2,
.h1, .h2,
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
  font-family: 'American Captain', 'Inter', sans-serif !important;
  letter-spacing: 0.02em;
}

/* Secondary Headlines - Poppins SemiBold (H3-H6) */
h3, h4, h5, h6,
.h3, .h4, .h5, .h6 {
  font-family: 'Poppins', 'Inter', sans-serif !important;
  font-weight: 600;
}

/* Hero Headline - Extra styling for main hero headlines */
.hero-headline {
  font-family: 'American Captain', 'Inter', sans-serif !important;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}


/* ============================================
   COLOR UTILITIES
   ============================================ */
.text-primary { 
  color: #d4a017 !important; 
}

.bg-primary:not([class*="bg-opacity"]) { 
  background-color: #d4a017 !important; 
}

.border-primary { 
  border-color: #d4a017 !important; 
}

.text-gradient-primary {
  background: linear-gradient(90deg, #d4a017 0%, #e6bd45 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-gradient-primary {
  background: linear-gradient(90deg, #d4a017 0%, #e6bd45 100%) !important;
}

.shadow-primary {
  box-shadow: 0 0.5rem 1.125rem -0.5rem rgba(212, 160, 23, 0.9) !important;
}


/* ============================================
   BUTTON STYLES
   ============================================ */
.btn-primary { 
  background-color: #d4a017 !important;
  border-color: #d4a017 !important;
}

.btn-primary:hover {
  background-color: #b8890b !important;
  border-color: #b8890b !important;
}

/* Button Styling - Light vs Dark Mode */
[data-bs-theme="light"] .btn-outline-primary {
  color: #d4a017 !important;
  border-color: #d4a017 !important;
  background-color: transparent !important;
}

[data-bs-theme="light"] .btn-outline-primary:hover {
  color: #fff !important;
  background-color: #d4a017 !important;
  border-color: #d4a017 !important;
}

[data-bs-theme="dark"] .btn-outline-primary {
  color: #fff !important;
  background-color: #d4a017 !important;
  border-color: #d4a017 !important;
}

[data-bs-theme="dark"] .btn-outline-primary:hover {
  background-color: #b8890b !important;
  border-color: #b8890b !important;
}


/* ============================================
   NAVIGATION & HEADER
   ============================================ */
/* Logo styling - transparent background */
.navbar-brand {
  background-color: transparent !important;
  padding: 0.5rem !important;
}

.navbar-brand img {
  background-color: transparent !important;
  background: transparent !important;
  padding: 0 !important;
}

/* Navigation link colors - TBC orange active state */
.navbar-dark .navbar-nav .nav-link.active,
.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus {
  color: #d4a017 !important;
}

/* Light mode navigation styling */

/* Default state for Light Mode: White Background, Dark Text */
/* Applies to:
   1. Non-absolute navbars (standard pages)
   2. Absolute navbars THAT ARE STUCK (scrolled homepage)
*/
[data-bs-theme="light"] .navbar-dark:not(.position-absolute),
[data-bs-theme="light"] .navbar-dark.position-absolute.navbar-stuck {
  background-color: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
}

/* Text Colors for the White Background state (Light Mode Stuck Nav) */
[data-bs-theme="light"] .navbar-dark:not(.position-absolute) .navbar-nav .nav-link,
[data-bs-theme="light"] .navbar-dark.position-absolute.navbar-stuck .navbar-nav .nav-link,
[data-bs-theme="light"] .navbar-dark:not(.position-absolute) #navbarNav .nav-link,
[data-bs-theme="light"] .navbar-dark.position-absolute.navbar-stuck #navbarNav .nav-link,
[data-bs-theme="light"] .navbar-dark:not(.position-absolute) .form-check-label,
[data-bs-theme="light"] .navbar-dark.position-absolute.navbar-stuck .form-check-label {
  color: rgba(0, 0, 0, 0.7) !important;
}

/* Active/Hover states for the White Background state */
[data-bs-theme="light"] .navbar-dark:not(.position-absolute) .navbar-nav .nav-link.active,
[data-bs-theme="light"] .navbar-dark:not(.position-absolute) .navbar-nav .nav-link:hover,
[data-bs-theme="light"] .navbar-dark.position-absolute.navbar-stuck .navbar-nav .nav-link.active,
[data-bs-theme="light"] .navbar-dark.position-absolute.navbar-stuck .navbar-nav .nav-link:hover,
[data-bs-theme="light"] .navbar-dark:not(.position-absolute) #navbarNav .nav-link.active,
[data-bs-theme="light"] .navbar-dark:not(.position-absolute) #navbarNav .nav-link:hover,
[data-bs-theme="light"] .navbar-dark.position-absolute.navbar-stuck #navbarNav .nav-link.active,
[data-bs-theme="light"] .navbar-dark.position-absolute.navbar-stuck #navbarNav .nav-link:hover {
  color: #d4a017 !important;
}

/* "Get in Touch" button text color - ensure visibility on white background */
[data-bs-theme="light"] .navbar-dark:not(.position-absolute) .btn-primary,
[data-bs-theme="light"] .navbar-dark.position-absolute.navbar-stuck .btn-primary {
  color: white !important;
}

/* Light mode - hamburger menu icon (only when stuck/scrolled) */
[data-bs-theme="light"] .navbar-dark.navbar-stuck .navbar-toggler {
  border-color: rgba(0, 0, 0, 0.1);
}

[data-bs-theme="light"] .navbar-dark.navbar-stuck .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 0.7%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Light mode - offcanvas menu background */
[data-bs-theme="light"] .offcanvas.bg-dark {
  /* background-color: white !important; */
}

[data-bs-theme="light"] .offcanvas.bg-dark .offcanvas-header {
  border-bottom-color: rgba(0, 0, 0, 0.1) !important;
}

[data-bs-theme="light"] .offcanvas.bg-dark .offcanvas-title {
  color: #1f2937 !important;
}

[data-bs-theme="light"] .offcanvas.bg-dark .btn-close-white {
  filter: invert(1);
}

/* Light mode - dropdown menus */
[data-bs-theme="light"] .dropdown-menu {
  background-color: white !important;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

[data-bs-theme="light"] .dropdown-menu .dropdown-item {
  color: rgba(0, 0, 0, 0.7) !important;
  transition: all 0.15s ease;
}

[data-bs-theme="light"] .dropdown-menu .dropdown-item:hover,
[data-bs-theme="light"] .dropdown-menu .dropdown-item:focus,
[data-bs-theme="light"] .dropdown-menu .dropdown-item.active {
  background-color: rgba(212, 160, 23, 0.1) !important;
  color: #d4a017 !important;
}

/* Force override Silicon purple on ALL dropdown items */
.dropdown-menu .dropdown-item:hover,
.dropdown-menu .dropdown-item:focus,
.dropdown-menu .dropdown-item:active,
.dropdown-item:hover,
.dropdown-item:focus,
.dropdown-item:active,
.nav-item .dropdown-menu .dropdown-item:hover,
.nav-item .dropdown-menu .dropdown-item:focus,
.navbar-nav .dropdown-menu .dropdown-item:hover,
.navbar-nav .dropdown-menu .dropdown-item:focus,
.header .dropdown-menu .dropdown-item:hover,
.header .dropdown-menu .dropdown-item:focus,
.navbar .nav-item .dropdown-menu .dropdown-item:hover,
.navbar .nav-item .dropdown-menu .dropdown-item:focus {
  color: #d4a017 !important;
  background-color: rgba(212, 160, 23, 0.1) !important;
}

/* Override any link colors in dropdowns */
.dropdown-menu a:hover,
.dropdown-menu a:focus {
  color: #d4a017 !important;
}


/* ============================================
   DARK MODE TOGGLE SWITCH
   ============================================ */
/* Toggle switch - OVERRIDE THE COMPILED THEME CSS */
/* This matches the exact specificity of the theme's dark mode selector */
[data-bs-theme=dark] .form-switch:not([data-bs-theme=light]).mode-switch .form-check-input:checked,
[data-bs-theme=dark] .form-switch:not([data-bs-theme=light]).mode-switch .form-check-input {
  background-color: #d4a017 !important;
  border-color: #d4a017 !important;
}

/* Additional overrides for all states */
body .form-check-input:checked,
body .mode-switch .form-check-input:checked,
body .form-switch .form-check-input:checked,
body [data-bs-toggle="mode"] .form-check-input:checked,
body [data-bs-theme="dark"] .form-check-input:checked,
body [data-bs-theme="dark"] .mode-switch .form-check-input:checked,
body .pe-lg-1 .form-switch .form-check-input:checked,
body header .form-check-input:checked {
  background-color: #d4a017 !important;
  border-color: #d4a017 !important;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e") !important;
}

body .form-check-input:focus,
body .mode-switch .form-check-input:focus,
body [data-bs-theme="dark"] .form-check-input:focus {
  border-color: #d4a017 !important;
  box-shadow: 0 0 0 0.25rem rgba(212, 160, 23, 0.25) !important;
}

/* Additional overrides for form-switch */
body .form-switch .form-check-input {
  background-color: #6c757d;
}

body .form-switch .form-check-input:checked {
  background-color: #d4a017 !important;
  border-color: #d4a017 !important;
}

/* ID level override - highest specificity */
#theme-mode:checked,
#theme-mode {
  background-color: #d4a017 !important;
  border-color: #d4a017 !important;
}


/* ============================================
   TOURNAMENT CARDS (Homepage Carousel)
   ============================================ */
/* Tournament Card Styling - Equal Heights */
.tournament-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px !important;
  transition: box-shadow 0.3s ease;
}

.tournament-card:hover {
  box-shadow: rgba(0, 0, 0, 0.15) 0px 6px 16px !important;
}

.tournament-card .card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Title styling */
.tournament-card .card-title {
  line-height: 1.25;
}

/* Description - flex grow to fill space */
.tournament-card .card-text {
  flex: 1;
  line-height: 1.5;
}

/* Push buttons to bottom */
.tournament-card .card-body > .mt-auto {
  margin-top: auto !important;
}

/* Tournament Logo Hover Animation */
.tournament-card .card-img-top img {
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.tournament-card:hover .card-img-top img {
  transform: scale(1.08);
}


/* ============================================
   SWIPER CAROUSEL
   ============================================ */
/* Ensure all swiper slides are equal height */
.swiper-wrapper {
  align-items: stretch;
}

.swiper-slide.h-auto {
  height: auto !important;
}

/* Swiper Pagination - Active Dot Orange */
.swiper-pagination-bullet-active {
  background-color: #d4a017 !important;
}


/* ============================================
   PAGE LOADING SPINNER
   ============================================ */
.page-loading {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  -webkit-transition: all .4s .2s ease-in-out;
  transition: all .4s .2s ease-in-out;
  background-color: #fff;
  opacity: 0;
  visibility: hidden;
  z-index: 9999;
}

[data-bs-theme="dark"] .page-loading {
  background-color: #0b0f19;
}

.page-loading.active {
  opacity: 1;
  visibility: visible;
}

.page-loading-inner {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  text-align: center;
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
  -webkit-transition: opacity .2s ease-in-out;
  transition: opacity .2s ease-in-out;
  opacity: 0;
}

.page-loading.active > .page-loading-inner {
  opacity: 1;
}

.page-loading-inner > span {
  display: block;
  font-size: 1rem;
  font-weight: normal;
  color: #9397ad;
  width: 100%;
  text-align: center;
}

[data-bs-theme="dark"] .page-loading-inner > span {
  color: #fff;
  opacity: .6;
}

.page-spinner {
  display: inline-block;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: .75rem;
  vertical-align: text-bottom;
  border: .15em solid #b4b7c9;
  border-right-color: transparent;
  border-radius: 50%;
  -webkit-animation: spinner .75s linear infinite;
  animation: spinner .75s linear infinite;
}

[data-bs-theme="dark"] .page-spinner {
  border-color: rgba(255,255,255,.4);
  border-right-color: transparent;
}

@-webkit-keyframes spinner {
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

@keyframes spinner {
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}


/* ============================================
   ACCORDION
   ============================================ */
/* Active Accordion Button - White Background */
.accordion-button:not(.collapsed) {
  color: #d4a017 !important;
  background-color: #fff !important;
  box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,.075) !important;
}

/* Accordion Arrow Container - Orange Circle */
.accordion-button::after {
  background-color: #d4a017 !important; /* Orange circle background */
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e") !important; /* White arrow */
  border-radius: 50%; /* Ensure it's a circle */
  background-position: center;
  background-size: 1rem;
}

/* Active Arrow Container - Keep Orange */
.accordion-button:not(.collapsed)::after {
  background-color: #d4a017 !important;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e") !important;
}

/* Focus state ring color */
.accordion-button:focus {
  border-color: #d4a017 !important;
  box-shadow: 0 0 0 0.25rem rgba(212, 160, 23, 0.25) !important;
}

/* ============================================
   CAROUSEL DARK MODE OVERRIDES
   ============================================ */
/* "Learn More" Button in Dark Mode - Knockout Style */
[data-bs-theme="dark"] .tournament-card .btn-outline-primary {
  color: #d4a017 !important;
  background-color: transparent !important;
  border: 1px solid #d4a017 !important;
}

[data-bs-theme="dark"] .tournament-card .btn-outline-primary:hover {
  color: #fff !important;
  background-color: #d4a017 !important;
  border-color: #d4a017 !important;
}

/* Carousel Navigation Arrows in Dark Mode - Subtle */
[data-bs-theme="dark"] #prev-tournament.btn-outline-primary,
[data-bs-theme="dark"] #next-tournament.btn-outline-primary {
  color: rgba(255, 255, 255, 0.4) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  background-color: transparent !important;
}

[data-bs-theme="dark"] #prev-tournament.btn-outline-primary:hover,
[data-bs-theme="dark"] #next-tournament.btn-outline-primary:hover {
  color: #fff !important;
  border-color: #fff !important;
  background-color: rgba(255, 255, 255, 0.1) !important;
}


/* ============================================
   COMPREHENSIVE PURPLE OVERRIDE FIX
   Silicon template uses hardcoded purple - override ALL instances
   ============================================ */

/* Override all Bootstrap/Silicon purple variables */
:root,
[data-bs-theme="light"],
[data-bs-theme="dark"] {
  --si-primary: #d4a017 !important;
  --si-primary-rgb: 212, 160, 23 !important;
  --bs-primary: #d4a017 !important;
  --bs-primary-rgb: 212, 160, 23 !important;
  --bs-link-color: #d4a017 !important;
  --bs-link-hover-color: #b8890b !important;
}

/* Override gradient classes that use hardcoded purple */
.text-gradient-primary,
.bg-gradient-primary,
[class*="text-gradient"] {
  background: linear-gradient(90deg, #d4a017 0%, #e6bd45 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
}

.bg-gradient-primary {
  -webkit-text-fill-color: unset !important;
}

/* Links */
a {
  color: #d4a017;
}

a:hover {
  color: #b8890b;
}

/* Form focus states */
.form-control:focus,
.form-select:focus,
input:focus,
textarea:focus,
select:focus {
  border-color: #d4a017 !important;
  box-shadow: 0 0 0 0.25rem rgba(212, 160, 23, 0.25) !important;
}

/* Badge primary */
.badge.bg-primary,
.badge-primary {
  background-color: #d4a017 !important;
}

/* bg-faded-primary and similar */
.bg-faded-primary,
.bg-primary.bg-opacity-10 {
  background-color: rgba(212, 160, 23, 0.1) !important;
}

/* List group active */
.list-group-item.active {
  background-color: #d4a017 !important;
  border-color: #d4a017 !important;
}

/* Pagination */
.page-link:focus {
  box-shadow: 0 0 0 0.25rem rgba(212, 160, 23, 0.25) !important;
}

.page-item.active .page-link {
  background-color: #d4a017 !important;
  border-color: #d4a017 !important;
}

/* Progress bar */
.progress-bar {
  background-color: #d4a017 !important;
}

/* Nav tabs/pills */
.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
  background-color: #d4a017 !important;
}

.nav-link:focus {
  box-shadow: 0 0 0 0.25rem rgba(212, 160, 23, 0.25);
}

/* Dropdown active */
.dropdown-item.active,
.dropdown-item:active {
  background-color: #d4a017 !important;
}

/* Alert primary */
.alert-primary {
  background-color: rgba(212, 160, 23, 0.1) !important;
  border-color: rgba(212, 160, 23, 0.2) !important;
  color: #cc5200 !important;
}

/* Table primary */
.table-primary {
  --bs-table-bg: rgba(212, 160, 23, 0.1) !important;
  --bs-table-border-color: rgba(212, 160, 23, 0.2) !important;
}

/* Spinner */
.spinner-border.text-primary,
.spinner-grow.text-primary {
  color: #d4a017 !important;
}

/* Card border */
.card.border-primary {
  border-color: #d4a017 !important;
}

/* Breadcrumb active */
.breadcrumb-item.active {
  color: #d4a017 !important;
}

/* Selection highlight */
::selection {
  background-color: rgba(212, 160, 23, 0.3);
}

/* Override any remaining link styling in cards */
.card a:not(.btn),
.card-body a:not(.btn) {
  color: #d4a017;
}

.card a:not(.btn):hover,
.card-body a:not(.btn):hover {
  color: #b8890b;
}

/* Ensure hover-lift cards don't have purple focus */
.hover-lift:focus,
.card:focus {
  box-shadow: 0 0 0 0.25rem rgba(212, 160, 23, 0.25) !important;
}

/* ============================================
   MODAL STYLES
   ============================================ */
.modal-header, .modal-footer {
  padding-right: 25px;
  padding-left: 25px;
}


/* ============================================
   TOURNAMENT VIEW TOGGLE
   ============================================ */
.view-toggle-wrapper {
  margin-bottom: 1.5rem;
}

.view-toggle {
  background: var(--si-secondary-bg);
  border-radius: 0.5rem;
  padding: 0.25rem;
}

.view-toggle-btn {
  border: none !important;
  background: transparent !important;
  color: var(--si-body-color) !important;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem !important;
  transition: all 0.2s ease;
}

.view-toggle-btn:hover {
  background: rgba(212, 160, 23, 0.1) !important;
  color: #d4a017 !important;
}

.view-toggle-btn.active {
  background: #d4a017 !important;
  color: #fff !important;
}

.view-toggle-btn i {
  font-size: 1.25rem;
}


/* ============================================
   TOURNAMENT LIST VIEW
   ============================================ */
.tournament-list-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.tournament-list-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--si-secondary-bg);
  border-radius: 0.75rem;
  text-decoration: none;
  color: inherit;
  transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border: 1px solid transparent;
}

.tournament-list-row:hover {
  background: var(--si-body-bg);
  border-color: rgba(212, 160, 23, 0.3);
  box-shadow: rgba(212, 160, 23, 0.1) 0px 4px 12px;
  transform: translateY(-2px);
  color: inherit;
}

.tournament-list-logo {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  background: #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.tournament-list-logo img {
  max-width: 48px;
  max-height: 48px;
  object-fit: contain;
}

.tournament-list-info {
  flex: 1;
  min-width: 0;
}

.tournament-list-name {
  font-family: 'American Captain', 'Inter', sans-serif;
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tournament-list-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--si-body-color);
  opacity: 0.7;
}

.tournament-list-meta .meta-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.tournament-list-meta .meta-item i {
  color: #d4a017;
  font-size: 1rem;
}

.tournament-list-meta .meta-badge {
  background: rgba(212, 160, 23, 0.1);
  padding: 0.15rem 0.5rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  opacity: 1;
}

.tournament-list-action {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

.tournament-list-action .btn {
  white-space: nowrap;
  font-weight: 600;
}

/* List View Responsive */
@media (max-width: 767.98px) {
  .tournament-list-row {
    flex-wrap: wrap;
    padding: 1rem;
  }
  
  .tournament-list-logo {
    width: 52px;
    height: 52px;
  }
  
  .tournament-list-logo img {
    max-width: 40px;
    max-height: 40px;
  }
  
  .tournament-list-info {
    flex: 1 1 calc(100% - 68px);
  }
  
  .tournament-list-name {
    font-size: 1rem;
  }
  
  .tournament-list-meta {
    font-size: 0.8rem;
    gap: 0.5rem;
  }
  
  .tournament-list-action {
    flex-direction: column;
    width: 100%;
    margin-top: 0.75rem;
  }
  
  .tournament-list-action .btn {
    width: 100%;
    justify-content: center;
  }
}


/* ============================================
   VIEW TRANSITION ANIMATIONS
   ============================================ */
.tournaments-view {
  animation: viewFadeIn 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes viewFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ============================================
   HERO SECTION & VIDEO 
   ============================================ */
/* Video starts at #t=2 to skip intro animation in source file */

/* Hero Section - Full viewport height on desktop, flexible on mobile */
.hero-section {
  min-height: 100vh;
  min-height: 100dvh; /* Dynamic viewport height for mobile browsers */
  height: 100vh;
  height: 100dvh;
}

/* On mobile, allow more flexibility */
@media (max-width: 767px) {
  .hero-section {
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
  }
}

/* On very small phones with short viewports, expand if needed */
@media (max-height: 600px) and (max-width: 767px) {
  .hero-section {
    min-height: auto;
    height: auto;
    padding-top: 80px;
    padding-bottom: 120px;
  }
}

/* Hero Tagline - The main H1 headline */
.hero-tagline {
  font-family: 'American Captain', 'Inter', sans-serif !important;
  font-size: clamp(1.75rem, 4vw + 1rem, 4.5rem);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.15;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

/* Mobile: Slightly smaller, ensure readability */
@media (max-width: 575px) {
  .hero-tagline {
    font-size: 3.30rem;
    letter-spacing: 0.02em;
    line-height: 1.25;
    padding: 0 0.5rem;
  }
}

/* Small phones */
@media (min-width: 576px) and (max-width: 767px) {
  .hero-tagline {
    font-size: 2rem;
  }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 991px) {
  .hero-tagline {
    font-size: 3.75rem;
  }
}

/* Desktop */
@media (min-width: 992px) {
  .hero-tagline {
    font-size: 4.5rem;
  }
}

/* Large Desktop */
@media (min-width: 1200px) {
  .hero-tagline {
    font-size: 4rem;
  }
}

/* Hero Content - Safe zone padding to clear navigation */
.hero-content-wrapper {
  /* Safe zone: minimum 140px from top to clear nav */
  padding-top: max(140px, 18vh) !important;
  padding-bottom: 180px !important;
}

/* Very small phones (iPhone SE, etc) */
@media (max-width: 375px) {
  .hero-content-wrapper {
    padding-top: 120px !important;
    padding-bottom: 160px !important;
  }
}

/* Small phones */
@media (min-width: 376px) and (max-width: 575px) {
  .hero-content-wrapper {
    padding-top: 130px !important;
    padding-bottom: 170px !important;
  }
}

/* Tablet and up - more breathing room */
@media (min-width: 768px) {
  .hero-content-wrapper {
    padding-top: max(120px, 15vh) !important;
    padding-bottom: 250px !important;
  }
}

/* Large screens */
@media (min-width: 992px) {
  .hero-content-wrapper {
    padding-bottom: 300px !important;
  }
}

/* Hero CTA buttons - ensure stacking and full width on mobile */
@media (max-width: 575px) {
  .hero-content-wrapper .d-flex {
    flex-direction: column !important;
    width: 100%;
    padding: 0 1rem;
  }
  
  .hero-content-wrapper .btn-lg {
    padding: 0.75rem 1.5rem !important;
    font-size: 0.95rem !important;
    width: 100%;
  }
}

/* Reduced motion support - pause videos for users who prefer */
@media (prefers-reduced-motion: reduce) {
  video {
    animation: none !important;
  }
  
  .hero-video video {
    /* Show first frame as poster instead of playing */
  }
  
  /* Disable all CSS animations */
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


/* ============================================
   PARTNERS CAROUSEL
   ============================================ */
.partners-carousel {
  padding: 20px 0;
}

.partner-logo-link {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100px;
  padding: 15px 20px;
  background: var(--si-secondary-bg);
  border-radius: 12px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.partner-logo-link:hover {
  background: var(--si-secondary-bg);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

[data-bs-theme="dark"] .partner-logo-link:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.partner-logo {
  max-height: 60px;
  max-width: 140px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all 0.3s ease;
}

.partner-logo-link:hover .partner-logo {
  filter: grayscale(0%);
  opacity: 1;
}

/* On mobile, show logos in color by default */
@media (max-width: 767px) {
  .partner-logo {
    filter: grayscale(0%);
    opacity: 0.9;
  }
}


/* ============================================
   FAQ / ACCORDION STYLING
   ============================================ */
/* Make FAQ answer text larger and more readable */
.accordion-body {
  font-size: 15px;
  line-height: 1.75;
}

/* Slightly larger on desktop */
@media (min-width: 768px) {
  .accordion-body {
    font-size: 16px;
  }
}
