/* ==========================================================================
   Dhyanas - Sacred Indian Meditation Platform
   Mystical Indian design with sacred colors and spiritual aesthetics
   ========================================================================== */

/* Root Variables - Indian Mystical Theme */
:root {
  --primary-color: #d4651a; /* Sacred saffron */
  --secondary-color: #2d4a73; /* Softer indigo blue */
  --accent-color: #c85a3b; /* Warm terracotta */
  --success-color: #6b8e5a; /* Muted sage green */
  --warning-color: #d49c47; /* Warmer golden amber */
  --danger-color: #c85a3b; /* Consistent with accent */
  --info-color: #5b7fb8; /* Softer blue */

  --saffron-orange: #e6a06b; /* Softer saffron */
  --sacred-red: #c85a3b; /* Harmonized red */
  --mystic-purple: #8b6ba3; /* Softer purple */
  --lotus-pink: #d9a5c2; /* Muted pink */

/* Skip to content link for accessibility and SEO */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary-color);
  color: white;
  padding: 8px;
  text-decoration: none;
  border-radius: 0 0 4px 4px;
  z-index: 2000;
  font-size: 14px;
}

.skip-link:focus {
  top: 0;
}


  --turmeric-gold: #d4a574; /* Warmer gold */
  --sandalwood-cream: #f2e8d5; /* Softer cream */
  --peacock-blue: #4a6b7a; /* Softer blue-green */
  --sage-green: #6b8e5a; /* Harmonized green */

  --text-primary: #3d2e28; /* Softer dark brown */
  --text-secondary: #6b5448; /* Softer brown */
  --text-muted: #8b7563; /* Lighter muted brown */

  --bg-light: #faf8f4; /* Softer cream */
  --bg-white: #ffffff;
  --border-light: #e5d8c7; /* Harmonized border */

  --font-family-primary: 'Noto Sans Devanagari', 'Noto Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-family-heading: 'Noto Serif Devanagari', 'Noto Serif', Georgia, serif;

  --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  --shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);

  --border-radius: 0.5rem;
  --border-radius-lg: 1rem;
  --border-radius-xl: 1.5rem;

  --transition: all 0.3s ease;
}

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Devanagari:wght@400;500;600;700&family=Noto+Serif+Devanagari:wght@400;500;600;700&display=swap');

/* Base Styles */
* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-family-primary);
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-light);
  padding-top: 76px; /* Account for fixed navbar */
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-heading);
  font-weight: 900;
  line-height: 1.3;
  color: var(--text-primary);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  opacity: 1;
}

h1 {
  font-weight: 900;
  color: var(--primary-color);
  text-shadow: 0 3px 6px rgba(0, 0, 0, 0.4);
  opacity: 1;
}

h2 {
  font-weight: 900;
  color: var(--secondary-color);
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  opacity: 1;
}

h3, h4 {
  font-weight: 900;
  color: var(--text-primary);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
  opacity: 1;
}

h5, h6 {
  font-weight: 800;
  color: var(--text-secondary);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  opacity: 1;
}

.text-white-75 {
  color: rgba(255, 255, 255, 0.75) !important;
}

.text-white-50 {
  color: rgba(255, 255, 255, 0.5) !important;
}

.border-white-25 {
  border-color: rgba(255, 255, 255, 0.25) !important;
}

/* Bootstrap Customizations */
.btn {
  border-radius: var(--border-radius);
  font-weight: 500;
  padding: 0.5rem 1.25rem;
  transition: var(--transition);
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: #3a5233;
  border-color: #3a5233;
}

.card {
  border-radius: var(--border-radius-lg);
  border: none;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.card:hover {
  box-shadow: var(--shadow);
}

.form-control, .form-select {
  border-radius: var(--border-radius);
  border-color: var(--border-light);
  font-size: 0.95rem;
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(74, 103, 65, 0.25);
}

/* Navigation */
.navbar {
  background: linear-gradient(135deg, var(--primary-color), var(--saffron-orange), var(--mystic-purple)) !important;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
  position: fixed !important;
  top: 0 !important;
  width: 100% !important;
  z-index: 1030 !important;
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.25rem;
}

.nav-link {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9) !important;
  transition: var(--transition);
}

.nav-link:hover {
  color: white !important;
  transform: translateY(-1px);
}

/* Main Content */
.main-content {
  min-height: calc(100vh - 76px);
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, var(--primary-color), var(--mystic-purple), var(--peacock-blue));
  background-image:
    radial-gradient(circle at 20% 50%, rgba(212, 165, 116, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(217, 165, 194, 0.15) 0%, transparent 50%);
  color: white;
  position: relative;
  overflow: hidden;
}

.hero-section.breathing {
  animation: breatheBackground 10s ease-in-out infinite;
}

.hero-section.breathing .hero-image img {
  animation: breatheSubtle 6s ease-in-out infinite;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
  pointer-events: none;
}

.hero-image img {
  border-radius: var(--border-radius-xl);
}

/* Feature Cards */
.feature-card {
  padding: 2rem;
  text-align: center;
  border-radius: var(--border-radius-lg);
  background: var(--bg-white);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
}

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

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--soft-blue), var(--accent-color));
}

.feature-icon i {
  width: 40px;
  height: 40px;
  color: white;
}

/* Category Cards */
.category-card {
  background: var(--bg-white);
  padding: 1.5rem;
  border-radius: var(--border-radius-lg);
  transition: var(--transition);
  height: 100%;
}

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

.category-card.breathing {
  animation: breatheCard 5s ease-in-out infinite;
}

.category-card.breathing .category-icon,
.category-card.breathing .feather {
  animation: breatheIcon 4s ease-in-out infinite;
}

/* Enhanced Category Cards for Home Page */
.category-card-home {
  transition: all 0.3s ease;
  cursor: pointer;
}

.category-card-home:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.category-card-home .card-body {
  position: relative;
  overflow: hidden;
}

.category-card-home .card-body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(255,255,255,0.05) 100%);
  pointer-events: none;
}

/* Enhanced Category Cards with Visual Backgrounds */
.category-card-visual {
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: pointer;
  border-radius: var(--border-radius-xl);
  overflow: hidden;
  background: var(--bg-white);
}

.category-card-visual:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 25px 50px rgba(0,0,0,0.2);
}

/* Compact Category Cards */
.category-card-compact {
  transition: all 0.3s ease;
  cursor: pointer;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-white);
  height: 240px;
}

.category-card-compact:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.category-visual-header-compact {
  height: 120px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-visual-header-compact .category-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.category-card-compact:hover .category-bg-image {
  transform: scale(1.1);
}

.category-overlay-compact {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg,
    rgba(0, 0, 0, 0.3) 0%,
    rgba(0, 0, 0, 0.2) 50%,
    rgba(0, 0, 0, 0.4) 100%);
  z-index: 1;
}

.category-icon-compact {
  position: relative;
  z-index: 2;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.category-card-compact:hover .category-icon-compact {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.feather-lg {
  width: 24px;
  height: 24px;
}

.category-progress-compact .progress {
  border-radius: 2px;
}

/* Responsive grid for compact cards */
@media (min-width: 1200px) {
  .col-xl-2-4 {
    flex: 0 0 auto;
    width: 20%;
  }
}

@media (max-width: 1199.98px) {
  .col-xl-2-4 {
    flex: 0 0 auto;
    width: 25%;
  }
}

@media (max-width: 991.98px) {
  .col-xl-2-4 {
    flex: 0 0 auto;
    width: 33.333333%;
  }
}

@media (max-width: 767.98px) {
  .col-xl-2-4 {
    flex: 0 0 auto;
    width: 50%;
  }
}

.category-card-compact .card-title {
  font-size: 0.9rem;
  line-height: 1.2;
}

.category-card-compact .btn {
  font-size: 0.8rem;
  padding: 0.4rem 0.8rem;
}

.category-card-visual.breathing {
  animation: breatheSubtle 6s ease-in-out infinite;
}

.category-card-visual.breathing .category-bg-image {
  animation: breatheBackground 8s ease-in-out infinite;
}

.category-card-visual.breathing .icon-circle {
  animation: breathe 4s ease-in-out infinite;
}

.category-visual-header {
  height: 220px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.category-card-visual:hover .category-bg-image {
  transform: scale(1.1);
}

.category-overlay-enhanced {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg,
    rgba(0, 0, 0, 0.4) 0%,
    rgba(0, 0, 0, 0.3) 50%,
    rgba(0, 0, 0, 0.5) 100%);
  z-index: 1;
}

.category-floating-icon {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 3;
}

.icon-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(15px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.category-card-visual:hover .icon-circle {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(10deg) scale(1.1);
}

.feather-xl {
  width: 24px;
  height: 24px;
  color: white;
}

.feather-xxl {
  width: 32px;
  height: 32px;
  color: white;
}

/* Large Category Cards for Full Screen */
.category-card-visual-large {
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: pointer;
  border-radius: var(--border-radius-xl);
  overflow: hidden;
  background: var(--bg-white);
}

.category-card-visual-large:hover {
  transform: translateY(-15px) scale(1.03);
  box-shadow: 0 25px 50px rgba(0,0,0,0.25);
}

.category-visual-header-large {
  height: 280px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Extra Large Category Cards for Center Screen */
.category-card-visual-xl {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer !important;
  border-radius: var(--border-radius-xl);
  overflow: hidden;
  background: var(--bg-white);
  min-height: 450px;
  display: flex;
  flex-direction: column;
}

.category-card-visual-xl:hover {
  transform: translateY(-8px) scale(1.02) !important;
  box-shadow: 0 1.5rem 4rem rgba(0,0,0,.2) !important;
}

.category-visual-header-xl {
  height: 350px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-card-visual-xl .category-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.category-card-visual-xl:hover .category-bg-image {
  transform: scale(1.15);
}

.category-card-visual-xl .category-overlay-enhanced {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg,
    rgba(0, 0, 0, 0.4) 0%,
    rgba(0, 0, 0, 0.3) 50%,
    rgba(0, 0, 0, 0.5) 100%);
  z-index: 1;
}

.category-card-visual-xl .category-floating-icon-large {
  position: absolute;
  top: 30px;
  right: 30px;
  z-index: 3;
}

.category-card-visual-xl .icon-circle-large {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(20px);
  border: 3px solid rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.category-card-visual-xl:hover .icon-circle-large {
  background: rgba(255, 255, 255, 0.35);
  transform: rotate(20deg) scale(1.2);
}

.category-card-visual-xl .feather-xxl {
  width: 40px;
  height: 40px;
  color: white;
}

.category-card-visual-xl .category-info-large {
  position: absolute;
  bottom: 30px;
  left: 30px;
  right: 30px;
  z-index: 2;
}

.category-card-visual-xl .category-title-large {
  font-size: 1.9rem;
  font-weight: 900;
  letter-spacing: 0.8px;
  text-shadow: 0 3px 6px rgba(0,0,0,0.4);
  margin-bottom: 15px;
}

.category-card-visual-xl .count-number-large {
  font-size: 2rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(15px);
  padding: 0.75rem 1.25rem;
  border-radius: 30px;
  border: 2px solid rgba(255, 255, 255, 0.4);
}

.category-card-visual-xl .count-label-large {
  font-size: 1.1rem;
  opacity: 0.95;
}

.category-card-visual-xl .category-description-large {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.category-card-visual-xl .category-features-enhanced {
  margin-bottom: 1.5rem;
}

.category-card-visual-xl .feature-tag-enhanced {
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
}

.category-card-visual-xl .category-cta-btn {
  padding: 1rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.category-floating-icon-large {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 3;
}

.category-card-visual-xl .icon-circle-large {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(20px);
  border: 2px solid rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.category-card-visual-xl:hover .icon-circle-large {
  background: rgba(255, 255, 255, 0.35);
  transform: rotate(15deg) scale(1.15);
}

.category-info-large {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  z-index: 2;
}

.category-title-large {
  font-size: 1.5rem;
  font-weight: 900;
  text-shadow: 0 3px 8px rgba(0,0,0,0.6);
  margin-bottom: 12px;
  letter-spacing: 0.8px;
}

.technique-count-large {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.75rem;
}

.count-number-large {
  font-size: 1.75rem;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(15px);
  padding: 0.5rem 1rem;
  border-radius: 25px;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.count-label-large {
  font-size: 1rem;
  opacity: 0.95;
}

.category-description-large {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

/* Category-Specific Themes */
.category-theme-breath-awareness {
  --primary-color: #7bbee6;
  --secondary-color: #a5d1ea;
  --accent-color: #d0e9f5;
  --text-shadow: 0 2px 4px rgba(123, 190, 230, 0.3);
  background: linear-gradient(135deg, #7bbee6 0%, #a5d1ea 50%, #d0e9f5 100%);
}

.category-theme-sensory-meditation {
  --primary-color: #c295c2;
  --secondary-color: #d4b3d4;
  --accent-color: #e6d1e6;
  --text-shadow: 0 2px 4px rgba(194, 149, 194, 0.3);
  background: linear-gradient(135deg, #c295c2 0%, #d4b3d4 50%, #e6d1e6 100%);
}

.category-theme-body-awareness {
  --primary-color: #e0966b;
  --secondary-color: #e8b088;
  --accent-color: #f0caa5;
  --text-shadow: 0 2px 4px rgba(224, 150, 107, 0.3);
  background: linear-gradient(135deg, #e0966b 0%, #e8b088 50%, #f0caa5 100%);
}

.category-theme-sound-vibration {
  --primary-color: #8bb88b;
  --secondary-color: #a5c6a5;
  --accent-color: #bfd4bf;
  --text-shadow: 0 2px 4px rgba(139, 184, 139, 0.3);
  background: linear-gradient(135deg, #8bb88b 0%, #a5c6a5 50%, #bfd4bf 100%);
}

.category-theme-light-visualization {
  --primary-color: #d4af47;
  --secondary-color: #dbc26b;
  --accent-color: #e2d58f;
  --text-shadow: 0 2px 4px rgba(212, 175, 71, 0.3);
  background: linear-gradient(135deg, #d4af47 0%, #dbc26b 50%, #e2d58f 100%);
}

.category-theme-movement-dance {
  --primary-color: #b87d52;
  --secondary-color: #c59570;
  --accent-color: #d2ad8e;
  --text-shadow: 0 2px 4px rgba(184, 125, 82, 0.3);
  background: linear-gradient(135deg, #b87d52 0%, #c59570 50%, #d2ad8e 100%);
}

.category-theme-emptiness-space {
  --primary-color: #9e88a3;
  --secondary-color: #b4a1b8;
  --accent-color: #cbbace;
  --text-shadow: 0 2px 4px rgba(158, 136, 163, 0.3);
  background: linear-gradient(135deg, #9e88a3 0%, #b4a1b8 50%, #cbbace 100%);
}

.category-theme-emotion-energy {
  --primary-color: #6b9e6b;
  --secondary-color: #84b384;
  --accent-color: #9dc89d;
  --text-shadow: 0 2px 4px rgba(107, 158, 107, 0.3);
  background: linear-gradient(135deg, #6b9e6b 0%, #84b384 50%, #9dc89d 100%);
}

.category-theme-witness-consciousness {
  --primary-color: #5b73a8;
  --secondary-color: #7a8fb8;
  --accent-color: #99abc8;
  --text-shadow: 0 2px 4px rgba(91, 115, 168, 0.3);
  background: linear-gradient(135deg, #5b73a8 0%, #7a8fb8 50%, #99abc8 100%);
}

.category-theme-union-transcendence {
  --primary-color: #a066a0;
  --secondary-color: #b485b4;
  --accent-color: #c8a4c8;
  --text-shadow: 0 2px 4px rgba(160, 102, 160, 0.3);
  background: linear-gradient(135deg, #a066a0 0%, #b485b4 50%, #c8a4c8 100%);
}

.category-theme-four-fold-path,
.category-theme-buddhas-4-fold-path {
  --primary-color: #d47a33;
  --secondary-color: #db9456;
  --accent-color: #e2ae79;
  --text-shadow: 0 2px 4px rgba(212, 122, 51, 0.3);
  background: linear-gradient(135deg, #d47a33 0%, #db9456 50%, #e2ae79 100%);
}

.category-theme-vipassana {
  --primary-color: #8b6b52;
  --secondary-color: #a0826e;
  --accent-color: #b5998a;
  --text-shadow: 0 2px 4px rgba(139, 107, 82, 0.3);
  background: linear-gradient(135deg, #8b6b52 0%, #a0826e 50%, #b5998a 100%);
}

.category-theme-quantum-meditations {
  --primary-color: #4a9eb8;
  --secondary-color: #6bb3c5;
  --accent-color: #8cc8d2;
  --text-shadow: 0 2px 4px rgba(74, 158, 184, 0.3);
  background: linear-gradient(135deg, #4a9eb8 0%, #6bb3c5 50%, #8cc8d2 100%);
}

.category-theme-sleep-meditations {
  --primary-color: #7d5a8f;
  --secondary-color: #9574a2;
  --accent-color: #ad8eb5;
  --text-shadow: 0 2px 4px rgba(125, 90, 143, 0.3);
  background: linear-gradient(135deg, #7d5a8f 0%, #9574a2 50%, #ad8eb5 100%);
}

/* Theme-specific button styles */
[class*="category-theme-"] .btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
  text-shadow: var(--text-shadow);
}

[class*="category-theme-"] .btn-primary:hover {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

[class*="category-theme-"] .card {
  border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(10px);
  background: rgba(255,255,255,0.1);
}

[class*="category-theme-"] .text-primary {
  color: var(--primary-color) !important;
}

[class*="category-theme-"] .bg-primary {
  background-color: var(--primary-color) !important;
}

/* Meditation player theme integration */
.meditation-player[class*="category-theme-"] {
  min-height: 100vh;
}

.meditation-player[class*="category-theme-"] .meditation-content {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.meditation-player[class*="category-theme-"] h1 {
  color: var(--primary-color);
  text-shadow: var(--text-shadow);
}

/* Category page theme integration */
.category-page[class*="category-theme-"] {
  min-height: 100vh;
}

.category-page[class*="category-theme-"] .page-header {
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(15px);
  border-radius: 15px;
  padding: 2rem;
  margin-bottom: 2rem;
}

/* Sidebar Styles */
.meditation-icon-sm {
  flex-shrink: 0;
}

.meditation-preview-compact {
  transition: all 0.2s ease;
  padding: 0.5rem;
  border-radius: var(--border-radius);
}

.meditation-preview-compact:hover {
  background: rgba(74, 103, 65, 0.05);
  transform: translateX(5px);
}

/* Responsive adjustments for large screens */
@media (min-width: 1200px) {
  .category-visual-header-large {
    height: 320px;
  }

  .category-title-large {
    font-size: 1.75rem;
  }

  .count-number-large {
    font-size: 2rem;
  }

  .category-visual-header-xl {
    height: 380px;
  }

  .category-card-visual-xl .category-title-large {
    font-size: 1.9rem;
    font-weight: 900;
    letter-spacing: 0.8px;
  }

  .category-card-visual-xl .count-number-large {
    font-size: 2.25rem;
  }

  .category-card-visual-xl .icon-circle-large {
    width: 90px;
    height: 90px;
  }

  .category-card-visual-xl .feather-xxl {
    width: 45px;
    height: 45px;
  }
}

/* Extra large screens - ensure proper grid layout */
@media (min-width: 1400px) {
  .category-card-visual-xl {
    min-height: 500px;
  }

  .category-visual-header-xl {
    height: 400px;
  }

  /* Better flex distribution */
  .row.g-4.justify-content-center {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
  }

  .col-xl-4 {
    display: flex;
    justify-content: center;
  }

  .category-card-visual-xl {
    width: 100%;
    max-width: inherit;
  }
}

/* Very large screens - prevent cards from getting too wide */
@media (min-width: 1600px) {
  .col-xl-4 {
    flex: 0 0 auto;
    width: 30%;
    max-width: 400px;
  }

  .row.g-4.justify-content-center {
    margin: 0 auto;
    max-width: 1300px;
    display: flex;
    justify-content: center;
  }

  .container-fluid .row .col-lg-8.col-xl-9 {
    max-width: 1300px !important;
  }
}

/* Ultra-wide screens */
@media (min-width: 1920px) {
  .col-xl-4 {
    max-width: 380px;
    width: 28%;
  }

  .row.g-4.justify-content-center {
    max-width: 1200px;
  }

  .container-fluid .row .col-lg-8.col-xl-9 {
    max-width: 1200px !important;
  }
}

/* 4K and super ultra-wide screens */
@media (min-width: 2560px) {
  .col-xl-4 {
    max-width: 350px;
    width: 25%;
  }

  .row.g-4.justify-content-center {
    max-width: 1100px;
  }

  .container-fluid .row .col-lg-8.col-xl-9 {
    max-width: 1100px !important;
  }
}

@media (max-width: 991.98px) {
  .category-visual-header-large {
    height: 240px;
  }

  .category-title-large {
    font-size: 1.25rem;
  }

  .icon-circle-large {
    width: 55px;
    height: 55px;
  }

  .feather-xxl {
    width: 28px;
    height: 28px;
  }

  .category-visual-header-xl {
    height: 300px;
  }

  .category-card-visual-xl .category-title-large {
    font-size: 1.5rem;
  }

  .category-card-visual-xl .icon-circle-large {
    width: 65px;
    height: 65px;
  }

  .category-card-visual-xl .feather-xxl {
    width: 32px;
    height: 32px;
  }

  .category-card-visual-xl .card-body {
    padding: 1.5rem;
  }
}

@media (max-width: 767.98px) {
  .category-visual-header-xl {
    height: 280px;
  }

  .category-card-visual-xl .category-title-large {
    font-size: 1.35rem;
  }

  .category-card-visual-xl .count-number-large {
    font-size: 1.75rem;
    padding: 0.5rem 1rem;
  }

  .category-card-visual-xl .count-label-large {
    font-size: 1rem;
  }
}

.category-info {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  z-index: 2;
}

.category-title {
  font-size: 1.3rem;
  font-weight: 900;
  text-shadow: 0 2px 6px rgba(0,0,0,0.5);
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.technique-count {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.5rem;
}

.count-number {
  font-size: 1.5rem;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.count-label {
  font-size: 0.85rem;
  opacity: 0.9;
}

.category-description {
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

/* Enhanced Feature Tags */
.category-features-enhanced {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.feature-tag-enhanced {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.75rem;
  background: linear-gradient(135deg, var(--bg-light), rgba(255,255,255,0.8));
  border-radius: 25px;
  font-size: 0.75rem;
  color: var(--text-primary);
  border: 1px solid rgba(74, 103, 65, 0.1);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.feature-tag-enhanced:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Specific feature tag styles */
.feature-tag-enhanced.breath {
  background: linear-gradient(135deg, rgba(135, 206, 235, 0.2), rgba(176, 224, 230, 0.3));
  border-color: rgba(135, 206, 235, 0.3);
}

.feature-tag-enhanced.sensory {
  background: linear-gradient(135deg, rgba(221, 160, 221, 0.2), rgba(230, 184, 230, 0.3));
  border-color: rgba(221, 160, 221, 0.3);
}

.feature-tag-enhanced.body {
  background: linear-gradient(135deg, rgba(244, 164, 96, 0.2), rgba(245, 183, 107, 0.3));
  border-color: rgba(244, 164, 96, 0.3);
}

.feature-tag-enhanced.sound {
  background: linear-gradient(135deg, rgba(152, 251, 152, 0.2), rgba(173, 255, 173, 0.3));
  border-color: rgba(152, 251, 152, 0.3);
}

.feature-tag-enhanced.light {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 223, 64, 0.3));
  border-color: rgba(255, 215, 0, 0.3);
}

.feature-tag-enhanced.movement {
  background: linear-gradient(135deg, rgba(205, 133, 63, 0.2), rgba(212, 149, 79, 0.3));
  border-color: rgba(205, 133, 63, 0.3);
}

.feature-tag-enhanced.emptiness {
  background: linear-gradient(135deg, rgba(119, 136, 153, 0.2), rgba(139, 155, 179, 0.3));
  border-color: rgba(119, 136, 153, 0.3);
}

.feature-tag-enhanced.emotion {
  background: linear-gradient(135deg, rgba(220, 20, 60, 0.2), rgba(224, 56, 86, 0.3));
  border-color: rgba(220, 20, 60, 0.3);
}

.feature-tag-enhanced.witness {
  background: linear-gradient(135deg, rgba(65, 105, 225, 0.2), rgba(91, 124, 230, 0.3));
  border-color: rgba(65, 105, 225, 0.3);
}

.feature-tag-enhanced.union {
  background: linear-gradient(135deg, rgba(147, 112, 219, 0.2), rgba(164, 133, 226, 0.3));
  border-color: rgba(147, 112, 219, 0.3);
}

.feature-tag-enhanced.buddhist {
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.2), rgba(255, 129, 85, 0.3));
  border-color: rgba(255, 107, 53, 0.3);
}

.feature-tag-enhanced.vipassana {
  background: linear-gradient(135deg, rgba(139, 69, 19, 0.2), rgba(160, 86, 43, 0.3));
  border-color: rgba(139, 69, 19, 0.3);
}

/* Progress Indicator */
.category-progress {
  padding: 0.75rem;
  background: rgba(74, 103, 65, 0.05);
  border-radius: var(--border-radius);
  border: 1px solid rgba(74, 103, 65, 0.1);
}

/* Enhanced CTA Button */
.category-cta-btn {
  background: linear-gradient(135deg, var(--primary-color), #5a7751);
  border: none;
  padding: 0.75rem;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.category-cta-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.category-cta-btn:hover::before {
  left: 100%;
}

.category-cta-btn:hover {
  background: linear-gradient(135deg, #3a5233, var(--primary-color));
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(74, 103, 65, 0.3);
}

/* Legacy styles kept for backward compatibility */
.category-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.feature-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  background: var(--bg-light);
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
}

.feather-lg {
  width: 32px;
  height: 32px;
}

.category-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-icon-large {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-quick-link {
  display: block;
  transition: var(--transition);
}

.category-quick-link:hover {
  transform: translateY(-2px);
}

/* Chakra-Inspired Category Cards */
.chakra-category-link {
    display: block;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.chakra-category-card {
    position: relative;
    height: 280px;
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.chakra-category-link:hover .chakra-category-card {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.chakra-category-card.breathing {
    animation: breatheSubtle 5s ease-in-out infinite;
}

.chakra-category-card.breathing .chakra-bg-layer {
    animation: breatheBackground 7s ease-in-out infinite;
}

.chakra-category-card.breathing .chakra-symbol {
    animation: breatheDeep 4s ease-in-out infinite;
}

.chakra-bg-layer {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 30%,
        rgba(156, 39, 176, 0.3) 0%,
        rgba(103, 58, 183, 0.2) 50%,
        transparent 70%);
    opacity: 0.8;
    transition: opacity 0.4s ease;
}

.chakra-category-link:hover .chakra-bg-layer {
    opacity: 1;
}

.chakra-content {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    text-align: center;
    z-index: 2;
}

.chakra-symbol-container {
    position: relative;
    margin-bottom: 1.5rem;
}

.chakra-symbol {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.4s ease;
    box-shadow: 0 8px 32px rgba(156, 39, 176, 0.3);
}

.chakra-category-link:hover .chakra-symbol {
    transform: rotate(360deg) scale(1.1);
    box-shadow: 0 12px 48px rgba(156, 39, 176, 0.5);
}

.chakra-icon {
    width: 36px;
    height: 36px;
    color: #fff;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
}

.chakra-glow {
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(156, 39, 176, 0.4) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    animation: chakraPulse 3s ease-in-out infinite;
}

.chakra-category-link:hover .chakra-glow {
    opacity: 1;
}

@keyframes chakraPulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.2); opacity: 0.7; }
}

.chakra-info {
    color: white;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.chakra-title {
  font-size: 1.35rem;
  font-weight: 900;
  margin-bottom: 0.75rem;
  color: #fff;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.8);
  line-height: 1.2;
  letter-spacing: 0.8px;
  opacity: 1;
}

.chakra-description {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.chakra-count {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.5rem;
}

.count-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.count-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.chakra-hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
        rgba(156, 39, 176, 0.9) 0%,
        rgba(103, 58, 183, 0.9) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 3;
}

.chakra-category-link:hover .chakra-hover-overlay {
    opacity: 1;
}

.chakra-cta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.chakra-cta-text {
    position: relative;
}

.chakra-cta-text::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, white, transparent);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.chakra-category-link:hover .chakra-cta-text::after {
    transform: scaleX(1);
}

.chakra-arrow {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.chakra-category-link:hover .chakra-arrow {
    transform: translateX(5px);
}

/* Responsive Design for Chakra Cards */
@media (max-width: 767.98px) {
    .chakra-category-card {
        height: 240px;
    }

    .chakra-symbol {
        width: 60px;
        height: 60px;
    }

    .chakra-icon {
        width: 28px;
        height: 28px;
    }

    .chakra-title {
        font-size: 1.1rem;
    }

    .count-number {
        font-size: 1.25rem;
    }
}

@media (max-width: 575.98px) {
    .chakra-category-card {
        height: 220px;
    }

    .chakra-content {
        padding: 1.5rem 1rem;
    }

    .chakra-symbol {
        width: 50px;
        height: 50px;
        margin-bottom: 1rem;
    }

    .chakra-icon {
        width: 24px;
        height: 24px;
    }

    .chakra-title {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .chakra-description {
        font-size: 0.8rem;
        margin-bottom: 0.75rem;
    }
}

/* Legacy styles for backward compatibility */
.category-link {
    display: block;
    transition: all 0.3s ease;
}

.category-card {
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.feather-lg {
    width: 28px;
    height: 28px;
}

/* Meditation Cards */
.meditation-card {
  transition: var(--transition);
}

.meditation-card:hover {
  transform: translateY(-3px);
}

.meditation-card.breathing {
  animation: breatheCard 4.5s ease-in-out infinite;
}

.meditation-card.breathing .feather {
  animation: breatheIcon 3.5s ease-in-out infinite;
}

.meditation-preview-card {
  transition: var(--transition);
}

.meditation-preview-card:hover {
  transform: translateY(-2px);
}

.meditation-preview-card.breathing {
  animation: breatheSubtle 5s ease-in-out infinite;
}

.premium-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
}

/* Authentication Pages */
.auth-section {
  background: linear-gradient(135deg, var(--primary-color), var(--sage-green));
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.auth-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: var(--border-radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
}

.auth-logo {
  width: 60px;
  height: 60px;
}

.input-group-text {
  background-color: var(--bg-light);
  border-color: var(--border-light);
}

/* Dashboard */
.welcome-card {
  background: linear-gradient(135deg, var(--primary-color), var(--sage-green));
  color: white;
  padding: 2rem;
  border-radius: var(--border-radius-lg);
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--bg-white);
  padding: 1.5rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

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

.stat-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

/* Profile Page */
.profile-header {
  background: linear-gradient(135deg, var(--primary-color), var(--sage-green));
  color: white;
}

.profile-avatar .avatar-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.achievement-badge {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.achievement-item {
  padding: 0.75rem;
  border-radius: var(--border-radius);
  background: rgba(0, 0, 0, 0.02);
  transition: var(--transition);
}

.achievement-item:hover {
  background: rgba(0, 0, 0, 0.05);
}

/* Subscription Page */
.subscription-page {
  background: var(--bg-light);
}

.subscription-hero {
  background: linear-gradient(135deg, var(--primary-color), var(--sage-green));
  color: white;
}

.pricing-card {
  transition: var(--transition);
}

.pricing-card:hover {
  transform: translateY(-5px);
}

.pricing-card.recommended {
  position: relative;
}

.recommended-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
}

.pricing-amount {
  font-size: 2.5rem;
  font-weight: 700;
}

.comparison-table {
  background: var(--bg-white);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.comparison-table th {
  background: var(--bg-light);
  font-weight: 600;
  padding: 1rem;
}

.comparison-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--border-light);
}

.benefit-card {
  padding: 2rem;
  background: var(--bg-white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

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

.benefit-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.testimonial-card {
  transition: var(--transition);
}

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

.avatar-sm {
  width: 40px;
  height: 40px;
}

/* Meditation Player */
.meditation-player {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  background-attachment: fixed;
}

.meditation-player h1,
.meditation-player h2,
.meditation-player h3,
.meditation-player h4,
.meditation-player h5,
.meditation-player h6 {
  color: #1a0f08 !important;
  font-weight: 900 !important;
  text-shadow: 0 2px 4px rgba(255, 255, 255, 0.8) !important;
  opacity: 1 !important;
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
}

.meditation-player .lead,
.meditation-player p,
.meditation-player .text-white-75 {
  color: #2d1b0f !important;
  font-weight: 700 !important;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.6) !important;
  opacity: 1 !important;
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
}

.player-controls {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.progress-circle {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: conic-gradient(var(--success-color) 0deg, var(--success-color) 0deg, rgba(255,255,255,0.2) 0deg);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: var(--transition);
}

.progress-circle.breathing {
  animation: breatheDeep 4s ease-in-out infinite;
}

.progress-circle.breathing::before {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(40, 167, 69, 0.3) 0%, transparent 70%);
  animation: breatheGlow 4s ease-in-out infinite;
  z-index: -1;
}

.progress-inner {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.soundscape-controls {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.soundscape-controls select {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
}

.voice-controls {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 15px;
    margin-top: 10px;
}

.form-check-input:checked {
    background-color: #28a745;
    border-color: #28a745;
}

.form-range::-webkit-slider-thumb {
    background: #28a745;
}

.form-range::-moz-range-thumb {
    background: #28a745;
}

.voice-guidance-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(40, 167, 69, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    animation: pulse 2s infinite;
}

/* Audio Recording */
.recording-interface {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  background-attachment: fixed;
}

.record-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Responsive Utilities */
.feather-sm {
  width: 16px;
  height: 16px;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* Choose Your Path Styles */
.path-card {
  cursor: pointer;
  transition: all 0.4s ease;
  overflow: hidden;
}

.path-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2) !important;
}

.path-header {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.path-bg-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.path-card:hover .path-bg-image {
  transform: scale(1.1);
}

.path-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.3) 100%);
}

.path-icon {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 3;
}

.path-title {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  z-index: 3;
}

.path-title h3 {
  margin-bottom: 5px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.path-title p {
  margin-bottom: 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.path-description {
  line-height: 1.6;
}

.feature-list {
  background: rgba(108, 117, 125, 0.1);
  border-radius: 8px;
  padding: 15px;
}

.feature-item {
  display: flex;
  align-items-center;
  font-size: 0.9rem;
}

.badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.path-select-btn {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.path-select-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.feather-xl {
  width: 32px;
  height: 32px;
}

/* Breathing Animations */
@keyframes breathe {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.08);
    opacity: 0.85;
  }
}

@keyframes breatheGlow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.6);
  }
}

@keyframes breatheDeep {
  0%, 100% {
    transform: scale(1) rotate(0deg);
    opacity: 0.8;
  }
  25% {
    transform: scale(1.06) rotate(1deg);
    opacity: 0.9;
  }
  50% {
    transform: scale(1.12) rotate(0deg);
    opacity: 1;
  }
  75% {
    transform: scale(1.06) rotate(-1deg);
    opacity: 0.9;
  }
}

@keyframes breatheSubtle {
  0%, 100% {
    transform: scale(1);
    filter: brightness(1);
  }
  50% {
    transform: scale(1.03);
    filter: brightness(1.1);
  }
}

@keyframes breatheCard {
  0%, 100% {
    transform: translateY(0) scale(1);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  }
  50% {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.25);
  }
}

@keyframes breatheIcon {
  0%, 100% {
    transform: scale(1) rotate(0deg);
    filter: brightness(1);
  }
  50% {
    transform: scale(1.15) rotate(5deg);
    filter: brightness(1.3);
  }
}

@keyframes breatheBackground {
  0%, 100% {
    background-size: 100% 100%;
    filter: brightness(1) saturate(1);
  }
  50% {
    background-size: 110% 110%;
    filter: brightness(1.1) saturate(1.2);
  }
}

/* Breathing Animation Classes */
.breathe {
  animation: breathe 4s ease-in-out infinite;
}

.breathe-glow {
  animation: breatheGlow 4s ease-in-out infinite;
}

.breathe-deep {
  animation: breatheDeep 6s ease-in-out infinite;
}

.breathe-subtle {
  animation: breatheSubtle 5s ease-in-out infinite;
}

.breathe-card {
  animation: breatheCard 4.5s ease-in-out infinite;
}

.breathe-icon {
  animation: breatheIcon 3s ease-in-out infinite;
}

.breathe-background {
  animation: breatheBackground 8s ease-in-out infinite;
}

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

.slide-in-up {
  animation: slideInUp 0.6s ease-out;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Playable Session Cards */
.session-card {
    transition: all 0.3s ease !important;
    position: relative;
    overflow: hidden;
}

.session-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
}

.session-card:hover .play-button-overlay {
    opacity: 1 !important;
    transform: scale(1.1) !important;
}

.play-button-overlay {
    transition: all 0.3s ease;
    opacity: 0.8;
    transform: scale(1);
}

.session-card:hover {
    border-color: currentColor !important;
}

.stat-small {
    text-align: center;
}

.stat-small .h6 {
    font-weight: 600;
    margin-bottom: 2px;
}

.meditation-icon {
    transition: transform 0.3s ease;
}

.session-card:hover .meditation-icon {
    transform: scale(1.05);
}

/* Focus States */
.btn:focus,
.form-control:focus,
.form-select:focus {
  box-shadow: 0 0 0 0.2rem rgba(74, 103, 65, 0.25);
}

/* Loading States */
.loading {
  position: relative;
  pointer-events: none;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid transparent;
  border-top: 2px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Error States */
.error {
  border-color: var(--danger-color) !important;
}

.error-message {
  color: var(--danger-color);
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

/* Mobile Navigation Improvements */
.navbar-toggler {
  border: none !important;
  padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
  box-shadow: none !important;
}

.navbar-toggler-icon {
  width: 1.2em;
  height: 1.2em;
}

.dropdown-menu-end {
  --bs-position: end;
}

/* Mobile specific dropdown fixes */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
    margin-top: 0.5rem;
    padding: 1rem;
  }
  
  .dropdown-menu {
    border: none;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
  }
  
  .dropdown-item {
    color: rgba(255, 255, 255, 0.9) !important;
    padding: 0.5rem 1rem;
  }
  
  .dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white !important;
  }
  
  .dropdown-divider {
    border-color: rgba(255, 255, 255, 0.2);
  }
}

/* Media Queries */
@media (max-width: 768px) {
  .hero-section {
    text-align: center;
  }

  .hero-section h1 {
    font-size: 2.5rem;
  }

  .feature-card,
  .benefit-card {
    padding: 1.5rem;
  }

  .auth-card {
    padding: 2rem;
  }

  .stat-card {
    text-align: center;
    margin-bottom: 1rem;
  }

  .progress-circle {
    width: 150px;
    height: 150px;
  }

  .progress-inner {
    width: 130px;
    height: 130px;
  }
}

@media (max-width: 576px) {
  body {
    padding-top: 70px;
  }

  .hero-section h1 {
    font-size: 2rem;
  }

  .feature-icon,
  .benefit-icon {
    width: 60px;
    height: 60px;
  }

  .feature-icon i,
  .benefit-icon i {
    width: 30px;
    height: 30px;
  }

  .auth-card {
    padding: 1.5rem;
    margin: 1rem;
  }

  .record-card,
  .player-controls {
    padding: 1.5rem;
  }
}

/* Dark Mode Support (Future Enhancement) */
@media (prefers-color-scheme: dark) {
  /* Dark mode styles would go here */
}

/* Print Styles */
@media print {
  .navbar,
  .btn,
  .record-card,
  .player-controls {
    display: none !important;
  }

  body {
    background: white !important;
    color: black !important;
    padding-top: 0 !important;
  }

  .card {
    box-shadow: none !important;
    border: 1px solid #ddd !important;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  .btn {
    border-width: 2px;
  }

  .card {
    border: 1px solid var(--text-primary);
  }

  .form-control,
  .form-select {
    border-width: 2px;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  /* Disable breathing animations for users who prefer reduced motion */
  .breathe,
  .breathe-glow,
  .breathe-deep,
  .breathe-subtle,
  .breathe-card,
  .breathe-icon,
  .breathe-background,
  .breathing {
    animation: none !important;
  }
}