/* Band Calendar - Custom Styles */
/* Bay Area Community Bulletin Board Design */

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
  /* Primary Colors - Muted Bay Area Vibes */
  --color-primary: #0F766E;      /* Deep Teal/Ocean */
  --color-secondary: #78716C;    /* Warm Stone/Fog */
  --color-accent: #B45A3C;       /* Rust/Terracotta */
  --color-cta: #FF6B35;          /* Bright Orange (CTAs only) */

  /* Neutrals - Warm & Inviting */
  --color-bg-light: #FAF8F5;     /* Warm off-white */
  --color-bg-card: #FFFFFF;      /* Pure white cards */
  --color-fog: #E7E5E4;          /* Warm gray */
  --color-text: #44403C;         /* Warm dark gray */
  --color-text-light: #78716C;   /* Muted text */

  /* Semantic Colors */
  --color-success: #059669;      /* Emerald green */
  --color-warning: #D97706;      /* Amber */
  --color-danger: #DC2626;       /* Red */

  /* Typography - Playful but Readable */
  --font-heading: 'Archivo Black', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Work Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-accent: 'Caveat', cursive;

  /* Spacing (8px grid) */
  --space-xs: 0.5rem;   /* 8px */
  --space-sm: 1rem;     /* 16px */
  --space-md: 1.5rem;   /* 24px */
  --space-lg: 2rem;     /* 32px */
  --space-xl: 3rem;     /* 48px */

  /* Shadows - Organic, not uniform */
  --shadow-sm: 2px 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-md: 3px 4px 12px rgba(0, 0, 0, 0.15);
  --shadow-lg: 5px 6px 20px rgba(0, 0, 0, 0.2);

  /* Border Radius - Slightly imperfect */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  /* Bootstrap color overrides */
  --bs-primary: var(--color-primary);
  --bs-secondary: var(--color-secondary);
  --bs-success: var(--color-success);
  --bs-warning: var(--color-warning);
  --bs-danger: var(--color-danger);
}

/* ============================================
   GLOBAL STYLES
   ============================================ */
body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--color-text);
  background-color: var(--color-bg-light);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 900;
  color: var(--color-text);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

.accent-text {
  font-family: var(--font-accent);
  font-size: 1.2em;
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
  background-color: var(--color-bg-card) !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  padding: var(--space-xs) 0;
  border-bottom: 2px solid var(--color-fog);
}

.navbar-brand {
  font-family: var(--font-heading);
  font-weight: 900;
  color: var(--color-primary) !important;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  padding: 0;
}

.navbar-logo {
  height: 60px;
  width: auto;
  transition: transform 0.2s ease;
}

.navbar-logo:hover {
  transform: scale(1.05);
}

/* Responsive logo sizing */
@media (max-width: 768px) {
  .navbar-logo {
    height: 48px;
  }
}

.nav-link {
  color: var(--color-text) !important;
  font-weight: 500;
  padding: var(--space-xs) var(--space-sm) !important;
  transition: all 0.2s ease;
}

.nav-link:hover {
  color: var(--color-primary) !important;
}

.nav-link.active {
  color: var(--color-primary) !important;
  font-weight: 600;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
  background-color: var(--color-bg-card);
  border-top: 2px solid var(--color-fog);
  margin-top: var(--space-xl);
}

footer p {
  color: var(--color-text-light);
  font-size: 0.9rem;
}

footer a {
  color: var(--color-text);
  font-weight: 500;
  transition: color 0.2s ease;
}

footer a:hover {
  color: var(--color-primary);
}

/* ============================================
   EVENT CARDS
   ============================================ */
.event-card {
  background: var(--color-bg-card);
  border-radius: var(--radius-md);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: all 0.3s ease;
  margin-bottom: var(--space-md);
  border: 1px solid var(--color-fog);
}

.event-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  transform: translateY(-4px);
  border-color: var(--color-primary);
}

.event-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--color-fog), var(--color-bg-light));
}

.event-card-img-link {
  display: block;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.event-card-img-link:hover {
  opacity: 0.9;
}

.event-card-body {
  padding: var(--space-md);
}

.event-card-title {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.25rem;
  margin-bottom: var(--space-xs);
  color: var(--color-text);
  letter-spacing: -0.01em;
}

.event-card-title a {
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.2s ease;
}

.event-card-title a:hover {
  color: var(--color-primary);
}

.event-card-bands {
  margin: var(--space-md) calc(-1 * var(--space-md)) var(--space-md) calc(-1 * var(--space-md));
  padding: var(--space-md);
  background: linear-gradient(135deg, rgba(3, 105, 161, 0.06), rgba(3, 105, 161, 0.1));
  border-top: 3px solid #0369A1;
  border-bottom: 3px solid #0369A1;
}

.band-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
  font-family: var(--font-body);
}

.band-name-prominent {
  display: block;
  font-size: 1.25rem;
  font-weight: 800;
  color: #0369A1;
  text-decoration: none;
  margin-bottom: 0.4rem;
  transition: all 0.2s ease;
  font-family: var(--font-heading);
  line-height: 1.3;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  font-size: 1rem;
}

.band-name-prominent:last-child {
  margin-bottom: 0;
}

.band-name-prominent:hover {
  color: var(--color-accent);
  transform: translateX(4px);
  text-decoration: none;
}

.event-card-meta {
  font-size: 0.875rem;
  color: var(--color-text-light);
  margin-bottom: var(--space-sm);
  font-weight: 500;
}

.event-card-meta i {
  color: var(--color-accent);
  margin-right: 0.3rem;
}

.event-card-meta a {
  color: var(--color-text-light);
  text-decoration: none;
  transition: color 0.2s ease;
}

.event-card-meta a:hover {
  color: var(--color-primary);
}

.event-card-description {
  color: var(--color-text);
  margin-bottom: var(--space-sm);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.5;
}

/* ============================================
   BADGES & PILLS
   ============================================ */
.badge {
  font-weight: 600;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.badge-genre {
  background-color: var(--color-primary);
  color: white;
  margin-right: 0.25rem;
  margin-bottom: 0.25rem;
  display: inline-block;
}

.badge-band {
  background-color: var(--color-bg-card);
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  margin-right: 0.25rem;
  margin-bottom: 0.25rem;
  display: inline-block;
  transition: all 0.2s ease;
  font-weight: 700;
}

.badge-band:hover {
  background-color: var(--color-primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(15, 118, 110, 0.3);
  text-decoration: none;
}

.badge-type {
  background-color: var(--color-accent);
  color: white;
}

.badge-free {
  background-color: var(--color-success);
  color: white;
}

.badge-paid {
  background-color: var(--color-warning);
  color: white;
}

.badge-age {
  background-color: var(--color-fog);
  color: var(--color-text);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary {
  background-color: var(--color-cta);
  border-color: var(--color-cta);
  color: white;
  font-weight: 700;
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.875rem;
}

.btn-primary:hover {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
  color: white;
}

.btn-secondary {
  background-color: var(--color-secondary);
  border-color: var(--color-secondary);
  color: white;
  font-weight: 600;
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius-sm);
}

.btn-outline-primary {
  color: var(--color-primary);
  border-color: var(--color-primary);
  border-width: 2px;
  font-weight: 600;
  padding: 0.65rem 1.5rem;
}

.btn-outline-primary:hover {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
  transform: translateY(-2px);
}

/* ============================================
   PAGE HEADERS
   ============================================ */
.page-header {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: white;
  padding: var(--space-xl) 0;
  margin-bottom: var(--space-lg);
  border-bottom: 4px solid var(--color-accent);
}

.page-header h1 {
  color: white;
  margin-bottom: var(--space-xs);
  font-size: 2.5rem;
}

.page-header p {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.15rem;
  font-weight: 400;
}

/* ============================================
   PAGE BANNER
   ============================================ */
.page-banner {
  margin-bottom: var(--space-xl);
  padding: var(--space-lg) 0;
}

.page-banner .container {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.banner-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-md);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Responsive banner sizing */
@media (max-width: 768px) {
  .page-banner {
    padding: var(--space-md) 0;
    margin-bottom: var(--space-lg);
  }

  .page-banner .container {
    padding-left: var(--space-sm);
    padding-right: var(--space-sm);
  }

  .banner-image {
    border-radius: var(--radius-sm);
  }
}

/* ============================================
   EMPTY STATES
   ============================================ */
.empty-state {
  text-align: center;
  padding: var(--space-xl);
  color: var(--color-text-light);
}

.empty-state i {
  font-size: 4rem;
  color: var(--color-fog);
  margin-bottom: var(--space-md);
}

.empty-state h3 {
  color: var(--color-text);
  margin-bottom: var(--space-sm);
  font-weight: 900;
}

/* ============================================
   DETAIL PAGES
   ============================================ */
.detail-hero {
  position: relative;
  width: 100%;
  height: 400px;
  background: linear-gradient(135deg, var(--color-fog), var(--color-bg-light));
  margin-bottom: var(--space-lg);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-fog);
}

.detail-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-meta {
  background: var(--color-bg-card);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  margin-bottom: var(--space-md);
  border: 1px solid var(--color-fog);
}

.detail-meta h3, .detail-meta h5 {
  font-weight: 900;
}

.detail-meta-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: var(--space-sm);
}

.detail-meta-item i {
  color: var(--color-accent);
  font-size: 1.2rem;
  margin-right: var(--space-sm);
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}

.detail-meta-item strong {
  color: var(--color-text);
  margin-right: var(--space-xs);
  font-weight: 700;
}

.detail-content {
  background: var(--color-bg-card);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--color-fog);
}

.detail-content h2 {
  color: var(--color-text);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 3px solid var(--color-fog);
  font-weight: 900;
}

/* ============================================
   BAND LIST
   ============================================ */
.band-list {
  list-style: none;
  padding: 0;
  margin-bottom: var(--space-md);
}

.band-list-item {
  padding: var(--space-sm);
  border-bottom: 1px solid var(--color-fog);
}

.band-list-item:last-child {
  border-bottom: none;
}

.band-list-item a {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 700;
  transition: color 0.2s ease;
}

.band-list-item a:hover {
  color: var(--color-primary);
}

/* ============================================
   SOCIAL LINKS
   ============================================ */
.social-links {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: var(--color-fog);
  color: var(--color-redwood-dark);
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.2s ease;
}

.social-link:hover {
  background-color: var(--color-primary);
  color: white;
  transform: translateY(-2px);
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
  margin-top: var(--space-lg);
}

.page-link {
  color: var(--color-primary);
  border-color: var(--color-fog);
  font-weight: 600;
  padding: 0.5rem 0.75rem;
}

.page-link:hover {
  color: white;
  background-color: var(--color-primary);
  border-color: var(--color-primary);
}

.page-item.active .page-link {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  font-weight: 700;
}

/* ============================================
   RESPONSIVE UTILITIES
   ============================================ */
@media (max-width: 768px) {
  .page-header {
    padding: var(--space-lg) 0;
  }

  .page-header h1 {
    font-size: 2rem;
  }

  .detail-hero {
    height: 250px;
  }

  .event-card-img {
    height: 180px;
  }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-primary-custom {
  color: var(--color-primary) !important;
}

.text-secondary-custom {
  color: var(--color-secondary) !important;
}

.bg-fog {
  background-color: var(--color-fog-light) !important;
}

.mt-custom {
  margin-top: var(--space-lg);
}

.mb-custom {
  margin-bottom: var(--space-lg);
}

/* ============================================
   FILTER SIDEBAR
   ============================================ */
.filter-sidebar {
  /* Removed sticky positioning for natural page flow */
}

.filter-box {
  background: var(--color-bg-card);
  border: 2px solid var(--color-fog);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.filter-title {
  font-family: var(--font-heading);
  font-weight: 900;
  color: var(--color-text);
  font-size: 1.25rem;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-xs);
  border-bottom: 2px solid var(--color-primary);
}

.filter-box .form-label {
  font-weight: 700;
  color: var(--color-text);
  font-size: 0.875rem;
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.filter-box .form-label i {
  color: var(--color-accent);
  margin-right: 0.3rem;
}

.filter-box .form-control,
.filter-box .form-select {
  border: 2px solid var(--color-fog);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.75rem;
  font-size: 0.9rem;
  color: var(--color-text);
  transition: all 0.2s ease;
}

.filter-box .form-control:focus,
.filter-box .form-select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 0.2rem rgba(15, 118, 110, 0.15);
}

.filter-box .form-control::placeholder {
  color: var(--color-text-light);
  font-style: italic;
}

/* Genre Checkboxes */
.genre-checkboxes {
  max-height: 200px;
  overflow-y: auto;
  padding: var(--space-xs);
  background: var(--color-bg-light);
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-fog);
}

.genre-checkboxes .form-check {
  padding: 0.4rem 0;
  margin-bottom: 0.3rem;
}

.genre-checkboxes .form-check-input {
  border: 2px solid var(--color-fog);
  border-radius: var(--radius-sm);
  width: 1.2em;
  height: 1.2em;
  margin-top: 0.2em;
  cursor: pointer;
}

.genre-checkboxes .form-check-input:checked {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
}

.genre-checkboxes .form-check-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 0.2rem rgba(15, 118, 110, 0.15);
}

.genre-checkboxes .form-check-label {
  font-size: 0.9rem;
  color: var(--color-text);
  cursor: pointer;
  font-weight: 500;
  margin-left: 0.3rem;
}

.genre-checkboxes .form-check-label:hover {
  color: var(--color-primary);
}

/* Scrollbar styling for genre checkboxes */
.genre-checkboxes::-webkit-scrollbar {
  width: 6px;
}

.genre-checkboxes::-webkit-scrollbar-track {
  background: var(--color-fog);
  border-radius: var(--radius-sm);
}

.genre-checkboxes::-webkit-scrollbar-thumb {
  background: var(--color-secondary);
  border-radius: var(--radius-sm);
}

.genre-checkboxes::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary);
}

/* Mobile Filter Button */
.btn-outline-primary.d-lg-none {
  border-width: 2px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Filter Form Container */
.filter-form-fields {
  /* Natural flow - no internal scrolling */
  margin-bottom: var(--space-sm);
}

/* Filter Form Spacing */
#filterForm .mb-3:last-of-type {
  margin-bottom: var(--space-sm) !important;
}

/* Filter Buttons */
.filter-buttons {
  padding-top: var(--space-sm);
  border-top: 2px solid var(--color-fog);
}

/* Venue Filter Indicator */
#venue-filter-indicator {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-accent);
  font-style: italic;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .genre-checkboxes {
    max-height: 150px;
  }
}

/* ============================================
   ARTICLE CONTENT STYLES
   ============================================ */
.article-body {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--color-text);
}

.article-body h1,
.article-body h2,
.article-body h3 {
  margin-top: var(--space-lg);
  margin-bottom: var(--space-md);
  font-family: var(--font-heading);
  font-weight: 900;
  color: var(--color-text);
}

.article-body h1 {
  font-size: 2rem;
  border-bottom: 3px solid var(--color-primary);
  padding-bottom: var(--space-xs);
}

.article-body h2 {
  font-size: 1.75rem;
  color: var(--color-primary);
}

.article-body h3 {
  font-size: 1.5rem;
  color: var(--color-accent);
}

.article-body p {
  margin-bottom: var(--space-md);
}

.article-body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin: var(--space-lg) 0;
}

.article-body img.image-style-side {
  max-width: 50%;
  margin: var(--space-sm) var(--space-md) var(--space-sm) 0;
}

.article-body img.image-style-align-left {
  float: left;
  margin: var(--space-sm) var(--space-md) var(--space-sm) 0;
  max-width: 50%;
}

.article-body img.image-style-align-right {
  float: right;
  margin: var(--space-sm) 0 var(--space-sm) var(--space-md);
  max-width: 50%;
}

.article-body img.image-style-align-center {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.article-body ul,
.article-body ol {
  margin-bottom: var(--space-md);
  padding-left: var(--space-lg);
}

.article-body li {
  margin-bottom: var(--space-xs);
  line-height: 1.8;
}

.article-body blockquote {
  border-left: 4px solid var(--color-primary);
  padding-left: var(--space-md);
  margin-left: 0;
  margin-right: 0;
  margin-bottom: var(--space-md);
  font-style: italic;
  color: var(--color-text-light);
  background-color: var(--color-bg-light);
  padding: var(--space-md);
  border-radius: var(--radius-sm);
}

.article-body a {
  color: var(--color-primary);
  text-decoration: underline;
  font-weight: 600;
  transition: color 0.2s ease;
}

.article-body a:hover {
  color: var(--color-accent);
}

.article-body table {
  width: 100%;
  margin-bottom: var(--space-md);
  border-collapse: collapse;
  border: 1px solid var(--color-fog);
}

.article-body table th,
.article-body table td {
  padding: var(--space-sm);
  border: 1px solid var(--color-fog);
  text-align: left;
}

.article-body table th {
  background-color: var(--color-primary);
  color: white;
  font-weight: 700;
}

.article-body table tr:nth-child(even) {
  background-color: var(--color-bg-light);
}

/* Clear floats after images */
.article-body::after {
  content: "";
  display: table;
  clear: both;
}
