/**
 * Aham Mystica - Guided Meditations CSS
 * Styles for the Guided Meditations page
 */

/* Import main styles for variables */
@import url("mainstyle.css");
/* Import Font Awesome for meditation player icons */
@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css");

:root {
  --meditation-bg: #270620;
  --meditation-text: #cacaca;
  --meditation-accent: #6c5ce7;
  --meditation-premium: #8c7ae6;
  --meditation-paid: #3498db;
  --meditation-free: #2ecc71;
  --meditation-card-bg: #ffffff; /* White card background */
  --meditation-card-text: #333; /* Dark text for cards */
  --meditation-card-shadow: rgba(0, 0, 0, 0.1); /* Card shadow */
  --meditation-card-hover: rgba(108, 92, 231, 0.1); /* Card hover effect */
  --secondary-color: #f5c561; /* Gold accent color */
  --primary-color: #270620; /* Primary dark purple */
  --primary-dark: #333; /* Dark text */
  --primary-color-rgb: 39, 6, 32; /* RGB version of primary */
  --meditation-shadow: rgba(0, 0, 0, 0.2); /* Shadow color */
  --meditation-button-bg: var(--secondary-color); /* Gold button background */
  --meditation-button-text: var(--primary-color); /* Purple button text */
  --meditation-clear-bg: #ffffff; /* White clear button background */
  --meditation-clear-text: var(--primary-color); /* Purple clear button text */
  --light-bg: #f8f4ff; /* Light background for guidelines */
}

/* Page background */
body {
  background-color: var(--meditation-bg);
  color: var(--meditation-text);
}

/* Header styling */
#meditations-header {
  color: var(--meditation-text);
}

.meditation-title {
  color: var(--secondary-color);
  font-family: "Playfair Display", serif;
  font-style: italic;
  text-transform: uppercase;
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

/* Main content section */
#meditations-content {
  color: var(--meditation-text);
}

/* Search and filter controls */
.search-container {
  margin-bottom: 2rem;
}

.meditation-search {
  padding: 0.75rem 1.25rem;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background-color: rgba(255, 255, 255, 0.9);
  color: var(--primary-dark);
}

.meditation-search:focus {
  box-shadow: 0 0 0 0.25rem rgba(217, 200, 163, 0.25);
  border-color: var(--meditation-accent);
}

.custom-btn {
  border-radius: 30px;
  padding: 0.5rem 1.5rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.purchases-btn {
  background-color: var(--meditation-button-bg);
  color: var(--meditation-button-text);
  border: none;
}

.purchases-btn:hover {
  background-color: #c9b88f;
  color: var(--meditation-button-text);
}

.clear-btn {
  background-color: var(--meditation-clear-bg);
  color: var(--meditation-clear-text);
  border: 1px solid var(--meditation-clear-bg);
  margin-left: 0.5rem;
}

.clear-btn:hover {
  background-color: rgba(255, 255, 255, 0.9);
  color: var(--meditation-button-text);
}

.filter-select {
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 30px;
  padding: 0.5rem 1.5rem;
  margin-left: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--meditation-card-text);
  min-width: 120px;
}

.filter-select:focus {
  box-shadow: 0 0 0 0.25rem rgba(217, 200, 163, 0.25);
  border-color: var(--meditation-accent);
}

/* Meditation row layout */
.meditation-row {
  display: flex;
  flex-wrap: wrap;
  margin: -10px;
  justify-content: center;
  padding: 0 5px; /* Ensure no overflow on small screens */
}

/* Meditation cards - all with white background */
.meditation-card {
  flex: 0 0 calc(33.333% - 20px);
  margin: 10px;
  background-color: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  border: none;
  height: auto;
  min-height: 400px;
}

/* Card hover effects - maintain white background */
.meditation-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  background-color: #ffffff !important;
}

.meditation-card:hover .meditation-title {
  color: #000000;
}

.meditation-card:hover .meditation-description {
  color: #444444;
}

/* Premium meditation with colored border only */
.premium-meditation {
  border: 1px solid var(--meditation-premium);
  background-color: #ffffff !important;
}

/* Paid meditation with colored border only */
.paid-meditation {
  border: 1px solid var(--meditation-paid);
  background-color: #ffffff !important;
}

/* Free meditation with colored border only */
.free-meditation {
  border: 1px solid var(--meditation-free);
  background-color: #ffffff !important;
}

/* Meditation image */
.meditation-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

/* Meditation content area with 2px padding */
.meditation-content {
  padding: 15px;
  flex: 1;
  display: flex;
  flex-direction: column;
  background-color: #ffffff;
}

/* Meditation description - ensure dark text */
.meditation-description {
  color: #555555 !important;
  font-size: 0.85rem;
  margin-bottom: 15px;
  flex: 1;
  line-height: 1.4;
  padding: 0 15px;
}

/* Metadata with proper padding */
.meditation-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  padding: 0 15px;
}

/* Duration display - ensure dark text */
.meditation-duration {
  display: flex;
  align-items: center;
  color: #555555 !important;
  font-size: 0.8rem;
}

.meditation-duration i {
  margin-right: 5px;
  font-size: 0.75rem;
}

/* Category display - dark text on light background */
.meditation-category {
  background-color: #f8f9fa;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 0.7rem;
  color: #333333;
}

/* Play button container with proper padding */
.meditation-actions {
  padding: 0 15px 15px;
  background-color: #ffffff;
  width: 100%;
}

/* Play button styles */
.play-btn {
  display: inline-block;
  padding: 8px 12px;
  background-color: var(--meditation-accent);
  color: white;
  border-radius: 5px;
  font-size: 0.85rem;
  border: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
  width: 100%;
  text-align: center;
  margin-bottom: 10px;
  white-space: normal; /* Allow text to wrap if needed */
  line-height: 1.2;
  max-width: 100%;
  overflow: visible;
}

.play-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Premium meditation button */
.premium-meditation .play-btn {
  background-color: var(--meditation-premium);
}

.premium-meditation .play-btn:hover {
  background-color: #7c6ad6;
}

/* Paid meditation button */
.paid-meditation .play-btn {
  background-color: var(--meditation-paid);
}

.paid-meditation .play-btn:hover {
  background-color: #2980b9;
}

/* Free meditation button */
.free-meditation .play-btn {
  background-color: var(--meditation-free);
}

.free-meditation .play-btn:hover {
  background-color: #27ae60;
}

/* Price badges */
.meditation-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  color: white;
  z-index: 2;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.premium-badge {
  background-color: var(--meditation-premium);
  color: white;
}

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

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

.premium-icon {
  display: inline-block;
  margin-right: 3px;
  font-weight: bold;
  font-size: 0.75rem;
  color: #ffd700;
}

/* Breadcrumbs */
.breadcrumbs {
  background-color: #ffffff;
  padding: 1rem 0;
  margin-bottom: 2rem;
  border-bottom: 1px solid #e9ecef;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.breadcrumb {
  margin: 0;
  background: transparent;
  padding: 0;
  display: flex;
  align-items: center;
}

.breadcrumb-item {
  color: #270620;
  font-size: 0.95rem;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: ">";
  color: #6c757d;
}

.breadcrumb-item a {
  color: #270620;
  text-decoration: none;
  font-weight: 500;
}

.breadcrumb-item a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

.breadcrumb-item.active {
  color: #6c757d;
  font-weight: normal;
}

/* Responsive adjustments for better display on different devices */
@media (max-width: 991px) {
  .meditation-card {
    flex: 0 0 calc(50% - 20px);
    min-height: 380px;
  }
}

@media (max-width: 767px) {
  .meditation-card {
    flex: 0 0 calc(100% - 20px);
    min-height: 0;
    margin-bottom: 20px;
  }

  .meditation-content {
    padding: 12px;
  }

  .meditation-description {
    font-size: 0.8rem;
    margin-bottom: 10px;
  }

  .meditation-actions {
    padding: 0 12px 12px;
  }

  .play-btn {
    font-size: 0.75rem;
    padding: 6px 8px;
    width: 100%;
    min-width: unset;
  }

  .meditation-badge {
    padding: 4px 8px;
    font-size: 0.7rem;
  }

  .meditation-meta {
    margin-bottom: 15px;
  }

  .meditation-image {
    height: 180px;
  }

  /* Adjust meditation row spacing on mobile */
  .meditation-row {
    display: block;
    margin: 0;
    padding: 0 8px;
  }

  .meditation-card {
    margin: 8px;
    flex: 0 0 calc(100% - 16px);
    min-height: unset;
    max-height: none;
  }
}

.meditation-filters {
  margin-bottom: 25px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.filter-btn {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background-color: var(--meditation-accent);
  color: white;
}

/* Payment Modal Styles */
.payment-modal-meditation-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 5px;
}

.payment-modal-meditation-price {
  color: var(--meditation-accent);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 15px;
}

/* DEPRECATED: Meditation player modal styles - now using dedicated player page */
#meditation-player {
  display: none; /* Keep this to ensure any remaining references don't show the player */
}

.meditation-player {
  display: none; /* Keep this to ensure any remaining references don't show the player */
}

/* Player header */
.player-header {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-bottom: 1rem;
}

.player-compact {
  background: #fff;
  border-radius: 8px;
  padding: 0.75rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.player-flex-container {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.player-image-wrapper {
  width: 100px;
  height: 100px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.player-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.player-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.player-title {
  font-size: 1.1rem;
  color: var(--primary-color);
  margin-bottom: 0.25rem;
  line-height: 1.2;
  font-weight: 600;
}

.player-description {
  color: var(--text-color);
  margin-bottom: 0.5rem;
  line-height: 1.4;
  flex-grow: 1;
  font-size: 0.9rem;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.back-btn {
  background: transparent;
  border: none;
  color: var(--primary-color);
  padding: 0.5rem;
  border-radius: 5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: background 0.3s ease;
  font-weight: 500;
  font-size: 0.9rem;
}

.back-btn:hover {
  background: rgba(0, 0, 0, 0.05);
}

/* Recommendations section */
.meditation-recommendations {
  margin: 3rem 0;
  padding: 1.5rem;
  background: #f8f4ff;
  border-radius: 10px;
  border: 1px solid #e0d8e8;
}

.meditation-recommendations h3 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  text-align: center;
}

.recommendation-card {
  background: white;
  border: 1px solid #eee;
}

.recommendation-card .meditation-image {
  height: 150px;
}

.recommendation-card .meditation-card-title {
  font-size: 1rem;
}

.recommendation-card:hover {
  transform: translateY(-3px);
  border-color: #512e5f;
}

/* Loading indicators */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.loading-overlay.active {
  opacity: 1;
  visibility: visible;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid #f3f3f3;
  border-top: 5px solid #512e5f;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
  .player-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .player-flex-container {
    flex-direction: row;
    gap: 0.75rem;
  }

  .player-image-wrapper {
    width: 80px;
    height: 80px;
  }

  .player-title {
    font-size: 1rem;
  }

  .player-description {
    font-size: 0.8rem;
  }

  .share-controls h5 {
    font-size: 0.75rem;
  }

  .share-btn {
    width: 28px;
    height: 28px;
    font-size: 0.8rem;
  }

  .controls-row {
    flex-direction: row;
    gap: 0.5rem;
  }

  .play-pause {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .audio-controls {
    padding: 0.5rem;
  }

  .player-guidelines {
    padding: 0.5rem;
    font-size: 0.8rem;
  }

  .player-guidelines h4 {
    font-size: 0.85rem;
  }
}

/* Extra small screens */
@media (max-width: 576px) {
  .player-flex-container {
    flex-direction: column;
    align-items: center;
  }

  .player-image-wrapper {
    width: 120px;
    height: 120px;
    margin-bottom: 0.5rem;
  }

  .player-info {
    text-align: center;
  }

  .share-controls {
    justify-content: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .time-display {
    font-size: 0.7rem;
  }
}

/* Paid content style */
.paid-badge {
  display: inline-block;
  background-color: #6c5ce7;
  color: white;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  border-radius: 0.25rem;
  margin-left: 0.5rem;
  vertical-align: middle;
}

.premium-badge i {
  font-size: 1rem;
}

.paid-icon {
  margin-left: 0.5rem;
  color: #6c5ce7;
  font-size: 0.9rem;
}

/* Centering style for meditation steps */
.meditation-steps {
  text-align: center;
  margin: 2rem 0;
}

.meditation-steps .step {
  margin-bottom: 1.5rem;
  position: relative;
}

.meditation-steps .step-number {
  display: inline-block;
  width: 35px;
  height: 35px;
  background: #512e5f;
  color: white;
  border-radius: 50%;
  line-height: 35px;
  text-align: center;
  margin-bottom: 0.5rem;
  font-weight: bold;
}

.meditation-steps .step-title {
  font-size: 1.2rem;
  color: #512e5f;
  margin-bottom: 0.5rem;
}

/* Main page styles */
.meditations-container {
  padding: 2rem 0;
}

.page-title {
  text-align: center;
  margin-bottom: 2rem;
  color: #512e5f;
}

.search-bar-wrapper {
  margin-bottom: 2rem;
}

.filters-group {
  display: flex;
  align-items: center;
  gap: 1rem;
}

@media (max-width: 768px) {
  .filters-group {
    flex-direction: column;
    align-items: stretch;
  }
}

.player-guidelines {
  background: var(--light-bg);
  padding: 0.75rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  border-left: 3px solid var(--primary-color);
  font-size: 0.85rem;
}

.player-guidelines h4 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.player-guidelines p {
  margin-bottom: 0.25rem;
  color: var(--text-color);
  line-height: 1.4;
}

/* Audio controls - Spotify style */
.audio-controls {
  background: #f8f9fa;
  padding: 0.75rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  position: sticky;
  bottom: 0;
  z-index: 10;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

/* Ready state indicator - subtle pulse */
.audio-controls.ready .play-pause {
  animation: subtle-pulse 2s infinite;
}

@keyframes subtle-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(var(--primary-color-rgb), 0.3);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(var(--primary-color-rgb), 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(var(--primary-color-rgb), 0);
  }
}

/* Playing state styles */
.audio-controls.playing {
  background: linear-gradient(
    to right,
    rgba(var(--primary-color-rgb), 0.05),
    rgba(var(--primary-color-rgb), 0.1)
  );
}

.audio-controls.playing .seek-wrapper {
  background: rgba(var(--primary-color-rgb), 0.2);
}

.audio-controls.playing .play-pause {
  background: var(--primary-color);
}

.controls-row {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
  justify-content: center;
}

.play-pause {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  margin: 0 0.75rem;
  transition: background 0.3s ease, transform 0.2s ease;
  flex-shrink: 0;
}

.play-pause:hover {
  background: var(--primary-light);
  transform: scale(1.05);
}

.time-display {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #666;
  width: 100%;
  font-size: 0.8rem;
  margin-top: 0.25rem;
}

.play-instruction {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 0.8rem;
  animation: fade-pulse 1.5s ease-in-out infinite;
  display: block;
  width: 100%;
  text-align: center;
}

@keyframes fade-pulse {
  0%,
  100% {
    opacity: 0.8;
  }
  50% {
    opacity: 0.5;
  }
}

.seek-wrapper {
  flex: 1;
  padding: 0 0.5rem;
  height: 4px;
  display: flex;
  align-items: center;
  background: #e0e0e0;
  border-radius: 4px;
  border: none;
}

.seek-slider {
  width: 100%;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: linear-gradient(
    to right,
    var(--primary-color) 0%,
    var(--primary-color) var(--progress-percent, 0%),
    #e0e0e0 var(--progress-percent, 0%),
    #e0e0e0 100%
  );
  outline: none;
  border-radius: 4px;
  margin: 0;
  padding: 0;
}

.seek-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary-color);
  cursor: pointer;
}

.seek-slider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary-color);
  cursor: pointer;
  border: none;
}

.seek-slider::-webkit-slider-runnable-track {
  height: 4px;
  background: #e0e0e0;
  border-radius: 4px;
}

.seek-slider::-moz-range-track {
  height: 4px;
  background: #e0e0e0;
  border-radius: 4px;
}

.mute-btn {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--primary-color);
  padding: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.meditation-player {
  transition: opacity 0.3s ease, transform 0.3s ease;
  transform-origin: top center;
}

/* Paid meditation card styling */
.paid-meditation {
  border: 2px solid var(--meditation-paid);
  position: relative;
  background: linear-gradient(to bottom, rgba(52, 152, 219, 0.1), transparent);
}

.paid-meditation::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 30px;
  height: 30px;
  background-color: var(--meditation-paid);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
  z-index: 1;
}

.premium-icon {
  color: var(--meditation-premium);
  font-size: 0.8em;
  margin-left: 0.5rem;
  vertical-align: middle;
}

.paid-meditation .meditation-card-title {
  color: var(--meditation-paid);
  font-weight: 600;
}

.premium-meditation .badge.bg-primary {
  background-color: var(--meditation-premium) !important;
  color: var(--primary-dark);
  font-weight: bold;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Price display styling in player */
.price-display {
  background-color: var(--meditation-accent);
  color: var(--primary-dark);
  font-size: 0.9rem;
  font-weight: bold;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  display: inline-block;
  margin-left: 0.5rem;
  vertical-align: middle;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Adjust premium badge in player title */
.player-title .paid-badge {
  margin-left: 1rem;
  padding: 0.3rem 0.7rem;
  border-radius: 1rem;
  vertical-align: middle;
  font-size: 0.9rem;
  background-color: var(--meditation-paid);
  color: white;
}

/* Badge styles for different price types */
.badge.bg-success {
  background-color: var(--meditation-free) !important;
  color: white;
}

.badge.bg-primary {
  background-color: var(--meditation-premium) !important;
  color: var(--primary-dark);
  font-weight: bold;
}

.badge.bg-info {
  background-color: var(--meditation-paid) !important;
  color: white;
}

.badge.bg-secondary {
  background-color: #6c757d !important;
  color: white;
}

/* Payment Modal Styles */
.modal-content {
  background-color: var(--meditation-card-bg);
  border-radius: 15px;
}

.modal-header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  background-color: var(--primary-light);
}

.modal-footer {
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.meditation-purchase-info {
  text-align: center;
  padding: 20px;
}

.meditation-purchase-info h6 {
  font-size: 1.2rem;
  color: var(--primary-dark);
}

.meditation-purchase-info p {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--meditation-accent);
}

#payment-error {
  font-size: 0.9rem;
}

#payment-success {
  font-size: 0.9rem;
}

#payment-processing .spinner {
  width: 50px;
  height: 50px;
  border-width: 4px;
  margin: 0 auto;
}

#payment-complete {
  color: var(--primary-dark);
}

/* Terms Modal */
#termsModal ol {
  padding-left: 1.5rem;
}

#termsModal li {
  margin-bottom: 0.5rem;
}

/* My Meditations Section */
.meditations-section {
  margin-bottom: 2rem;
}

.section-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.back-to-all {
  margin-bottom: 1rem;
}

/* Purchased Meditation Styles */
.meditation-card.purchased {
  border-color: var(--primary-color);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.price-badge.purchased {
  background-color: var(--primary-color);
}

.price-badge.free {
  background-color: #28a745;
}

.purchase-info {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: #6c757d;
}

/* Loading Spinner */
.loading-spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  text-align: center;
}

.loading-spinner .spinner-border {
  width: 3rem;
  height: 3rem;
  margin-bottom: 1rem;
}

/* Modal Styles */
.modal-content {
  border-radius: 12px;
  border: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.modal-header,
.modal-footer {
  border-color: rgba(0, 0, 0, 0.05);
  background-color: rgba(0, 0, 0, 0.01);
}

.meditation-purchase-info {
  background-color: rgba(0, 0, 0, 0.02);
  padding: 15px;
  border-radius: 8px;
  text-align: center;
  margin-bottom: 20px;
}

.meditation-purchase-info h4 {
  font-size: 1.2rem;
  margin-bottom: 5px;
}

.meditation-purchase-info p {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 0;
}

.payment-error,
.payment-success {
  padding: 10px;
  border-radius: 5px;
  margin: 10px 0;
}

.payment-error {
  background-color: rgba(220, 53, 69, 0.1);
  color: #dc3545;
}

.payment-success {
  background-color: rgba(40, 167, 69, 0.1);
  color: #28a745;
}

.payment-processing .spinner-border {
  margin-right: 10px;
}

/* Terms Modal */
.terms-modal .modal-body {
  max-height: 400px;
  overflow-y: auto;
}

.terms-modal ol {
  padding-left: 20px;
}

.terms-modal li {
  margin-bottom: 10px;
}

/* No Results */
.no-results {
  text-align: center;
  padding: 3rem 1rem;
  background-color: rgba(0, 0, 0, 0.02);
  border-radius: 8px;
  margin: 1rem 0;
}

.no-results p {
  margin-bottom: 1rem;
}

/* Meditation Player Page Styles */
.meditation-player-page {
  padding-top: 2rem;
  padding-bottom: 3rem;
}

.player-container {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  margin-bottom: 2rem;
}

.player-image-container {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
}

.player-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.player-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
}

.paid-badge {
  background-color: #6c5ce7;
  color: white;
}

.player-info {
  padding: 1.5rem;
  border-bottom: 1px solid #eee;
}

.player-description {
  font-size: 1rem;
  color: #666;
  margin-bottom: 1rem;
}

.player-meta {
  display: flex;
  gap: 1.5rem;
  color: #777;
  font-size: 0.9rem;
}

.player-duration,
.player-category {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.audio-player {
  padding: 1.5rem;
}

.player-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}

.progress-container {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.progress {
  flex: 1;
  height: 6px;
}

#current-time,
#duration {
  font-size: 0.8rem;
  color: #777;
  width: 40px;
}

.purchase-container {
  padding: 2rem;
  text-align: center;
}

.purchase-container h3 {
  margin-bottom: 1rem;
  color: #333;
}

.purchase-container .price {
  font-size: 2rem;
  font-weight: 700;
  color: #6c5ce7;
  margin-bottom: 1.5rem;
}

/* Recommendations Styles */
.recommendations-container {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
}

.recommendations-container h3 {
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  color: #333;
}

.recommendation-item {
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #eee;
  padding-bottom: 1.5rem;
}

.recommendation-item:last-child {
  margin-bottom: 0;
  border-bottom: none;
  padding-bottom: 0;
}

.recommendation-link {
  display: flex;
  gap: 1rem;
  text-decoration: none;
  color: inherit;
}

.recommendation-image {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 5px;
  overflow: hidden;
  flex-shrink: 0;
}

.recommendation-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.recommendation-badge {
  position: absolute;
  top: 5px;
  right: 5px;
  padding: 2px 6px;
  border-radius: 10px;
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
}

.recommendation-info {
  flex: 1;
}

.recommendation-title {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: #333;
}

.recommendation-meta {
  display: flex;
  gap: 1rem;
  color: #777;
  font-size: 0.8rem;
}

.recommendation-duration {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .player-image-container {
    height: 200px;
  }

  .player-controls {
    flex-direction: column;
    gap: 1rem;
  }

  .progress-container {
    width: 100%;
  }
}

/* Existing Meditation Card Styles */
.meditation-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

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

.meditation-image-container {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.meditation-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.meditation-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  color: white;
  z-index: 2;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.free-badge {
  background-color: #2ecc71;
  color: white;
}

.paid-badge {
  background-color: #6c5ce7;
  color: white;
}

.meditation-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.meditation-description {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 1rem;
  flex: 1;
}

.meditation-meta {
  display: flex;
  justify-content: space-between;
  color: #777;
  font-size: 0.8rem;
  margin-top: auto;
}

.meditation-duration,
.meditation-category {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.meditation-price {
  font-weight: 700;
  color: #6c5ce7;
  font-size: 1.1rem;
  margin-top: 1rem;
}

.meditation-button {
  margin-top: 1rem;
  width: 100%;
}

/* Premium meditation styling */
.premium-meditation {
  border: 1px solid var(--meditation-premium);
  background: linear-gradient(to bottom, rgba(140, 122, 230, 0.1), transparent);
}

/* Paid meditation styling */
.paid-meditation {
  border: 1px solid var(--meditation-paid);
  background: linear-gradient(to bottom, rgba(52, 152, 219, 0.1), transparent);
}

/* Styling for premium meditation badge */
.premium-meditation::before {
  content: "Premium";
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: var(--meditation-premium);
  color: white;
  padding: 3px 8px;
  font-size: 0.75rem;
  border-radius: 12px;
  z-index: 1;
}

/* Premium icon styling */
.premium-icon {
  color: var(--meditation-premium);
  margin-left: 5px;
  font-size: 0.9rem;
}

/* Special styling for premium meditation titles */
.premium-meditation .meditation-card-title {
  color: var(--meditation-premium);
}

/* Badge styles */
.badge.bg-primary {
  background-color: var(--meditation-premium) !important;
  color: rgb(255, 255, 255);
}

.badge.bg-info {
  background-color: var(--meditation-accent) !important;
  color: white;
}

/* Play button styling */
.meditation-actions {
  margin-top: 10px;
  text-align: center;
  padding-bottom: 10px;
}

.play-btn {
  width: 50%;
  border-radius: 20px;
  transition: all 0.3s ease;
  background-color: var(--meditation-accent);
  border-color: var(--meditation-accent);
}

.play-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Card hover effects - keep text dark */
.meditation-card:hover .meditation-title {
  color: #000000;
}

.meditation-card:hover .meditation-description {
  color: #444444;
}

/* Audio player styles */
.audio-player {
  margin-top: 20px;
  width: 100%;
  padding: 20px;
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.player-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

/* Play/Pause button with visible white triangle */
#play-pause-btn,
#play-pause-btn-paid {
  width: 50px;
  height: 50px;
  min-width: 50px;
  border-radius: 50%;
  background-color: #6c5ce7;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  position: relative;
  outline: none;
}

/* Make the triangle play icon more visible */
#play-pause-btn::before,
#play-pause-btn-paid::before {
  content: "";
  display: block;
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 16px solid white;
  margin-left: 4px; /* Offset slightly to center visually */
}

/* Hide the default icon when using custom triangle */
#play-pause-btn .fas.fa-play,
#play-pause-btn-paid .fas.fa-play {
  display: none;
}

/* Pause icon - show two white bars */
#play-pause-btn.playing::before,
#play-pause-btn-paid.playing::before {
  content: "";
  display: block;
  width: 5px;
  height: 18px;
  background-color: white;
  margin-right: 5px;
  margin-left: 0;
  border: none;
}

#play-pause-btn.playing::after,
#play-pause-btn-paid.playing::after {
  content: "";
  display: block;
  width: 5px;
  height: 18px;
  background-color: white;
  border: none;
}

/* Hide the default pause icon too */
#play-pause-btn .fas.fa-pause,
#play-pause-btn-paid .fas.fa-pause {
  display: none;
}

#play-pause-btn:hover,
#play-pause-btn-paid:hover {
  background-color: #5549d9;
  transform: scale(1.05);
}

/* Seek bar styles */
.progress {
  flex: 1;
  height: 6px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  position: relative;
  overflow: visible;
  cursor: pointer;
}

.progress-bar {
  height: 100%;
  background-color: #6c5ce7;
  border-radius: 3px;
  position: relative;
}

/* The dot on the progress bar */
.progress-bar::after {
  content: "";
  position: absolute;
  right: -5px;
  top: -4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: white;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
}

/* Time display */
.time-display {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  min-width: 40px;
  text-align: center;
  font-family: monospace;
}

/* Mute button */
#mute-btn,
#mute-btn-paid {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  font-size: 0.9rem;
}

#mute-btn:hover,
#mute-btn-paid:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

/* Remove share button */
.share-btn,
.share-controls,
.share-buttons {
  display: block !important;
}

.share-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.share-btn.facebook {
  background-color: #3b5998;
}

.share-btn.twitter {
  background-color: #1da1f2;
}

.share-btn.whatsapp {
  background-color: #25d366;
}

.share-btn.copy {
  background-color: #6c757d;
}

/* Share container with table layout */
.share-container {
  padding: 15px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  width: 100%;
}

.share-container h5 {
  font-size: 1.1rem;
  color: var(--meditation-text);
  margin-bottom: 15px;
}

.share-table {
  border-collapse: separate;
  border-spacing: 10px 0;
  margin: 0 auto;
}

.share-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  color: white;
  border: none;
  display: inline-block;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 1.2rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  padding: 0;
}

.share-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.share-btn.facebook {
  background-color: #3b5998;
}

.share-btn.twitter {
  background-color: #1da1f2;
}

.share-btn.whatsapp {
  background-color: #25d366;
}

.share-btn.copy {
  background-color: #6c757d;
}

/* Responsive adjustments */
@media (max-width: 576px) {
  .share-btn {
    width: 45px;
    height: 45px;
    font-size: 1rem;
  }

  .share-table {
    border-spacing: 5px 0;
  }
}

/* Check Purchases Modal Styles */
#check-purchases-modal .modal-content {
  background-color: var(--meditation-card-bg);
  border-radius: 15px;
}

#check-purchases-modal .modal-header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  background-color: var(--primary-light);
}

#check-purchases-modal .modal-footer {
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

#check-purchases-modal .form-control {
  border-radius: 30px;
  padding: 0.75rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background-color: rgba(255, 255, 255, 0.9);
}

#check-purchases-modal .form-control:focus {
  box-shadow: 0 0 0 0.25rem rgba(217, 200, 163, 0.25);
  border-color: var(--meditation-accent);
}

#check-purchases-modal .list-group-item {
  background-color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.05);
  margin-bottom: 0.5rem;
  border-radius: 10px;
  transition: all 0.3s ease;
}

#check-purchases-modal .list-group-item:hover {
  background-color: rgba(255, 255, 255, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#check-purchases-modal .play-meditation {
  border-radius: 20px;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  background-color: var(--meditation-accent);
  border: none;
  transition: all 0.3s ease;
}

#check-purchases-modal .play-meditation:hover {
  background-color: var(--meditation-accent-dark);
  transform: translateY(-1px);
}

#check-purchases-modal .spinner {
  width: 40px;
  height: 40px;
  border-width: 3px;
  margin: 0 auto;
}

#check-purchases-modal .alert {
  border-radius: 10px;
  margin-bottom: 1rem;
}

#check-purchases-modal .alert-success {
  background-color: rgba(40, 167, 69, 0.1);
  border-color: rgba(40, 167, 69, 0.2);
  color: #28a745;
}

#check-purchases-modal .alert-danger {
  background-color: rgba(220, 53, 69, 0.1);
  border-color: rgba(220, 53, 69, 0.2);
  color: #dc3545;
}
