/* =============================================================================
   AavYa Sports Foundation - Main Stylesheet
   Theme: Golden (#D4AF37) / Red (#CC0000) / White (#FFFFFF) — NO GRADIENTS
   ============================================================================= */

/* CSS Custom Properties (overridden dynamically from DB settings) */
:root {
  --color-gold:       #D4AF37;
  --color-gold-dark:  #C49A2A;
  --color-gold-light: #F0D874;
  --color-red:        #CC0000;
  --color-red-dark:   #AA0000;
  --color-white:      #FFFFFF;
  --color-dark:       #111111;
  --color-dark-2:     #1A1A1A;
  --color-gray:       #6c757d;
  --color-light-gray: #F5F5F5;
  --color-border:     #E0E0E0;
  --heading-font:     'Montserrat', sans-serif;
  --body-font:        'Open Sans', sans-serif;
  --header-bg:        #1A1A1A;
  --footer-bg:        #111111;
  --footer-text:      #CCCCCC;
  --transition:       .25s ease;
  --shadow-sm:        0 2px 8px rgba(0,0,0,.08);
  --shadow-md:        0 4px 16px rgba(0,0,0,.12);
  --shadow-lg:        0 8px 32px rgba(0,0,0,.16);
  --radius:           6px;
  --radius-lg:        12px;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--body-font);
  font-size: 1rem;
  line-height: 1.7;
  color: #333;
  background: #fff;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  color: var(--color-dark);
  font-weight: 700;
  line-height: 1.3;
}

a {
  color: var(--color-gold);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--color-red); }

img { max-width: 100%; height: auto; }

/* Utility */
.text-gold  { color: var(--color-gold) !important; }
.text-red   { color: var(--color-red)  !important; }
.bg-gold    { background-color: var(--color-gold) !important; }
.bg-red     { background-color: var(--color-red)  !important; }
.bg-dark-custom { background-color: var(--color-dark) !important; }
.bg-gold-light { background-color: rgba(212,175,55,.12) !important; }

.btn-gold {
  background-color: var(--color-gold);
  border-color: var(--color-gold);
  color: var(--color-dark);
  font-family: var(--heading-font);
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
}
.btn-gold:hover {
  background-color: var(--color-gold-dark);
  border-color: var(--color-gold-dark);
  color: var(--color-dark);
}

.btn-red {
  background-color: var(--color-red);
  border-color: var(--color-red);
  color: #fff;
  font-family: var(--heading-font);
  font-weight: 600;
}
.btn-red:hover {
  background-color: var(--color-red-dark);
  border-color: var(--color-red-dark);
  color: #fff;
}

.btn-outline-gold {
  border-color: var(--color-gold);
  color: var(--color-gold);
}
.btn-outline-gold:hover {
  background-color: var(--color-gold);
  border-color: var(--color-gold);
  color: var(--color-dark);
}

.section-title {
  text-align: center;
  margin-bottom: 2.5rem;
}
.section-title h2 {
  font-size: 2rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.section-title .title-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: .75rem 0 1rem;
}
.section-title .title-divider::before,
.section-title .title-divider::after {
  content: '';
  height: 2px;
  width: 60px;
  background: var(--color-gold);
}
.section-title .title-divider .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--color-red);
}
.section-title p {
  color: var(--color-gray);
  max-width: 600px;
  margin: 0 auto;
}

/* ── NOTIFICATION TICKER ───────────────────────────────────────────────────── */
.notification-ticker {
  background: var(--color-dark-2);
  color: #eee;
  font-size: .82rem;
  padding: 6px 0;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  z-index: 1050;
}
.ticker-label {
  background: var(--color-red);
  color: #fff;
  font-family: var(--heading-font);
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 12px;
  letter-spacing: 1px;
  white-space: nowrap;
}
.ticker-track {
  display: inline-flex;
  gap: 60px;
  animation: tickerScroll 30s linear infinite;
}
.ticker-track:hover { animation-play-state: paused; }
.ticker-item a { color: #eee; }
.ticker-item a:hover { color: var(--color-gold); }
@keyframes tickerScroll { from { transform: translateX(100vw); } to { transform: translateX(-100%); } }

/* ── HEADER TOP ────────────────────────────────────────────────────────────── */
.header-top {
  background: var(--color-dark);
  color: #ccc;
  font-size: .8rem;
  padding: 6px 0;
}
.header-top a { color: #ccc; }
.header-top a:hover { color: var(--color-gold); }
.header-top-contact { display: flex; gap: 20px; align-items: center; }
.header-top-contact span { display: flex; align-items: center; gap: 6px; }
.header-top-social { display: flex; gap: 10px; align-items: center; }
.header-top-social a {
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  font-size: .78rem;
  color: #ccc;
  transition: background var(--transition), color var(--transition);
}
.header-top-social a:hover {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: var(--color-dark);
}

/* ── MAIN HEADER ───────────────────────────────────────────────────────────── */
.header-main {
  background: var(--header-bg);
  position: sticky;
  top: 0;
  z-index: 1040;
  box-shadow: var(--shadow-md);
  transition: background var(--transition);
}
.header-main.scrolled {
  background: var(--color-dark);
  box-shadow: var(--shadow-lg);
}

.navbar-brand .logo-img { height: 50px; width: auto; }
.navbar-brand .logo-text {
  font-family: var(--heading-font);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
}
.navbar-brand .logo-text span { color: var(--color-gold); }
.navbar-brand .logo-tagline {
  font-size: .65rem;
  color: rgba(255,255,255,.6);
  letter-spacing: 1px;
}

.main-nav .nav-link {
  color: rgba(255,255,255,.85) !important;
  font-family: var(--heading-font);
  font-size: .82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 1.2rem .9rem !important;
  transition: color var(--transition);
  position: relative;
}
.main-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  right: 50%;
  height: 2px;
  background: var(--color-gold);
  transition: left var(--transition), right var(--transition);
}
.main-nav .nav-link:hover,
.main-nav .nav-link.active {
  color: var(--color-gold) !important;
}
.main-nav .nav-link:hover::after,
.main-nav .nav-link.active::after {
  left: .9rem;
  right: .9rem;
}

.nav-dropdown-menu {
  background: var(--color-dark-2);
  border: 1px solid rgba(212,175,55,.2);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 220px;
  padding: .5rem 0;
}
.nav-dropdown-menu .dropdown-item {
  color: rgba(255,255,255,.8);
  font-size: .82rem;
  font-family: var(--heading-font);
  padding: .55rem 1.2rem;
  transition: color var(--transition), background var(--transition);
}
.nav-dropdown-menu .dropdown-item:hover {
  background: rgba(212,175,55,.1);
  color: var(--color-gold);
}

.header-cta { display: flex; gap: 10px; align-items: center; }

/* Mobile nav */
.navbar-toggler {
  border-color: rgba(255,255,255,.3);
  color: #fff;
}
.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%28255%2C255%2C255%2C0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ── HERO CAROUSEL ─────────────────────────────────────────────────────────── */
.hero-carousel { position: relative; }
.hero-carousel .swiper-slide {
  min-height: 580px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero-slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background: rgba(17,17,17,.55);
}
.hero-slide-content {
  position: relative;
  z-index: 2;
  color: #fff;
  padding: 60px 0;
}
.hero-slide-content .hero-tagline {
  font-size: .8rem;
  font-family: var(--heading-font);
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--color-gold);
  display: block;
  margin-bottom: .5rem;
}
.hero-slide-content h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}
.hero-slide-content h1 span { color: var(--color-gold); }
.hero-slide-content p {
  font-size: 1.05rem;
  color: rgba(255,255,255,.85);
  max-width: 520px;
  margin-bottom: 1.5rem;
}
.hero-carousel .swiper-pagination-bullet { background: rgba(255,255,255,.5); }
.hero-carousel .swiper-pagination-bullet-active { background: var(--color-gold); }
.hero-carousel .swiper-button-next,
.hero-carousel .swiper-button-prev {
  color: var(--color-gold);
  background: rgba(0,0,0,.4);
  width: 44px; height: 44px;
  border-radius: 50%;
}
.hero-carousel .swiper-button-next::after,
.hero-carousel .swiper-button-prev::after { font-size: 1rem; }

/* Registration banner */
.registration-banner {
  padding: 12px 0;
  text-align: center;
  font-family: var(--heading-font);
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .5px;
}
.registration-banner.open   { background: var(--color-gold); color: var(--color-dark); }
.registration-banner.closed { background: var(--color-red);  color: #fff; }

/* ── STATS ─────────────────────────────────────────────────────────────────── */
.stats-section { background: var(--color-dark); padding: 60px 0; }
.stat-item { text-align: center; padding: 20px; }
.stat-icon-wrap {
  width: 60px; height: 60px;
  background: rgba(212,175,55,.15);
  border: 2px solid var(--color-gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.4rem;
  color: var(--color-gold);
}
.stat-number {
  font-family: var(--heading-font);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-gold);
  line-height: 1;
}
.stat-suffix { color: var(--color-gold); }
.stat-label {
  font-size: .85rem;
  color: rgba(255,255,255,.7);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ── SECTION PADDING ───────────────────────────────────────────────────────── */
.section-pad { padding: 80px 0; }
.section-pad-sm { padding: 50px 0; }
.bg-section { background: var(--color-light-gray); }

/* ── CARDS ─────────────────────────────────────────────────────────────────── */
.sport-card {
  border: none;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  background: var(--color-white);
  height: 100%;
}
.sport-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}
.sport-card-img {
  height: 160px;
  object-fit: cover;
  width: 100%;
}
.sport-card-icon {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-dark);
  font-size: 3.5rem;
  color: var(--color-gold);
}
.sport-card-body { padding: 1.2rem; }
.sport-card-title {
  font-family: var(--heading-font);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-dark);
  text-transform: uppercase;
}

.event-card {
  border: none;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  height: 100%;
}
.event-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.event-card-img {
  height: 200px;
  object-fit: cover;
  width: 100%;
  position: relative;
}
.event-card-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--color-gold);
  color: var(--color-dark);
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
}
.event-card-date {
  position: absolute;
  bottom: 0;
  left: 0;
  background: var(--color-red);
  color: #fff;
  padding: 8px 14px;
  font-family: var(--heading-font);
  font-size: .85rem;
  font-weight: 700;
}
.event-card-body {
  padding: 1.2rem;
  background: #fff;
}
.event-card-title {
  font-family: var(--heading-font);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: .5rem;
  line-height: 1.4;
}
.event-card-meta {
  font-size: .82rem;
  color: var(--color-gray);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.event-card-fee {
  font-family: var(--heading-font);
  font-size: .9rem;
  color: var(--color-gold);
  font-weight: 700;
  margin-top: .75rem;
}

/* Portal cards */
.portal-card {
  border-radius: var(--radius-lg);
  border: 2px solid transparent;
  padding: 2rem;
  text-align: center;
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  height: 100%;
}
.portal-card:hover {
  border-color: var(--color-gold);
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}
.portal-icon {
  width: 80px; height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.2rem;
  font-size: 2rem;
}
.portal-icon.gold { background: rgba(212,175,55,.12); color: var(--color-gold); border: 2px solid var(--color-gold); }
.portal-icon.red  { background: rgba(204,0,0,.08);  color: var(--color-red);  border: 2px solid var(--color-red);  }

/* ── HOW IT WORKS ──────────────────────────────────────────────────────────── */
.steps-row { position: relative; }
.step-item { text-align: center; position: relative; }
.step-num {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--color-gold);
  color: var(--color-dark);
  font-family: var(--heading-font);
  font-size: 1.2rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}
.step-title {
  font-family: var(--heading-font);
  font-weight: 700;
  font-size: .95rem;
  text-transform: uppercase;
  margin-bottom: .4rem;
}

/* ── TESTIMONIALS ──────────────────────────────────────────────────────────── */
.testimonial-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  position: relative;
}
.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: 10px; left: 20px;
  font-size: 4rem;
  color: var(--color-gold);
  font-family: Georgia, serif;
  line-height: 1;
  opacity: .3;
}
.testimonial-avatar {
  width: 50px; height: 50px;
  border-radius: 50%;
  object-fit: cover;
}
.testimonial-avatar-placeholder {
  width: 50px; height: 50px;
  border-radius: 50%;
  background: var(--color-gold);
  color: var(--color-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--heading-font);
  font-weight: 700;
}
.star-gold { color: var(--color-gold); }

/* ── CTA SECTION ───────────────────────────────────────────────────────────── */
.cta-section {
  background: var(--color-dark);
  padding: 80px 0;
  text-align: center;
}
.cta-section h2 {
  color: #fff;
  font-size: 2.2rem;
  text-transform: uppercase;
}
.cta-section h2 span { color: var(--color-gold); }
.cta-section p { color: rgba(255,255,255,.75); }

/* ── FOOTER ────────────────────────────────────────────────────────────────── */
.site-footer { background: var(--footer-bg); color: var(--footer-text); }
.footer-main { padding: 60px 0 30px; }
.footer-brand .logo-text {
  font-family: var(--heading-font);
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
}
.footer-brand .logo-text span { color: var(--color-gold); }
.footer-desc { color: rgba(255,255,255,.6); font-size: .9rem; line-height: 1.8; }
.footer-social { display: flex; gap: 10px; margin-top: 1rem; }
.footer-social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(212,175,55,.3);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.7);
  font-size: .85rem;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.footer-social a:hover {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: var(--color-dark);
}

.footer-title {
  font-family: var(--heading-font);
  font-size: .9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-gold);
  margin-bottom: 1.2rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid rgba(212,175,55,.3);
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .5rem; }
.footer-links a {
  color: rgba(255,255,255,.65);
  font-size: .88rem;
  transition: color var(--transition), padding-left var(--transition);
}
.footer-links a:hover { color: var(--color-gold); padding-left: 5px; }
.footer-contact-item {
  display: flex; gap: 10px;
  margin-bottom: .75rem;
  font-size: .88rem;
  color: rgba(255,255,255,.65);
}
.footer-contact-item i { color: var(--color-gold); margin-top: 3px; min-width: 14px; }
.footer-contact-item a { color: rgba(255,255,255,.65); }
.footer-contact-item a:hover { color: var(--color-gold); }

.footer-bottom {
  background: rgba(0,0,0,.3);
  padding: 14px 0;
  font-size: .82rem;
  color: rgba(255,255,255,.4);
}
.footer-bottom a { color: rgba(255,255,255,.5); }
.footer-bottom a:hover { color: var(--color-gold); }

/* ── BACK TO TOP ───────────────────────────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 80px; right: 20px;
  width: 42px; height: 42px;
  background: var(--color-gold);
  color: var(--color-dark);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  z-index: 1030;
  opacity: 0; visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition), transform var(--transition);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  border: none;
}
.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover { transform: translateY(-3px); background: var(--color-gold-dark); }

/* ── WHATSAPP FLOAT ────────────────────────────────────────────────────────── */
.whatsapp-float {
  position: fixed;
  bottom: 20px; right: 20px;
  width: 52px; height: 52px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  z-index: 1030;
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition);
}
.whatsapp-float:hover { transform: scale(1.1); color: #fff; }

/* ── BREADCRUMB ────────────────────────────────────────────────────────────── */
.page-banner {
  background: var(--color-dark);
  padding: 50px 0;
  color: #fff;
}
.page-banner h1 {
  color: #fff;
  font-size: 1.8rem;
  text-transform: uppercase;
  margin-bottom: .5rem;
}
.breadcrumb { background: none; padding: 0; margin: 0; }
.breadcrumb-item { color: rgba(255,255,255,.6); font-size: .85rem; }
.breadcrumb-item a { color: var(--color-gold); }
.breadcrumb-item.active { color: rgba(255,255,255,.5); }
.breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.3); }

/* ── CONTACT FORM ──────────────────────────────────────────────────────────── */
.contact-form-wrap {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 2.5rem;
}
.contact-info-card {
  background: var(--color-dark);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  color: #fff;
  height: 100%;
}
.contact-info-card h4 { color: var(--color-gold); }
.contact-info-item { display: flex; gap: 15px; margin-bottom: 1.5rem; }
.contact-info-icon {
  width: 44px; height: 44px;
  background: rgba(212,175,55,.15);
  border: 1px solid rgba(212,175,55,.3);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--color-gold);
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* ── FORMS ─────────────────────────────────────────────────────────────────── */
.form-control:focus,
.form-select:focus {
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(212,175,55,.15);
}

/* ── AUTH STYLES are in auth views (standalone) ────────────────────────────── */

/* ── PLAYER / ORGANIZER / SPONSOR PORTAL SIDEBAR ─────────────────────────── */
.portal-sidebar {
  background: var(--color-dark-2);
  min-height: 100vh;
  padding: 0;
}
.portal-nav-link {
  display: flex; align-items: center; gap: 12px;
  padding: .8rem 1.5rem;
  color: rgba(255,255,255,.75);
  font-family: var(--heading-font);
  font-size: .85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .4px;
  border-left: 3px solid transparent;
  transition: color var(--transition), background var(--transition), border-color var(--transition);
  text-decoration: none;
}
.portal-nav-link:hover,
.portal-nav-link.active {
  color: var(--color-gold);
  background: rgba(212,175,55,.08);
  border-left-color: var(--color-gold);
}
.portal-nav-link i { width: 18px; text-align: center; }

/* ── RESPONSIVE ────────────────────────────────────────────────────────────── */
@media (max-width: 991px) {
  .header-top { display: none; }
  .hero-carousel .swiper-slide { min-height: 380px; }
  .hero-slide-content h1 { font-size: 1.8rem; }
  .stats-section .stat-number { font-size: 1.8rem; }
  .section-pad { padding: 50px 0; }
  .footer-main { padding: 40px 0 20px; }
}

@media (max-width: 575px) {
  .hero-carousel .swiper-slide { min-height: 300px; }
  .hero-slide-content h1 { font-size: 1.4rem; }
  .section-title h2 { font-size: 1.5rem; }
  .cta-section h2 { font-size: 1.5rem; }
}
