/* DNVR PICKLEBALL COMPONENT LIBRARY */
/* ================================== */

/* HEADER & NAVIGATION - Pine Green Structure */
.header {
  background: var(--bg-header);
  color: var(--text-inverse);
  padding: var(--space-4) 0;
  box-shadow: var(--shadow-card);
  position: sticky;
  top: 0;
  z-index: var(--z-header);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--text-inverse);
  text-decoration: none;
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  list-style: none;
}

.navbar-nav a {
  color: var(--text-inverse);
  font-weight: var(--font-weight-medium);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  transition: background-color var(--transition-fast);
  text-decoration: none;
}

.navbar-nav a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--text-inverse);
}

/* BULLETPROOF BUTTON SYSTEM - Golden Ochre Only */
/* ⚠️  CRITICAL: DO NOT MODIFY BUTTON STYLING WITHOUT PERMISSION */
/* ⚠️  BUTTONS MUST BE GOLDEN OCHRE WITH WHITE CENTERED TEXT */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border: none;
  border-radius: var(--radius-button);
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-smooth);
  white-space: nowrap;
  
  /* ALL BUTTONS USE SAME COLORS - NO EXCEPTIONS */
  background: var(--bg-button);
  color: var(--text-button);
  box-shadow: var(--shadow-button);
}

.btn:hover {
  background: var(--bg-button);
  color: var(--text-button);
  transform: translateY(-1px);
  box-shadow: var(--shadow-button-hover);
  opacity: 0.9;
}

/* Button Sizes - Same colors, different sizes */
.btn-large {
  padding: var(--space-4) var(--space-8);
  font-size: var(--font-size-lg);
}

.btn-small {
  padding: var(--space-2) var(--space-4);
  font-size: var(--font-size-sm);
}

.btn-block {
  width: 100%;
}

/* All buttons use the same Golden Ochre styling */
.btn-outline {
  background: var(--golden-ochre);
  color: var(--pure-white);
  border: none;
}

.btn-outline:hover {
  background: var(--golden-ochre);
  color: var(--pure-white);
  opacity: 0.9;
}



/* RESOURCE TEMPLATE - Golden Accent Content Boxes */
.resource-box {
  background: var(--pure-white);
  border-radius: var(--radius-card);
  padding: var(--space-6);
  margin-bottom: var(--space-8);
  box-shadow: var(--shadow-card);
  border-left: 6px solid var(--golden-ochre);
}

.resource-box h2,
.resource-box h3,
.resource-box h4 {
  color: var(--charcoal);
  margin-bottom: var(--space-4);
}

.resource-box p,
.resource-box li {
  color: var(--text-body);
  line-height: 1.6;
  margin-bottom: var(--space-4);
}

.resource-box ul,
.resource-box ol {
  margin-left: var(--space-5);
  margin-bottom: var(--space-4);
}

.resource-box li {
  margin-bottom: var(--space-2);
  padding-left: var(--space-1);
}

/* Resource Header Intro */
.resource-intro {
  background: var(--pure-white);
  border-radius: var(--radius-card);
  padding: var(--space-6);
  margin-bottom: var(--space-8);
  box-shadow: var(--shadow-card);
  border-left: 6px solid var(--golden-ochre);
  text-align: left;
}

.resource-intro .text-lg {
  color: var(--text-body);
  font-size: var(--font-size-lg);
  line-height: 1.6;
}

/* COURT CARDS - Perfect Grid Layout */
.court-card {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  padding: var(--space-6);
  box-shadow: var(--shadow-card);
  transition: all var(--transition-smooth);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  max-width: 400px;
}

.court-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* SECTION 1: Essential Info (Fixed Height) */
.court-card-header {
  min-height: 120px;
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--border-subtle);
}

.court-card-title {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--text-heading);
  margin: 0 0 var(--space-2) 0;
  line-height: var(--line-height-tight);
}

.court-card-address {
  color: var(--text-body);
  font-size: var(--font-size-base);
  margin: 0 0 var(--space-3) 0;
  line-height: var(--line-height-normal);
}

.court-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.court-badge {
  background: var(--bg-button);
  color: var(--text-button);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-button);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.court-rating {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: auto;
}

.stars {
  color: var(--golden-ochre);
  font-size: var(--font-size-lg);
}

.rating-text {
  color: var(--text-body);
  font-size: var(--font-size-sm);
}

/* SECTION 2: Descriptors (Fixed Height) */
.court-card-body {
  flex: 1;
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--border-subtle);
}

.court-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: var(--space-2);
  min-height: 80px;
  align-content: start;
}

.feature-badge {
  background: var(--bg-card);
  color: var(--text-body);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-sm);
  border: 1px solid var(--border-subtle);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* SECTION 3: Action Buttons (Fixed Height) */
.court-actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--space-2);
  margin-top: auto;
  min-height: 44px;
}

.court-actions .btn {
  /* FORCE PERFECT CENTERING */
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  padding: 8px 16px !important;
  line-height: 1 !important;
  font-size: var(--font-size-sm);
  white-space: nowrap;
}

/* FORM COMPONENTS - Clean & Consistent */
.form-group {
  margin-bottom: var(--space-5);
}

.form-label {
  display: block;
  font-weight: var(--font-weight-semibold);
  color: var(--text-heading);
  margin-bottom: var(--space-2);
}

.form-input {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  background: var(--bg-card);
  color: var(--text-body);
  transition: border-color var(--transition-fast);
}

.form-input:focus {
  outline: none;
  border-color: var(--border-accent);
  box-shadow: 0 0 0 3px rgba(242, 169, 0, 0.1);
}

.form-select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-position: right var(--space-3) center;
  background-repeat: no-repeat;
  background-size: 16px 12px;
  padding-right: var(--space-10);
  appearance: none;
}

/* HERO SECTION - Near White Background */
.hero {
  background: var(--bg-main);
  padding: var(--space-24) 0;
  text-align: center;
}

.hero-title {
  font-size: var(--font-size-hero);
  font-weight: var(--font-weight-bold);
  color: var(--text-heading);
  margin-bottom: var(--space-4);
}

.hero-subtitle {
  font-size: var(--font-size-xl);
  color: var(--text-body);
  margin-bottom: var(--space-8);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

/* SEARCH & FILTER BAR - White Card */
.filter-bar {
  background: var(--bg-card);
  padding: var(--space-6);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  margin: var(--space-8) 0;
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-4);
  align-items: end;
}

/* CARDS & CONTENT SECTIONS - White Cards */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  padding: var(--space-6);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-subtle);
}

.card-header {
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--border-subtle);
}

.card-title {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--text-heading);
  margin: 0;
}

/* GRID SYSTEM */
.grid {
  display: grid;
  gap: var(--space-6);
}

.grid-2 { 
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
  justify-items: center;
}
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

/* FOOTER - Pine Green Only */
.footer {
  background: var(--bg-header);
  color: var(--text-inverse);
  padding: var(--space-8) 0 var(--space-4) 0;
  margin-top: var(--space-12);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  margin-bottom: var(--space-4);
}

.footer-section h4 {
  color: var(--text-inverse);
  margin-bottom: var(--space-4);
}

.footer-section p,
.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}

.footer-section a:hover {
  color: var(--text-inverse);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: var(--space-4);
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
}

/* CARD BUTTON CENTERING */
.card .btn {
  display: block;
  margin: 0 auto;
  text-align: center;
}

.card .flex.justify-center {
  display: flex;
  justify-content: center;
}

/* ALERT SYSTEM */
.alert {
  padding: var(--space-4);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-4);
  border-left: 4px solid;
}

.alert-success {
  background: #f0f9f4;
  border-color: #22c55e;
  color: #15803d;
}

.alert-warning {
  background: #fffbeb;
  border-color: var(--golden-ochre);
  color: #92400e;
}

.alert-error {
  background: #fef2f2;
  border-color: #ef4444;
  color: #dc2626;
}

/* UTILITY CLASSES */
.flex { display: flex; }
.items-start { align-items: flex-start; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.flex-wrap { flex-wrap: wrap; }

.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }

.space-y-2 > * + * { margin-top: var(--space-2); }
.space-y-3 > * + * { margin-top: var(--space-3); }

.text-lg { font-size: var(--font-size-lg); }
.text-sm { font-size: var(--font-size-sm); }
.text-center { text-align: center; }

.font-semibold { font-weight: var(--font-weight-semibold); }

.bg-light { background: var(--bg-light); }
.rounded { border-radius: var(--radius-md); }
.p-3 { padding: var(--space-3); }

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
  .hero-title {
    font-size: var(--font-size-3xl);
  }
  
  .hero-subtitle {
    font-size: var(--font-size-lg);
  }
  
  .filter-grid {
    grid-template-columns: 1fr;
  }
  
  .court-actions {
    flex-direction: column;
  }
  
  .hero-cta {
    flex-direction: column;
    align-items: center;
  }
  
  .navbar-nav {
    flex-direction: column;
    gap: var(--space-2);
    font-size: var(--font-size-sm);
  }
  
  .navbar {
    flex-direction: column;
    gap: var(--space-4);
  }
  
  /* FAQ Grid Mobile */
  .faq-grid {
    grid-template-columns: 1fr !important;
  }
}