/* Zila Lumière Royale - Custom Animations & Prose Styling */

:root {
  --gold-glow: #ffd700;
  --pink-royal: #ffb6d9;
  --midnight: #0a0e27;
  --midnight-light: #1a1f3a;
}

/* Particle Animation */
@keyframes particle-float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.8;
  }
  25% {
    transform: translate(10px, -15px) scale(1.1);
    opacity: 1;
  }
  50% {
    transform: translate(-5px, -30px) scale(0.9);
    opacity: 0.6;
  }
  75% {
    transform: translate(-15px, -20px) scale(1.05);
    opacity: 0.9;
  }
}

.particle-animation {
  animation: particle-float 8s ease-in-out infinite;
}

.particle-animation:nth-child(2n) {
  animation-delay: 1s;
  animation-duration: 10s;
}

.particle-animation:nth-child(3n) {
  animation-delay: 2s;
  animation-duration: 12s;
}

/* Tilt Animation */
@keyframes tilt-hover {
  0%,
  100% {
    transform: perspective(1000px) rotateX(0deg) rotateY(0deg);
  }
  25% {
    transform: perspective(1000px) rotateX(2deg) rotateY(-2deg);
  }
  50% {
    transform: perspective(1000px) rotateX(-1deg) rotateY(2deg);
  }
  75% {
    transform: perspective(1000px) rotateX(1deg) rotateY(-1deg);
  }
}

.tilt-animation:hover {
  animation: tilt-hover 2s ease-in-out infinite;
}

/* Glow Effects */
@keyframes golden-glow {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3), 0 0 40px rgba(255, 182, 217, 0.2);
  }
  50% {
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.5), 0 0 60px rgba(255, 182, 217, 0.3);
  }
}

.golden-glow {
  animation: golden-glow 3s ease-in-out infinite;
}

/* Shimmer Effect */
@keyframes shimmer {
  0% {
    background-position: -200% center;
  }
  100% {
    background-position: 200% center;
  }
}

.shimmer-effect {
  background: linear-gradient(90deg, transparent 0%, rgba(255, 215, 0, 0.2) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: shimmer 3s linear infinite;
}

/* Enhanced prose styling for markdown content with improved responsive typography and readability */

/* Prose Styling for Readability - Enhanced for Markdown Pages */
.prose-content {
  line-height: 1.8;
  font-size: clamp(1rem, 0.9rem + 0.3vw, 1.125rem);
  color: #e8e8f0;
  max-width: 75ch;
}

.prose-content p {
  margin-bottom: 1.75em;
  text-align: justify;
  hyphens: auto;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.prose-content h2 {
  font-size: clamp(1.75rem, 1.5rem + 0.8vw, 2.25rem);
  font-weight: 700;
  margin-top: 3.5rem;
  margin-bottom: 1.75rem;
  line-height: 1.3;
  background: linear-gradient(135deg, #ffd700, #ffb6d9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

.prose-content h3 {
  font-size: clamp(1.35rem, 1.2rem + 0.5vw, 1.65rem);
  font-weight: 600;
  margin-top: 2.5rem;
  margin-bottom: 1.25rem;
  line-height: 1.4;
  color: #ffd700;
  letter-spacing: -0.01em;
}

.prose-content h4 {
  font-size: clamp(1.15rem, 1.05rem + 0.3vw, 1.35rem);
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: #ffb6d9;
  line-height: 1.5;
}

.prose-content ul,
.prose-content ol {
  margin-bottom: 1.75em;
  padding-left: 2em;
}

.prose-content li {
  margin-bottom: 0.875em;
  line-height: 1.75;
  padding-left: 0.5em;
}

.prose-content ul li::marker {
  color: #ffd700;
}

.prose-content ol li::marker {
  color: #ffb6d9;
  font-weight: 600;
}

.prose-content strong {
  color: #ffd700;
  font-weight: 600;
}

.prose-content em {
  color: #ffb6d9;
  font-style: italic;
}

.prose-content a {
  color: #ffb6d9;
  text-decoration: underline;
  text-decoration-color: rgba(255, 182, 217, 0.4);
  text-underline-offset: 0.25em;
  transition: all 0.3s ease;
  word-wrap: break-word;
}

.prose-content a:hover {
  color: #ffd700;
  text-decoration-color: rgba(255, 215, 0, 0.7);
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.3);
}

.prose-content table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  margin: 2.5em 0;
  font-size: clamp(0.875rem, 0.8rem + 0.2vw, 1rem);
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.prose-content thead {
  background: rgba(255, 215, 0, 0.12);
  border-top: 2px solid rgba(255, 215, 0, 0.4);
  border-bottom: 2px solid rgba(255, 215, 0, 0.4);
}

.prose-content th,
.prose-content td {
  padding: 1em 1.25em;
  text-align: left;
  border-bottom: 1px solid rgba(255, 182, 217, 0.15);
  vertical-align: top;
  min-width: 8em;
}

.prose-content th {
  color: #ffd700;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 0.875em;
}

.prose-content tbody tr {
  transition: background-color 0.2s ease;
}

.prose-content tbody tr:hover {
  background: rgba(255, 182, 217, 0.06);
}

.prose-content tbody tr:last-child td {
  border-bottom: 2px solid rgba(255, 182, 217, 0.3);
}

.prose-content blockquote {
  margin: 2em 0;
  padding: 1.5em 1.75em;
  background: rgba(255, 215, 0, 0.05);
  border-left: 4px solid #ffd700;
  font-style: italic;
  color: #d1d1e0;
  position: relative;
}

.prose-content blockquote::before {
  content: '"';
  position: absolute;
  top: 0.25em;
  left: 0.5em;
  font-size: 3em;
  color: rgba(255, 215, 0, 0.2);
  font-family: Georgia, serif;
  line-height: 1;
}

.prose-content blockquote p:last-child {
  margin-bottom: 0;
}

.prose-content code {
  background: rgba(255, 215, 0, 0.1);
  color: #ffd700;
  padding: 0.2em 0.5em;
  border-radius: 0.25em;
  font-family: "Courier New", monospace;
  font-size: 0.9em;
  word-wrap: break-word;
}

.prose-content pre {
  background: rgba(10, 14, 39, 0.8);
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: 0.5em;
  padding: 1.5em;
  overflow-x: auto;
  margin: 2em 0;
}

.prose-content pre code {
  background: none;
  padding: 0;
  color: #e8e8f0;
  font-size: 0.875em;
}

.prose-content hr {
  margin: 3em 0;
  border: none;
  height: 2px;
  background: linear-gradient(90deg, transparent, #ffd700, #ffb6d9, transparent);
}

/* First paragraph styling for better introduction */
.prose-content > p:first-of-type {
  font-size: clamp(1.1rem, 1rem + 0.4vw, 1.25rem);
  line-height: 1.7;
  color: #f5f5ff;
  margin-bottom: 2em;
}

/* Section spacing improvements */
.prose-content > h2:first-child {
  margin-top: 0;
}

/* Improved focus states for accessibility */
.prose-content a:focus {
  outline: 2px solid #ffd700;
  outline-offset: 3px;
  border-radius: 2px;
}

/* Print styles for prose content */
@media print {
  .prose-content {
    color: #000;
    font-size: 11pt;
    line-height: 1.6;
  }

  .prose-content h2,
  .prose-content h3 {
    color: #000;
    -webkit-text-fill-color: initial;
    background: none;
  }

  .prose-content a {
    color: #000;
    text-decoration: underline;
  }
}

/* Responsive adjustments for prose */
@media (max-width: 768px) {
  .prose-content {
    text-align: left;
  }

  .prose-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
  }

  .prose-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
  }

  .prose-content table {
    font-size: 0.8125rem;
  }

  .prose-content th,
  .prose-content td {
    padding: 0.75em 1em;
    min-width: 6em;
  }
}

@media (max-width: 480px) {
  .prose-content {
    font-size: 0.9375rem;
  }

  .prose-content th,
  .prose-content td {
    padding: 0.625em 0.75em;
    min-width: 5em;
  }
}

/* Table Responsive Wrapper */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 2rem 0;
  border-radius: 0.5rem;
  background: rgba(26, 31, 58, 0.5);
  padding: 1rem;
}

/* Card Styles */
.card-elegant {
  background: linear-gradient(135deg, rgba(26, 31, 58, 0.9), rgba(10, 14, 39, 0.95));
  border: 1px solid rgba(255, 215, 0, 0.2);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.card-elegant::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.1), transparent);
  transition: left 0.6s ease;
}

.card-elegant:hover::before {
  left: 100%;
}

.card-elegant:hover {
  border-color: rgba(255, 215, 0, 0.5);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(255, 215, 0, 0.2);
}

/* Button Enhancements */
.btn-royal {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn-royal::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.btn-royal:hover::after {
  width: 300px;
  height: 300px;
}

/* Smooth Scroll */
html {
  scroll-behavior: smooth;
}

/* Badge Styles */
.badge-number {
  background: linear-gradient(135deg, #ffd700, #ffb6d9);
  color: #0a0e27;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  font-size: 1.5rem;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

/* Provider Cloud */
.provider-tag {
  background: rgba(255, 215, 0, 0.1);
  border: 1px solid rgba(255, 215, 0, 0.3);
  color: #ffd700;
  padding: 0.5rem 1.25rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-block;
  margin: 0.5rem;
}

.provider-tag:hover {
  background: rgba(255, 215, 0, 0.2);
  border-color: #ffd700;
  transform: scale(1.05);
}

/* Accent Lines */
.accent-line {
  height: 2px;
  background: linear-gradient(90deg, transparent, #ffd700, #ffb6d9, transparent);
  margin: 2rem 0;
}

/* Disclaimer Box */
.disclaimer-box {
  background: rgba(255, 182, 217, 0.05);
  border-left: 3px solid #ffb6d9;
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  font-size: 0.875rem;
  color: #d1d1e0;
  line-height: 1.6;
}

/* FAQ Accordion */
.faq-item {
  border-bottom: 1px solid rgba(255, 215, 0, 0.2);
  transition: all 0.3s ease;
}

.faq-item:hover {
  background: rgba(255, 215, 0, 0.03);
}

/* Responsive Images */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Selection */
::selection {
  background: rgba(255, 215, 0, 0.3);
  color: #fff;
}

::-moz-selection {
  background: rgba(255, 215, 0, 0.3);
  color: #fff;
}
