/* Custom Styles for Yoga-Tarot Application */

:root {
  --card-width: 300px;
  --card-height: 528px; /* Maintaining 16:9 aspect ratio */
  --card-border-radius: 15px;
  --card-width-mobile: 240px;
  --card-height-mobile: 422px;
  --card-width-tablet: 260px;
  --card-height-tablet: 457px;
}

/* Card styles */
.yoga-card {
  perspective: 1000px;
  width: var(--card-width);
  height: var(--card-height);
  position: relative;
  margin: 0 auto;
  cursor: pointer;
  transform-origin: center center;
  transform-style: preserve-3d;
  transform: translateZ(0); /* Fix for card dropping */
  transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Smooth transition with slight bounce */
  will-change: transform; /* Optimize for transforms */
}

.yoga-card-inner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-style: preserve-3d;
  transform: translateZ(0);
  border-radius: var(--card-border-radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  will-change: transform;
}

.yoga-card.flip .yoga-card-inner, .yoga-card.flipped .yoga-card-inner {
  transform: translateZ(0) rotateY(180deg);
}

/* Ensure cards with show-front class always display the front */
.yoga-card.show-front .yoga-card-inner {
  transform: translateZ(0) rotateY(0deg) !important;
}

.yoga-card-front, .yoga-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: var(--card-border-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.yoga-card-front {
  background-color: transparent;
  color: white;
  transform: translateZ(0) rotateY(180deg);
  will-change: transform;
}

/* Make all cards with show-front class display the front side by default */
.yoga-card.show-front .yoga-card-inner {
  transform: translateZ(0) rotateY(180deg) !important;
}

/* Enhanced featured card on homepage */
.homepage-card .yoga-card {
  perspective: 1200px;
  width: calc(var(--card-width) * 1.2);
  height: calc(var(--card-height) * 1.2);
  margin-bottom: 20px;
  transition: all 0.5s ease-in-out;
}

/* Hover effect for the featured card */
.homepage-card .yoga-card:hover {
  transform: translateY(-10px);
}

/* Specific styles for featured card */
.featured-card-title {
  color: var(--bs-warning);
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 20px;
  position: relative;
  z-index: 2;
}

.featured-card .yoga-card {
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.35);
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  will-change: transform, box-shadow;
}

.featured-card .yoga-card:hover {
  transform: translateY(-15px) scale(1.03);
  box-shadow: 0 20px 35px rgba(128, 0, 128, 0.25);
}

.featured-card .card-image {
  object-fit: cover;
  transition: transform 0.8s ease-in-out;
}

.featured-card .yoga-card-front:hover .card-image {
  transform: scale(1.1);
}

/* Prevent the homepage card from flipping back when clicked */
#card-container.homepage-card .yoga-card.flip .yoga-card-inner {
  transform: translateZ(0) rotateY(0deg);
}

.yoga-card-back {
  background-color: var(--bs-dark);
  display: flex;
  justify-content: center;
  align-items: center;
  background-image: radial-gradient(circle at center, rgba(128, 0, 128, 0.3), rgba(0, 0, 0, 0.5)), 
                    url('/static/svg/mandala-background.svg');
  background-size: 80%, cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 1px solid rgba(128, 0, 128, 0.5);
  transform: translateZ(0);
  will-change: transform;
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease-in-out;
}

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

.card-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3));
  padding: 20px 10px 15px;
  color: white;
  border-radius: 0 0 var(--card-border-radius) var(--card-border-radius);
  /* Removed blur effect that was causing text to be unclear */
  /* backdrop-filter: blur(4px); */
  /* -webkit-backdrop-filter: blur(4px); */
  transition: all 0.3s ease;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  min-height: 40%;
  height: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 10;
  /* Improved text readability */
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.card-back-logo {
  width: 80%;
  height: auto;
}

/* Reading layout */
.reading-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin: 20px 0;
  position: relative;
  z-index: 5; /* Ensure reading container displays above celestial background */
}

/* Fix for card flipping in all views */
.reading-container .yoga-card,
.card-detail-container .yoga-card,
#card-container .yoga-card {
  transform-style: preserve-3d;
  transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000px;
  transform-origin: center center;
}

.reading-container .yoga-card .yoga-card-inner,
.card-detail-container .yoga-card .yoga-card-inner,
#card-container .yoga-card .yoga-card-inner {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  transform-style: preserve-3d;
  transform: translateZ(0);
  transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  backface-visibility: hidden;
  will-change: transform;
}

/* Mobile and responsive styles */
@media (max-width: 576px) {
  .yoga-card {
    width: var(--card-width-mobile);
    height: var(--card-height-mobile);
    margin-bottom: 20px;
    position: relative;
    z-index: 10;
  }
  
  /* Ensure homepage card stays larger even on mobile */
  .homepage-card .yoga-card {
    width: var(--card-width-mobile);
    height: var(--card-height-mobile);
    transform: scale(1.2);
    transform-origin: center center;
    margin-bottom: 50px;
  }
  
  .card-title h3 {
    font-size: 1.2rem;
  }
  
  .card-title p {
    font-size: 0.8rem;
  }
  
  .reading-container {
    padding: 0 10px;
    position: relative;
    z-index: 10;
  }
  
  .swiper-container {
    padding-bottom: 30px;
    position: relative;
    z-index: 10;
  }
  
  .app-header h1 {
    font-size: 1.8rem;
  }
  
  .app-header .lead {
    font-size: 1rem;
  }
  
  .card-info {
    padding: 1rem;
    position: relative;
    z-index: 5;
    background-color: var(--bs-dark);
  }
  
  /* Ensure card contents are visible on mobile */
  .card-meaning, .card-description, .card-info h4, .card-info h3 {
    position: relative;
    z-index: 5;
    color: #fff;
    background-color: transparent;
  }
  
  /* Fix black box overlays */
  canvas, .overlay {
    z-index: -1 !important;
    pointer-events: none;
  }
  
  /* Improve buttons on mobile */
  .btn-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
  }
  
  /* Make sure containers have appropriate z-index */
  .container, .container-fluid {
    position: relative;
    z-index: 5;
  }
}

/* Tablet styles */
@media (min-width: 577px) and (max-width: 991px) {
  .yoga-card {
    width: var(--card-width-tablet);
    height: var(--card-height-tablet);
    margin-bottom: 25px;
    position: relative;
    z-index: 10;
  }
  
  .reading-container {
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 10;
  }
  
  .card-detail-image {
    max-height: 500px;
    width: auto;
    margin: 0 auto;
    display: block;
  }
  
  /* Ensure visibility of card detail info */
  .card-info {
    position: relative;
    z-index: 5;
    background-color: var(--bs-dark);
  }
  
  /* Prevent elements from being hidden behind dark overlays */
  .card-meaning, .card-description, .card-info h4, .card-info h3 {
    position: relative;
    z-index: 5;
    color: #fff;
  }
  
  /* Make sure containers have appropriate z-index */
  .container, .container-fluid {
    position: relative;
    z-index: 5;
  }
  
  /* Clear any overlapping black boxes */
  canvas, .overlay {
    z-index: -1 !important;
  }
}

/* General responsive layout */
@media (max-width: 992px) {
  .reading-container {
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 100;
  }
  
  .yoga-card {
    margin-bottom: 30px;
    position: relative;
    z-index: 100;
  }
  
  /* Improve button spacing on mobile */
  .btn {
    margin-bottom: 5px;
  }
  
  /* Adjust card layout in card detail view */
  .row {
    margin-left: 0;
    margin-right: 0;
    position: relative;
    z-index: 10;
  }
  
  /* Make text more readable on mobile */
  p, h1, h2, h3, h4, h5, h6 {
    position: relative;
    z-index: 5;
  }
  
  /* Improve card visibility */
  .card, .card-body {
    position: relative;
    z-index: 10;
  }
  
  /* Fix black box issues with celestial background */
  #celestial-background {
    z-index: -1 !important;
  }
  
  /* Ensure all content is above any overlays */
  main.container, .container-fluid {
    position: relative;
    z-index: 5;
  }
  
  /* Fix black box overlay issues on card detail page */
  .card-detail, .card-info {
    position: relative;
    z-index: 100;
    background-color: var(--bs-dark);
  }
  
  /* Make sure tab content is visible */
  .tab-content, .tab-pane {
    position: relative;
    z-index: 5;
  }
  
  /* Ensure buttons are clickable */
  .btn, button, a, .nav-link {
    position: relative;
    z-index: 100;
  }
}

/* Card detail view */
.card-detail {
  max-width: 100%;
  margin: 0 auto;
}

.card-detail-image {
  max-width: 100%;
  border-radius: var(--card-border-radius);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.card-info {
  margin-top: 1.5rem;
  padding: 1.5rem;
  background-color: var(--bs-dark);
  border-radius: var(--card-border-radius);
}

.sanskrit-name {
  font-style: italic;
  color: var(--bs-gray-400);
}

/* Swiper styles */
.swiper-container {
  width: 100%;
  padding-top: 20px;
  padding-bottom: 50px;
}

.swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Animations */
.fade-in {
  animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* App header */
.app-header {
  background-image: linear-gradient(to right, var(--bs-purple), var(--bs-indigo));
  padding: 1.5rem 0;
  margin-bottom: 2rem;
}

.app-logo {
  height: 40px;
  margin-right: 10px;
}

/* Page sections */
.page-section {
  margin-bottom: 3rem;
}

/* Footer */
.app-footer {
  margin-top: 4rem;
  padding: 2rem 0;
  background-color: var(--bs-dark);
}

/* Audio Controls (Both Ambient Music and Voice Guidance) */
.audio-controls-panel {
  background-color: rgba(33, 37, 41, 0.95);
  border-radius: 10px;
  padding: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  max-width: 280px;
  margin: 0 auto;
  text-align: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(75, 0, 130, 0.2);
}

.practice-audio-controls {
  margin-top: 20px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.music-toggle, .voice-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  background-color: var(--bs-dark);
  transition: all 0.3s ease;
}

.next-sound-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  background-color: var(--bs-dark);
  transition: all 0.3s ease;
}

.music-toggle.active, .voice-toggle.active {
  background-color: var(--bs-info);
  color: white;
  box-shadow: 0 2px 15px rgba(13, 202, 240, 0.4);
}

.volume-container {
  background-color: rgba(33, 37, 41, 0.5);
  padding: 10px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transform-origin: bottom center;
  transition: all 0.3s ease;
}

.volume-slider {
  width: 100%;
  height: 10px;
}

.sound-mode-label {
  color: var(--bs-gray-500);
  font-size: 0.8rem;
}

/* Control panel positioning */
.audio-controls-floating {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
}

/* Media queries for responsive audio controls */
@media (max-width: 576px) {
  .audio-controls-floating {
    bottom: 15px;
    right: 15px;
  }
  
  .audio-controls-panel {
    max-width: 220px;
    padding: 8px;
  }
}

/* Practice-specific styles */
.breathing-circle {
  transition: transform 4s ease-in-out, box-shadow 4s ease-in-out;
}

/* Enhanced breathing circle styles for simplified UI */
.enhanced-breathing-circle {
  animation: pulse-glow 8s infinite alternate;
  z-index: 10;
  position: relative;
}

#breathing-circle-container {
  text-align: center;
  margin: 1.5rem auto;
  padding: 1rem;
  border-radius: 50%;
  max-width: 200px;
  box-shadow: 0 0 15px rgba(106, 90, 205, 0.5);
  background-color: rgba(255, 255, 255, 0.1);
}

#breath-text {
  font-size: 1.2rem;
  font-weight: 500;
  color: #f0f8ff;
  text-shadow: 0 0 8px rgba(106, 90, 205, 0.7);
}

@keyframes pulse-glow {
  0% {
    box-shadow: 0 0 8px rgba(106, 90, 205, 0.4);
  }
  50% {
    box-shadow: 0 0 20px rgba(106, 90, 205, 0.7), 0 0 30px rgba(106, 90, 205, 0.4);
  }
  100% {
    box-shadow: 0 0 8px rgba(106, 90, 205, 0.4);
  }
}

.practice-section {
  transition: all 0.5s ease;
}

/* Card reading styles */
.card-reading-preview {
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--bs-gray-300);
  padding: 0 10px;
  text-align: center;
  margin-top: 5px;
}

/* Add a truncated class that can be toggled */
.card-reading-preview.truncated {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Add styling for the show more/less button */
.toggle-reading-text {
  color: var(--bs-info);
  text-decoration: underline;
  cursor: pointer;
  font-size: 0.8rem;
  display: block;
  text-align: center;
  margin-top: 5px;
}

.card-info h5 {
  color: var(--bs-info);
  margin-top: 1.25rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 0.5rem;
}

.card-info p {
  line-height: 1.6;
}

/* Description display formatting */
.card-description {
  white-space: pre-line;
  font-size: 1rem;
  line-height: 1.6;
  text-align: justify;
  margin-bottom: 1.5rem;
}

/* Daily card info box styling */
.daily-card-info {
  border: 1px solid rgba(200, 200, 200, 0.1);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  border-radius: 15px;
  transform: translateY(0);
  transition: all 0.4s ease;
}

.daily-card-info:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(128, 0, 128, 0.25);
}

.daily-card-info .card-header {
  border-radius: 15px 15px 0 0;
}

.daily-card-significance {
  background: linear-gradient(135deg, rgba(40, 40, 60, 0.4) 0%, rgba(20, 20, 30, 0.6) 100%);
  border-radius: 8px;
  padding: 15px;
  border-left: 4px solid var(--bs-warning);
  margin-bottom: 15px;
}

.daily-card-significance h5 {
  color: var(--bs-warning);
  font-size: 1.1rem;
  margin-bottom: 10px;
}

/* Make the significance text fully visible */
.significance-text {
  font-size: 1.05rem;
  line-height: 1.6;
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  font-weight: 400;
  opacity: 1;
}

/* Make the daily card description more visible */
.daily-card-info .card-text {
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 15px;
}

/* Reading Intention & Integration Styles */
.intention-quote {
  font-style: italic;
  padding: 10px 15px;
  border-left: 3px solid rgba(255, 255, 255, 0.3);
  margin: 15px 0;
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}

.intention-quote i.fas {
  opacity: 0.6;
  margin-right: 5px;
}

/* Integrated reading styles */
.reading-card-synthesis {
  background: linear-gradient(135deg, rgba(60,60,90,0.6) 0%, rgba(25,25,35,0.8) 100%);
  border-radius: 8px;
  padding: 20px;
  margin: 25px 0;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.practice-highlight {
  background: linear-gradient(135deg, rgba(13,110,253,0.1) 0%, rgba(13,202,240,0.2) 100%);
  border: 1px solid rgba(13,202,240,0.3);
  border-radius: 8px;
  padding: 20px;
  margin-top: 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.practice-highlight:hover {
  box-shadow: 0 6px 15px rgba(13,202,240,0.2);
}

.card-connection-line {
  position: relative;
}

.card-connection-line:after {
  content: '';
  position: absolute;
  top: 50%;
  right: -15px;
  width: 30px;
  height: 2px;
  background-color: rgba(255,255,255,0.3);
}

/* Fix for "The Heart Opener" card purple box overlap issue */
div[data-card-title="The Heart Opener"] {
  position: relative;
  overflow: visible;
}

div[data-card-title="The Heart Opener"] .yoga-card-front {
  position: relative;
  z-index: 10000 !important;
}

/* Emergency fix for any purple overlay */
[style*="background-color: rgb(102, 0, 102)"],
[style*="background-color:rgb(102,0,102)"],
[style*="background-color: #660066"],
[style*="background-color:#660066"],
[style*="background: rgb(102, 0, 102)"],
[style*="background:rgb(102,0,102)"],
[style*="background: #660066"],
[style*="background:#660066"],
[style*="background-color: purple"],
[style*="background-color:purple"],
[style*="background: purple"],
[style*="background:purple"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  position: absolute !important;
  left: -9999px !important;
  height: 0 !important;
  width: 0 !important;
  overflow: hidden !important;
  z-index: -9999 !important;
}

/* Sanskrit labels for card categories */
.sanskrit-label {
  font-family: 'Palatino Linotype', 'Book Antiqua', Palatino, serif;
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: 1px;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* Hover effect for card category boxes */
.hover-card {
  transition: all 0.3s ease-in-out;
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.hover-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

/* Make the draw card buttons stand out more */
#asana-filter-btn, #wisdom-filter-btn {
  position: relative;
  overflow: hidden;
}

#asana-filter-btn::after, #wisdom-filter-btn::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: rgba(255, 255, 255, 0.1);
  transform: rotate(45deg);
  animation: shimmer 3s infinite linear;
}

@keyframes shimmer {
  0% { transform: translateX(-150%) rotate(45deg); }
  100% { transform: translateX(150%) rotate(45deg); }
}

/* Auth Form Styles */
.auth-form.mobile-optimized {
  position: relative;
  z-index: 100;
}
.auth-form .card {
  background-color: rgba(30, 30, 45, 0.9);
  border: 1px solid rgba(128, 0, 128, 0.5);
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: relative;
  z-index: 100;
}

.auth-form .card-title {
  color: #fff;
  text-shadow: 0 0 10px rgba(128, 0, 128, 0.5);
  position: relative;
  z-index: 10;
}

.auth-form .form-label {
  color: #fff;
  position: relative;
  z-index: 10;
}

.auth-form .form-text {
  color: rgba(255, 255, 255, 0.7);
  position: relative;
  z-index: 10;
}

.auth-form .form-control {
  background-color: rgba(30, 30, 45, 0.5);
  border: 1px solid rgba(128, 0, 128, 0.3);
  color: #fff;
  position: relative;
  z-index: 10;
}

.auth-form .form-control:focus {
  background-color: rgba(40, 40, 60, 0.7);
  border-color: rgba(128, 0, 128, 0.7);
  box-shadow: 0 0 0 0.25rem rgba(128, 0, 128, 0.25);
  color: #fff;
}

.auth-form .input-group-text {
  background-color: rgba(128, 0, 128, 0.3);
  border: 1px solid rgba(128, 0, 128, 0.3);
  color: #fff;
  position: relative;
  z-index: 10;
}

.auth-form .btn-primary {
  background: linear-gradient(135deg, #6d0075 0%, #a328a3 100%);
  border: none;
  position: relative;
  z-index: 10;
  overflow: hidden;
}

.auth-form .btn-primary: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: 0.5s;
}

.auth-form .btn-primary:hover:before {
  left: 100%;
}

.auth-form a {
  color: #ae4fc4;
  position: relative;
  z-index: 10;
}

.auth-form a:hover {
  color: #d782eb;
}

.auth-form .text-muted {
  color: rgba(255, 255, 255, 0.6) !important;
  position: relative;
  z-index: 10;
}

.auth-form .form-check-input {
  background-color: rgba(30, 30, 45, 0.5);
  border: 1px solid rgba(128, 0, 128, 0.3);
}

.auth-form .form-check-input:checked {
  background-color: #a328a3;
  border-color: #6d0075;
}

.auth-form .form-check-label {
  color: #fff;
  position: relative;
  z-index: 10;
}

/* Alert styling for auth forms */
.auth-form .alert {
  background-color: rgba(30, 30, 45, 0.9);
  border-left: 4px solid;
  color: white;
  position: relative;
  z-index: 10;
}

.auth-form .alert-success {
  border-left-color: #28a745;
}

.auth-form .alert-danger {
  border-left-color: #dc3545;
}

.auth-form .alert-warning {
  border-left-color: #ffc107;
}

.auth-form .alert-info {
  border-left-color: #17a2b8;
}

/* Cosmic Rebirth Placeholder Styles */
.cosmic-rebirth-placeholder {
  background: linear-gradient(135deg, #663399, #9400d3);
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--card-border-radius);
  overflow: hidden;
  position: relative;
}

.cosmic-rebirth-placeholder::before {
  content: '';
  position: absolute;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 50%);
  top: -50%;
  left: -50%;
  animation: cosmic-pulse 8s ease-in-out infinite;
}

.cosmic-rebirth-content {
  text-align: center;
  z-index: 2;
  padding: 1rem;
}

.cosmic-rebirth-text {
  color: white;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem;
  font-weight: 300;
  letter-spacing: 1px;
  text-transform: lowercase;
  animation: text-glow 3s ease-in-out infinite alternate;
}

@keyframes cosmic-pulse {
  0% { transform: rotate(0deg); opacity: 0.5; }
  50% { transform: rotate(180deg); opacity: 0.8; }
  100% { transform: rotate(360deg); opacity: 0.5; }
}

@keyframes text-glow {
  0% { text-shadow: 0 0 5px rgba(255,255,255,0.6); }
  100% { text-shadow: 0 0 20px rgba(255,255,255,0.9), 0 0 30px rgba(255,255,255,0.5); }
}
