/* ========================================
   Local Art Classes - Artistic Design System
   ======================================== */

:root {
  /* Classical Artist Palette Colors - Rich & Vibrant with High Contrast */
  --color-canvas: #FFFFFF;
  --color-light-bg: #F8F9FA;
  --color-charcoal: #212529;
  --color-ink: #000000;
  --color-prussian-blue: #002B5C;
  --color-ultramarine: #1E4D8B;
  --color-vermillion: #DC3545;
  --color-crimson: #C82333;
  --color-ochre-gold: #FFC107;
  --color-burnt-sienna: #A0522D;
  --color-emerald: #28A745;
  --color-forest-green: #155724;
  --color-royal-purple: #6F42C1;
  --color-deep-teal: #007B8A;
  
  /* Rich gradients inspired by classical paintings */
  --gradient-sunset: linear-gradient(135deg, #DC3545 0%, #C82333 50%, #A0522D 100%);
  --gradient-ocean: linear-gradient(135deg, #002B5C 0%, #1E4D8B 50%, #007B8A 100%);
  --gradient-forest: linear-gradient(135deg, #155724 0%, #28A745 100%);
  --gradient-royal: linear-gradient(135deg, #6F42C1 0%, #C82333 100%);
  --gradient-warm: linear-gradient(135deg, #FFC107 0%, #A0522D 100%);
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  
  /* Shadows - stronger, more defined */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);
  --shadow-hover: 0 12px 40px rgba(30, 77, 139, 0.25);
}

/* ========================================
   Base Styles
   ======================================== */

body {
  background: var(--color-light-bg);
  color: var(--color-charcoal);
  font-family: 'Georgia', 'Times New Roman', serif;
  line-height: 1.7;
  overflow-x: hidden;
}

/* Subtle paper texture */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0, 0, 0, 0.02) 2px, rgba(0, 0, 0, 0.02) 4px);
  pointer-events: none;
  z-index: 1;
}

main {
  position: relative;
  z-index: 2;
  padding: var(--space-lg) 0;
  min-height: 80vh;
}

/* ========================================
   Typography
   ======================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: 'Trebuchet MS', 'Lucida Sans', sans-serif;
  font-weight: 600;
  color: var(--color-ink);
  letter-spacing: -0.02em;
}

.display-4 {
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-ink);
  position: relative;
  display: inline-block;
}

/* Brush stroke underline */
.display-4::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60%;
  height: 4px;
  background: var(--color-vermillion);
  border-radius: 2px;
}

.lead {
  font-size: 1.25rem;
  color: var(--color-charcoal);
  font-style: italic;
  border-left: 4px solid var(--color-vermillion);
  padding-left: var(--space-md);
  margin-top: var(--space-md);
}

/* ========================================
   Cards - Gallery Frame Aesthetic
   ======================================== */

.card {
  border: none;
  background: var(--color-canvas);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

/* Artistic edge accent */
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--color-ultramarine);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.card:hover::before {
  opacity: 1;
}

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

.card-title {
  color: var(--color-ink);
  font-weight: 600;
  margin-bottom: var(--space-md);
}

.card-text strong {
  color: var(--color-prussian-blue);
  font-weight: 600;
}

/* ========================================
   Badges - Paint Dabs
   ======================================== */

.badge {
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-weight: 500;
  font-family: 'Trebuchet MS', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.01em;
  border: none;
  transition: opacity 0.2s ease;
  color: var(--color-canvas);
  background: var(--color-ultramarine) !important;
}

.bg-primary {
  background: var(--color-ultramarine) !important;
}

.badge:hover {
  opacity: 0.85;
}

/* Remove color cycling - all badges same color */
.badge:nth-child(2n),
.badge:nth-child(3n),
.badge:nth-child(4n),
.badge:nth-child(5n) {
  background: var(--color-ultramarine) !important;
}

/* ========================================
   Links - Artistic Underline
   ======================================== */

a {
  color: var(--color-ultramarine);
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease;
}

a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-ocean);
  transition: width 0.3s ease;
}

a:hover {
  color: var(--color-crimson);
}

a:hover::after {
  width: 100%;
}

.card-body a {
  font-weight: 500;
}

/* ========================================
   Header & Navigation
   ======================================== */

header {
  background: var(--color-ink);
  border-bottom: 3px solid var(--color-ultramarine);
  box-shadow: var(--shadow-md);
  padding: var(--space-sm) 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar {
  padding: 0;
}

.navbar-brand {
  display: flex;
  align-items: center;
}

.navbar-brand::after {
  display: none;
}

.brand-logo {
  height: 80px;
  width: auto;
}

.brand-icon {
  filter: none;
  -webkit-text-fill-color: initial;
  font-size: 1.8rem;
}

.navbar-nav {
  gap: var(--space-sm);
}

.nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  font-family: 'Trebuchet MS', sans-serif;
  font-weight: 500;
  padding: var(--space-xs) var(--space-md) !important;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: var(--color-ochre-gold);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-ochre-gold) !important;
}

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

.nav-link.active {
  background: rgba(255, 193, 7, 0.2);
  color: var(--color-ochre-gold) !important;
  box-shadow: var(--shadow-sm);
}

.nav-link.active::after {
  display: none;
}

.dropdown-menu {
  border: none;
  box-shadow: var(--shadow-lg);
  border-radius: 12px;
  padding: var(--space-xs);
  margin-top: var(--space-xs);
  background: var(--color-ink);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.dropdown-item {
  border-radius: 8px;
  padding: var(--space-xs) var(--space-md);
  transition: all 0.3s ease;
  color: rgba(255, 255, 255, 0.9);
  font-family: 'Trebuchet MS', sans-serif;
}

.dropdown-item:hover {
  background: rgba(255, 193, 7, 0.15);
  color: var(--color-ochre-gold);
  transform: translateX(4px);
}

.navbar-toggler {
  border: 2px solid var(--color-ultramarine);
  border-radius: 8px;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(46, 80, 144, 0.25);
}

.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(46, 80, 144, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

@media (max-width: 991px) {
  .navbar-collapse {
    background: rgba(0, 0, 0, 0.9);
    border-radius: 12px;
    padding: var(--space-md);
    margin-top: var(--space-sm);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .navbar-nav {
    gap: var(--space-xs);
  }
  
  .nav-link::after {
    display: none;
  }
  
  .dropdown-menu {
    background: rgba(0, 0, 0, 0.85);
    box-shadow: none;
    border-left: 3px solid var(--color-prussian-blue);
    margin-left: var(--space-md);
  }
}

/* ========================================
   Footer
   ======================================== */

footer {
  background: var(--color-ink);
  color: var(--color-canvas);
  padding: var(--space-lg) 0;
  margin-top: var(--space-xl);
  border-top: 4px solid var(--color-ochre-gold);
}

footer a {
  color: var(--color-ochre-gold);
}

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

/* ========================================
   Specialty Elements
   ======================================== */

/* Schedule list styling */
.card-body ul li {
  padding: var(--space-xs) 0;
  border-bottom: 1px dashed rgba(28, 28, 28, 0.15);
}

.card-body ul li:last-child {
  border-bottom: none;
}

/* Markdown content within cards */
.card-body div p:last-child {
  margin-bottom: 0;
}

/* Social media links */
.d-flex.gap-3 a {
  padding: var(--space-xs) var(--space-md);
  background: linear-gradient(135deg, rgba(0, 49, 83, 0.1) 0%, rgba(46, 80, 144, 0.1) 100%);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.d-flex.gap-3 a:hover {
  background: var(--gradient-ocean);
  color: white !important;
  transform: translateY(-2px);
}

.d-flex.gap-3 a::after {
  display: none;
}

/* Social Media Icons */
.social-links {
  gap: 1rem !important;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0, 49, 83, 0.1) 0%, rgba(46, 80, 144, 0.1) 100%);
  color: var(--color-prussian-blue);
  font-size: 1.2rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-link:hover {
  transform: translateY(-4px) scale(1.1);
  box-shadow: var(--shadow-md);
  color: white;
}

.social-link:hover::after {
  display: none;
}

/* Individual social media colors */
.social-link:has(.fa-facebook):hover {
  background: #1877F2;
}

.social-link:has(.fa-instagram):hover {
  background: linear-gradient(135deg, #833AB4 0%, #FD1D1D 50%, #F77737 100%);
}

.social-link:has(.fa-twitter):hover {
  background: #1DA1F2;
}

.social-link:has(.fa-youtube):hover {
  background: #FF0000;
}

.social-link:has(.fa-linkedin):hover {
  background: #0A66C2;
}

.social-link:has(.fa-tiktok):hover {
  background: #000000;
}

/* ========================================
   Responsive Adjustments
   ======================================== */

@media (max-width: 768px) {
  .display-4 {
    font-size: 2rem;
  }
  
  .lead {
    font-size: 1.1rem;
  }
  
  .card-body {
    padding: var(--space-md);
  }
}

/* ========================================
   Accessibility
   ======================================== */

:focus {
  outline: 3px solid var(--color-ultramarine);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ========================================
   Animations
   ======================================== */

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

.card {
  animation: fadeInUp 0.6s ease-out backwards;
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }
.card:nth-child(5) { animation-delay: 0.5s; }

/* ========================================
   Landing Page - Directory Listing
   ======================================== */

.display-3 {
  font-size: 3.5rem;
  font-weight: 700;
  background: var(--gradient-sunset);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* State Cards on Landing Page */
.state-card-link {
  text-decoration: none;
  display: block;
}

.state-card {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid rgba(30, 77, 139, 0.2);
  background: var(--color-canvas);
}

.state-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: var(--shadow-hover);
  border-color: var(--color-ultramarine);
  background: var(--color-canvas);
}

.state-card-title {
  color: var(--color-ink);
  font-weight: 700;
  margin-bottom: var(--space-md);
}

.studio-count-large {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
}

.count-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-ultramarine);
  line-height: 1;
}

.count-label {
  font-size: 0.9rem;
  color: var(--color-charcoal);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.view-studios-link {
  color: var(--color-ultramarine);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.state-card:hover .view-studios-link {
  color: var(--color-vermillion);
  transform: translateX(4px);
  display: inline-block;
}

/* City Sections on State Pages */
.city-section {
  border-bottom: 2px solid rgba(0, 49, 83, 0.1);
  padding-bottom: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.city-section:last-child {
  border-bottom: none;
}

.city-heading {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-ink);
  display: flex;
  align-items: center;
  position: relative;
  padding-bottom: var(--space-sm);
}

.city-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 3px;
  background: var(--color-burnt-sienna);
  border-radius: 2px;
}

.city-name {
  font-family: 'Trebuchet MS', sans-serif;
}

/* Breadcrumb Styling */
.breadcrumb {
  background: rgba(0, 0, 0, 0.03);
  padding: var(--space-sm) var(--space-md);
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.breadcrumb-item a {
  color: var(--color-ultramarine);
  text-decoration: none;
  font-weight: 500;
}

.breadcrumb-item.active {
  color: var(--color-ink);
  font-weight: 600;
}

/* Legacy styles preserved */
.state-section {
  border-bottom: 2px solid rgba(0, 49, 83, 0.1);
  padding-bottom: var(--space-lg);
}

.state-section:last-child {
  border-bottom: none;
}

.state-heading {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-prussian-blue);
  display: flex;
  align-items: center;
  position: relative;
  padding-bottom: var(--space-sm);
}

.state-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100px;
  height: 3px;
  background: var(--gradient-ocean);
  border-radius: 2px;
}

.state-name {
  font-family: 'Trebuchet MS', sans-serif;
}

.studio-count {
  font-size: 0.9rem;
  font-weight: 600;
  background: var(--color-vermillion) !important;
  color: var(--color-canvas) !important;
  border: 2px solid var(--color-crimson) !important;
  padding: 0.4rem 1rem !important;
  border-radius: 6px !important;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-family: 'Trebuchet MS', sans-serif;
  box-shadow: 0 2px 4px rgba(220, 53, 69, 0.3);
  transition: all 0.3s ease;
}

.studio-count:hover {
  transform: none !important;
  background: var(--color-crimson) !important;
  box-shadow: 0 3px 6px rgba(220, 53, 69, 0.4);
}

.studio-card {
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 49, 83, 0.08);
}

.studio-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: var(--color-ultramarine);
}

.card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.card-link:hover {
  color: inherit;
}

.card-link::after {
  display: none;
}

.studio-link {
  color: var(--color-ink);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.studio-link::after {
  display: none;
}

.studio-link:hover {
  color: var(--color-ultramarine);
}

.btn-outline-primary {
  color: var(--color-ultramarine);
  border-color: var(--color-ultramarine);
  transition: all 0.3s ease;
}

.btn-outline-primary:hover {
  background: var(--gradient-ocean);
  border-color: var(--color-ultramarine);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.bg-secondary {
  background: linear-gradient(135deg, #6B2D8F 0%, #A91B2E 100%) !important;
}

/* Badge Light Variations */
.badge-light {
  opacity: 0.7;
}

.badge-lighter {
  opacity: 0.5;
}

.badge-subtle {
  opacity: 0.6;
  border-color: rgba(255, 255, 255, 0.3) !important;
}

/* Light background badges with darker text */
.badge-outline {
  background: rgba(255, 255, 255, 0.2) !important;
  border: 2px solid currentColor;
  color: var(--color-prussian-blue);
  font-weight: 600;
}

.badge-outline:hover {
  background: rgba(255, 255, 255, 0.4) !important;
}

@media (max-width: 768px) {
  .display-3 {
    font-size: 2.5rem;
  }
  
  .state-heading {
    font-size: 1.5rem;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-xs);
  }
  
  .city-heading {
    font-size: 1.4rem;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-xs);
  }
  
  .count-number {
    font-size: 2.5rem;
  }
}
