


/* YouthBaseballTryouts.com - Global Styles */

/* Accessibility - Color Contrast Improvements */
/* Override Bootstrap's text utilities for better contrast */
.text-secondary {
  color: #5a6268 !important; /* Darker than Bootstrap's default #6c757d */
}

.text-muted {
  color: #5a6268 !important; /* Darker than Bootstrap's default #6c757d */
}

.text-warning {
  color: #b35900 !important; /* Much darker than Bootstrap's default #ffc107 for better contrast on white */
}

/* Ensure small text has sufficient contrast */
.small.text-secondary,
.small.text-muted,
p.text-secondary.small,
p.text-muted.small {
  color: #495057 !important; /* Even darker for small text */
}

/* Breadcrumb links - ensure sufficient contrast */
.breadcrumb-item a,
a.text-decoration-none {
  color: #495057 !important; /* Dark enough for WCAG AA */
}

.breadcrumb-item a:hover,
a.text-decoration-none:hover {
  color: #0d6efd !important;
}

/* Breadcrumbs on blue/dark backgrounds */
.bg-primary .breadcrumb-item a,
.bg-primary.bg-gradient .breadcrumb-item a {
  color: rgba(255, 255, 255, 0.9) !important; /* Light on blue background */
}

.bg-primary .breadcrumb-item a:hover,
.bg-primary.bg-gradient .breadcrumb-item a:hover {
  color: #ffffff !important;
  text-decoration: underline;
}

.bg-primary .breadcrumb-item.active,
.bg-primary.bg-gradient .breadcrumb-item.active {
  color: rgba(255, 255, 255, 0.7) !important;
}

/* Body text on white background */
body {
  color: #212529; /* Ensure body text has strong contrast */
}

/* Headings with text-warning class */
h1.text-warning,
h2.text-warning,
h3.text-warning,
h4.text-warning,
h5.text-warning,
h6.text-warning {
  color: #b35900 !important; /* Dark orange for headings */
}

/* Fix semi-transparent badge contrast issues */
.bg-primary.bg-opacity-10 {
  background-color: rgba(13, 110, 253, 0.15) !important; /* Slightly more opaque */
}

.text-primary {
  color: #0a58ca !important; /* Darker blue for better contrast */
}

.bg-success.bg-opacity-10 {
  background-color: rgba(25, 135, 84, 0.15) !important; /* Slightly more opaque */
}

.text-success {
  color: #0f5132 !important; /* Darker green for better contrast */
}

/* Outline button contrast */
.btn-outline-primary {
  color: #0a58ca !important; /* Darker blue */
  border-color: #0a58ca !important;
}

.btn-outline-primary:hover {
  background-color: #0a58ca !important;
  border-color: #0a58ca !important;
  color: #fff !important;
}

.btn-outline-secondary {
  color: #495057 !important; /* Darker gray for better contrast */
  border-color: #495057 !important;
}

.btn-outline-secondary:hover {
  background-color: #495057 !important;
  border-color: #495057 !important;
  color: #fff !important;
}

/* Base */
body {
  background: #f7f8fb;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Navbar */
.navbar {
  margin-bottom: 1.5rem;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #0d6efd, #0b5ed7);
  color: #fff;
  padding: 5rem 1rem;
  text-align: center;
}
.hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
}

/* Quick Links */
.quick-links a {
  text-decoration: none;
  display: block;
  background: #fff;
  border-radius: 8px;
  padding: 1.25rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  color: #000;
  transition: all .2s;
}
.quick-links a:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Tryout Cards */
.tryout-card:hover {
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

/* Form & Buttons */
.btn {
  border-radius: .4rem;
}
form label {
  font-weight: 500;
}

/* Footer */
footer {
  font-size: 0.9rem;
}
/* Hero Card */
.hero-card {
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.age-badge-hero {
  background-color: #0d6efd;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  padding: .5em .75em;
  border-radius: 8px;
  vertical-align: middle;
  margin-right: 0.5rem;
}

/* Details Card */
.details-card {
  margin-bottom: 2rem;
}
.details-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem 0;
}
.details-item:not(:last-child) {
  border-bottom: 1px solid #e9ecef;
}
.details-item i {
  font-size: 1.75rem;
  color: #0d6efd;
  margin-top: .25rem;
}

/* Map Card */
.map-card {
  margin-bottom: 1.5rem;
}
/* Breadcrumbs */
.breadcrumb-light {
  --bs-breadcrumb-divider: '›';
  font-size: 0.9rem;
}
.breadcrumb-light .breadcrumb-item a {
  text-decoration: none;
  color: #6c757d;
}
.breadcrumb-light .breadcrumb-item a:hover {
  color: #0d6efd;
}
/* Footer */
.site-footer {
  background-color: #f8f9fa;
  border-top: 2px solid #e9ecef;
  padding-top: 3.5rem !important;
  padding-bottom: 2.5rem !important;
}

.site-footer h5,
.site-footer h6 {
  font-weight: 700;
  color: #212529;
}

.site-footer a {
  color: #212529; /* Darker for better contrast */
  text-decoration: none;
  transition: all .2s ease;
  position: relative;
  display: inline-block;
}

.site-footer a:hover {
  color: #0d6efd;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer .list-unstyled li {
  margin-bottom: 0.5rem;
}

.site-footer .text-muted {
  color: #495057 !important; /* Darker for better contrast */
}

.site-footer hr {
  border-top: 1px solid #e5e7eb;
  margin-top: 2rem;
  margin-bottom: 1.5rem;
}

/* Desktop vertical dividers */
@media (min-width: 992px) {
  .site-footer .col-lg-4:not(:last-child) {
    border-right: 1px solid #e9ecef;
    padding-right: 2.5rem;
  }
  
  .site-footer .col-lg-4:not(:first-child) {
    padding-left: 2.5rem;
  }
}
@media (max-width: 767.98px) {
  .hero-card {
    padding: 1rem;
  }
}
.footer-cta {
  background-color: #0d6efd;
  color: #fff;
}
.ybt-list-card {
  border: 1px solid #e9ecef;
  border-radius: 12px;
  transition: all 0.15s ease;
  background: #fff;
}
.ybt-list-card:hover {
  border-color: rgba(13, 110, 253, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}
.ybt-age {
  background: #0d6efd;
  color: #fff;
  font-weight: 700;
  letter-spacing: .02em;
  padding: .3rem .55rem;
  border-radius: 999px;
  font-size: .85rem;
  line-height: 1;
}
.ybt-tryout-list .card-body {
  padding: 1rem 1.25rem;
}

/* Filter Card */
.ybt-filter-card {
  border: 1px solid #e9ecef;
  border-radius: 12px;
  background: #fff;
}

/* Form Labels */
.form-label.small {
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}

/* Hero Card for Tryouts Page */
.ybt-hero-card {
  border: 1px solid #e9ecef;
  border-radius: 12px;
  background: #f8f9fb;
}

/* Empty State */
.ybt-empty-state {
  border: 1px solid #e9ecef;
  border-radius: 12px;
  background: #fff;
}

/* ========================================
   TRYOUT DETAIL PAGE STYLES
   ======================================== */

/* Breadcrumbs */
.breadcrumb {
  --bs-breadcrumb-divider: '›';
  font-size: 0.875rem;
}

.breadcrumb-item a {
  color: #6c757d;
  transition: color 0.2s ease;
}

.breadcrumb-item a:hover {
  color: #0d6efd;
}

.breadcrumb-item.active {
  color: #495057;
}

/* Hero Card */
.ybt-hero-card {
  border: 1px solid #e9ecef;
  border-radius: 12px;
  background: #fff;
}

/* Detail Card */
.ybt-card {
  border: 1px solid #e9ecef;
  border-radius: 12px;
  background: #fff;
}

/* Detail Lines (icon + label + value pattern) */
.ybt-line {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.ybt-ico {
  font-size: 1.25rem;
  color: #6c757d;
  margin-top: 0.1rem;
  flex-shrink: 0;
}

.ybt-label {
  text-transform: uppercase;
  font-size: 0.75rem;
  color: #6c757d;
  letter-spacing: 0.04em;
  margin-bottom: 0.25rem;
  font-weight: 600;
}

.ybt-value {
  font-weight: 600;
  line-height: 1.5;
  color: #212529;
}

.ybt-hr {
  border-color: #eceff3;
  opacity: 1;
}

/* Mini Cards (for "Other Tryouts") */
.ybt-mini-card {
  border: 1px solid #e9ecef;
  border-radius: 12px;
  background: #fff;
  transition: all 0.2s ease;
}

.ybt-mini-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-color: rgba(13, 110, 253, 0.2);
}

/* Avatar Placeholder */
.ybt-avatar-56 {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e9eef6 0%, #f0f4fa 100%);
  border: 2px solid #e4e8ee;
  flex-shrink: 0;
}

/* Print Styles */
@media print {
  .navbar,
  .breadcrumb,
  .site-footer,
  button,
  .btn {
    display: none !important;
  }
  
  .ybt-hero-card,
  .ybt-card {
    box-shadow: none !important;
    border: 1px solid #dee2e6 !important;
  }
  
  .container {
    max-width: 100% !important;
  }
}

@media (max-width: 576px) {
  .ybt-list-card .card-body {
    flex-direction: column;
    align-items: flex-start !important;
    gap: .5rem;
  }
  .ybt-list-card .text-end {
    align-self: flex-start;
    text-align: left !important;
  }
}

/* ========================================
   HOMEPAGE REDESIGN STYLES
   ======================================== */

/* Hero Section with Gradient */
.hero-home {
  background: linear-gradient(135deg, #0d6efd 0%, #0050c8 100%);
  position: relative;
  overflow: hidden;
}

.hero-home::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

/* Subtle baseball texture watermark */
.hero-home::after {
  content: '⚾';
  position: absolute;
  font-size: 400px;
  opacity: 0.06;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  user-select: none;
}

.hero-home .container {
  position: relative;
  z-index: 1;
}

/* Enhanced text contrast with glow */
.hero-home .hero-title {
  text-shadow: 
    0 2px 12px rgba(0, 0, 0, 0.25),
    0 0 40px rgba(255, 255, 255, 0.15);
  color: #ffffff;
  letter-spacing: -0.02em;
}

.hero-home .hero-subtitle {
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.2);
  color: rgba(255, 255, 255, 0.95);
}

.hero-home .hero-stats {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

.hero-content-wrapper {
  position: relative;
  z-index: 2;
}

.hero-home .hero-cta-primary {
  background: #fff;
  color: #0d6efd;
  border: none;
  font-weight: 600;
  padding: 14px 2.5rem !important;
  transition: all 0.2s ease;
}

.hero-home .hero-cta-primary:hover {
  background: #f8f9fa;
  color: #0050c8;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.hero-home .hero-cta-secondary {
  border: 2px solid rgba(255, 255, 255, 0.9);
  color: #fff;
  font-weight: 600;
  padding: 14px 2.5rem !important;
  transition: all 0.2s ease;
}

.hero-home .hero-cta-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #fff;
  color: #fff;
  transform: translateY(-2px);
}

/* State Directory Section */
.state-section {
  border-top: 1px solid #e9ecef;
}

.state-directory-wrapper {
  transition: all 0.3s ease;
}

/* Blue accent bar */
.state-accent-bar {
  width: 4px;
  height: 32px;
  background: linear-gradient(180deg, #0d6efd 0%, #0050c8 100%);
  border-radius: 2px;
  margin-right: 12px;
  display: none;
}

@media (min-width: 768px) {
  .state-accent-bar {
    display: block;
  }
  
  .state-directory-wrapper .mb-4 {
    text-align: left;
  }
}

.state-link {
  transition: all 0.2s ease;
  font-size: 0.95rem;
  color: #0d6efd;
  line-height: 1.6;
  position: relative;
}

.state-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: #0d6efd;
  transition: width 0.2s ease;
}

.state-link:hover {
  background: rgba(13, 110, 253, 0.06);
  color: #0b5ed7 !important;
  transform: translateY(-1px);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.state-link:hover::after {
  width: 60%;
}

/* Featured Tryout Cards */
.ybt-featured-card {
  transition: all 0.25s ease;
  border-radius: 12px;
  border-color: #e9ecef !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
}

.ybt-featured-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(13, 110, 253, 0.18) !important;
  border-color: rgba(13, 110, 253, 0.2) !important;
}

.ybt-age-badge {
  background: linear-gradient(135deg, #0d6efd 0%, #0050c8 100%);
  color: #fff;
  font-weight: 700;
  border-radius: 8px;
  white-space: nowrap;
  display: inline-block;
}

.ybt-featured-card .card-body {
  transition: all 0.2s ease;
}

.ybt-featured-card .card-title {
  color: #212529;
  font-size: 1.15rem;
}

.ybt-featured-card hr {
  margin: 1rem 0;
  opacity: 0.1;
  border-color: #dee2e6;
}

/* Hover Lift Effect */
.hover-lift {
  transition: all 0.2s ease;
}

.hover-lift:hover {
  transform: translateY(-2px);
}

/* CTA Block */
.cta-block {
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(13, 110, 253, 0.12);
}

.cta-block:hover {
  box-shadow: 0 8px 24px rgba(13, 110, 253, 0.18);
  transform: translateY(-2px);
}

/* Extra large button for CTA */
.btn-xl {
  font-size: 1.125rem;
  padding: 0.875rem 2rem;
  border-radius: 0.5rem;
}

/* Responsive Adjustments */
@media (max-width: 767.98px) {
  .hero-home .hero-title {
    font-size: 2.25rem;
  }
  
  .hero-home .hero-subtitle {
    font-size: 1.15rem;
  }
  
  .state-directory-wrapper {
    padding: 1.5rem !important;
  }
  
  .ybt-featured-card .card-body {
    padding: 1.5rem !important;
  }
  
  .cta-block {
    padding: 2.5rem 1.5rem !important;
  }
  
  .state-section {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
  
  .state-directory-wrapper .mb-4 {
    text-align: center;
  }
}

@media (max-width: 575.98px) {
  .hero-home {
    padding: 2.5rem 0 !important;
  }
  
  .hero-home .container {
    padding: 2rem 0 !important;
  }
  
  .hero-home .hero-title {
    font-size: 1.85rem;
    line-height: 1.2;
  }
  
  .hero-home .hero-subtitle {
    font-size: 1rem;
  }
  
  .hero-home::after {
    font-size: 200px;
  }
  
  .state-link {
    font-size: 0.9rem;
    padding: 0.5rem 0.25rem !important;
  }
  
  .state-link::after {
    display: none;
  }
  
  .ybt-featured-card .card-title {
    font-size: 1.05rem;
  }
  
  .cta-block {
    padding: 2rem 1rem !important;
  }
  
  .btn-xl {
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
  }
}