/* ================================================
   LICHIBET - Custom CSS
   Lichi Bright Core Theme
   ================================================ */

/* === KEYFRAME ANIMATIONS === */

@keyframes particle-float {
  0%, 100% {
    transform: translateY(0) translateX(0) scale(1);
    opacity: 0.6;
  }
  25% {
    transform: translateY(-20px) translateX(10px) scale(1.1);
    opacity: 0.8;
  }
  50% {
    transform: translateY(-35px) translateX(-5px) scale(0.9);
    opacity: 0.5;
  }
  75% {
    transform: translateY(-15px) translateX(-15px) scale(1.05);
    opacity: 0.7;
  }
}

@keyframes particle-rise {
  0% {
    transform: translateY(100%) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.8;
  }
  90% {
    opacity: 0.6;
  }
  100% {
    transform: translateY(-100vh) rotate(360deg);
    opacity: 0;
  }
}

@keyframes tilt-swing {
  0%, 100% {
    transform: rotate(-2deg) scale(1);
  }
  50% {
    transform: rotate(2deg) scale(1.02);
  }
}

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

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(255, 107, 149, 0.4);
  }
  50% {
    box-shadow: 0 0 40px rgba(255, 107, 149, 0.7), 0 0 60px rgba(124, 58, 237, 0.3);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% center;
  }
  100% {
    background-position: 200% center;
  }
}

@keyframes bounce-subtle {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes fade-in-up {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes spin-slow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* === ANIMATION UTILITY CLASSES === */

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

.animate-particle-rise {
  animation: particle-rise 15s linear infinite;
}

.animate-tilt {
  animation: tilt-swing 4s ease-in-out infinite;
}

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

.animate-pulse-glow {
  animation: pulse-glow 2s ease-in-out infinite;
}

.animate-shimmer {
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

.animate-bounce-subtle {
  animation: bounce-subtle 2s ease-in-out infinite;
}

.animate-fade-in-up {
  animation: fade-in-up 0.6s ease-out forwards;
}

.animate-spin-slow {
  animation: spin-slow 20s linear infinite;
}

/* === PARTICLE CONTAINER === */

.particle-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.particle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.particle-1 {
  width: 0.5rem;
  height: 0.5rem;
  background: rgba(255, 107, 149, 0.6);
  top: 20%;
  left: 10%;
  animation: particle-float 7s ease-in-out infinite;
}

.particle-2 {
  width: 0.75rem;
  height: 0.75rem;
  background: rgba(124, 58, 237, 0.5);
  top: 60%;
  left: 80%;
  animation: particle-float 9s ease-in-out infinite 1s;
}

.particle-3 {
  width: 0.375rem;
  height: 0.375rem;
  background: rgba(34, 211, 238, 0.6);
  top: 40%;
  left: 30%;
  animation: particle-float 5s ease-in-out infinite 0.5s;
}

.particle-4 {
  width: 0.625rem;
  height: 0.625rem;
  background: rgba(251, 191, 36, 0.5);
  top: 75%;
  left: 60%;
  animation: particle-float 8s ease-in-out infinite 2s;
}

.particle-5 {
  width: 0.5rem;
  height: 0.5rem;
  background: rgba(52, 211, 153, 0.6);
  top: 15%;
  left: 70%;
  animation: particle-float 6s ease-in-out infinite 1.5s;
}

.particle-6 {
  width: 0.875rem;
  height: 0.875rem;
  background: rgba(255, 107, 149, 0.4);
  top: 85%;
  left: 20%;
  animation: particle-float 10s ease-in-out infinite 0.8s;
}

/* === BUTTON STYLES === */

.btn-primary {
  background: linear-gradient(135deg, #ff6b95 0%, #c44569 100%);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

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

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

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(255, 107, 149, 0.4);
}

.btn-secondary {
  background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(124, 58, 237, 0.4);
}

/* === CARD STYLES === */

.card-glossy {
  background: linear-gradient(145deg, rgba(255,255,255,0.95) 0%, rgba(248,250,252,0.9) 100%);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.8);
  transition: all 0.3s ease;
}

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

.card-dark {
  background: linear-gradient(145deg, rgba(30,27,75,0.95) 0%, rgba(17,24,39,0.9) 100%);
  border: 1px solid rgba(124, 58, 237, 0.3);
}

/* === GAME CARD === */

.game-card {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.game-card:hover {
  transform: scale(1.05) rotate(1deg);
}

.game-card img {
  transition: transform 0.4s ease;
}

.game-card:hover img {
  transform: scale(1.1);
}

/* === TABLE STYLES === */

.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.5rem 0;
}

.table-responsive table {
  min-width: 100%;
  border-collapse: collapse;
}

/* === GRADIENT BACKGROUNDS === */

.gradient-hero {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 30%, #4c1d95 60%, #581c87 100%);
}

.gradient-section {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}

.gradient-dark {
  background: linear-gradient(180deg, #1e1b4b 0%, #0f0d24 100%);
}

/* === DECORATIVE PATTERNS === */

.pattern-dots {
  background-image: radial-gradient(rgba(255,255,255,0.1) 1px, transparent 1px);
  background-size: 20px 20px;
}

.pattern-grid {
  background-image: 
    linear-gradient(rgba(124, 58, 237, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 58, 237, 0.1) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* === SCROLLBAR STYLING === */

::-webkit-scrollbar {
  width: 0.5rem;
  height: 0.5rem;
}

::-webkit-scrollbar-track {
  background: #1e1b4b;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #ff6b95, #7c3aed);
  border-radius: 0.25rem;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #ff85a8, #8b5cf6);
}

/* ================================================
   PROSE STYLING FOR MARKDOWN CONTENT
   ================================================ */

.prose {
  color: #1e293b;
  max-width: 100%;
  font-size: 1.0625rem;
  line-height: 1.75;
}

.prose > * + * {
  margin-top: 1.5em;
}

/* === PROSE HEADINGS === */

.prose h2 {
  color: #1e1b4b;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  line-height: 1.3;
  margin-top: 2.5em;
  margin-bottom: 1em;
  padding-bottom: 0.5em;
  border-bottom: 3px solid #ff6b95;
  position: relative;
}

.prose h2::before {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 4rem;
  height: 3px;
  background: #7c3aed;
}

.prose h3 {
  color: #312e81;
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 600;
  line-height: 1.4;
  margin-top: 2em;
  margin-bottom: 0.75em;
}

.prose h4 {
  color: #4c1d95;
  font-size: clamp(1.125rem, 2.5vw, 1.25rem);
  font-weight: 600;
  line-height: 1.4;
  margin-top: 1.75em;
  margin-bottom: 0.5em;
}

/* === PROSE PARAGRAPHS === */

.prose p {
  margin-bottom: 1.25em;
  color: #334155;
}

.prose strong {
  color: #1e1b4b;
  font-weight: 600;
}

.prose em {
  color: #4c1d95;
  font-style: italic;
}

.prose a {
  color: #c44569;
  text-decoration: underline;
  text-decoration-color: rgba(196, 69, 105, 0.3);
  text-underline-offset: 0.2em;
  transition: all 0.2s ease;
}

.prose a:hover {
  color: #ff6b95;
  text-decoration-color: #ff6b95;
}

/* === PROSE LISTS === */

.prose ul {
  list-style: none;
  padding-left: 1.5em;
  margin: 1.25em 0;
}

.prose ul li {
  position: relative;
  padding-left: 0.5em;
  margin-bottom: 0.625em;
  color: #334155;
}

.prose ul li::before {
  content: '';
  position: absolute;
  left: -1em;
  top: 0.6em;
  width: 0.5em;
  height: 0.5em;
  background: linear-gradient(135deg, #ff6b95, #c44569);
  border-radius: 50%;
}

.prose ol {
  list-style: none;
  padding-left: 1.5em;
  margin: 1.25em 0;
  counter-reset: prose-counter;
}

.prose ol li {
  position: relative;
  padding-left: 0.75em;
  margin-bottom: 0.75em;
  counter-increment: prose-counter;
  color: #334155;
}

.prose ol li::before {
  content: counter(prose-counter);
  position: absolute;
  left: -1.5em;
  top: 0;
  width: 1.5em;
  height: 1.5em;
  background: linear-gradient(135deg, #7c3aed, #5b21b6);
  color: #fff;
  font-size: 0.75em;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* === PROSE TABLES === */

.prose .table-responsive {
  margin: 2em 0;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.prose thead {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
}

.prose thead th {
  color: #fff;
  font-weight: 600;
  padding: 1em 1.25em;
  text-align: left;
  white-space: nowrap;
}

.prose tbody tr {
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  transition: background 0.2s ease;
}

.prose tbody tr:nth-child(even) {
  background: #f8fafc;
}

.prose tbody tr:hover {
  background: #fef3f6;
}

.prose tbody td {
  padding: 1em 1.25em;
  color: #334155;
}

/* === PROSE BLOCKQUOTES === */

.prose blockquote {
  border-left: 4px solid #ff6b95;
  background: linear-gradient(135deg, #fef3f6 0%, #fdf2f8 100%);
  padding: 1.25em 1.5em;
  margin: 1.5em 0;
  border-radius: 0 0.75rem 0.75rem 0;
  font-style: italic;
  color: #4c1d95;
  position: relative;
}

.prose blockquote::before {
  content: '\201C';
  position: absolute;
  top: -0.25em;
  left: 0.5em;
  font-size: 3em;
  color: rgba(255, 107, 149, 0.3);
  font-family: Georgia, serif;
  line-height: 1;
}

.prose blockquote p {
  margin: 0;
  color: #4c1d95;
}

/* === PROSE CODE === */

.prose code {
  background: #f1f5f9;
  color: #c44569;
  padding: 0.2em 0.4em;
  border-radius: 0.25rem;
  font-size: 0.875em;
  font-family: ui-monospace, monospace;
}

.prose pre {
  background: #1e1b4b;
  color: #e2e8f0;
  padding: 1.25em;
  border-radius: 0.75rem;
  overflow-x: auto;
  margin: 1.5em 0;
}

.prose pre code {
  background: transparent;
  color: inherit;
  padding: 0;
  font-size: 0.875rem;
}

/* === PROSE IMAGES === */

.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  margin: 1.5em 0;
}

/* === PROSE HR === */

.prose hr {
  border: none;
  height: 3px;
  background: linear-gradient(90deg, #ff6b95, #7c3aed, #22d3ee);
  margin: 2.5em 0;
  border-radius: 1.5px;
}

/* === MOBILE MENU OVERLAY === */

.mobile-menu-overlay {
  background: rgba(17, 24, 39, 0.95);
  backdrop-filter: blur(10px);
}

/* === NAV LINK STYLES === */

.nav-link {
  position: relative;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #ff6b95, #7c3aed);
  transition: width 0.3s ease;
}

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

/* === BONUS BADGE === */

.bonus-badge {
  background: linear-gradient(145deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.05) 100%);
  backdrop-filter: blur(20px);
  border: 2px solid rgba(255, 107, 149, 0.5);
  box-shadow: 
    0 25px 50px rgba(0,0,0,0.3),
    inset 0 1px 0 rgba(255,255,255,0.2);
}

/* === STEP BADGES === */

.step-badge {
  background: linear-gradient(135deg, #ff6b95 0%, #c44569 100%);
  box-shadow: 0 4px 15px rgba(255, 107, 149, 0.4);
}

/* === FAQ ACCORDION === */

.faq-item {
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: #ff6b95;
  box-shadow: 0 5px 20px rgba(255, 107, 149, 0.1);
}

.faq-question {
  transition: all 0.3s ease;
}

.faq-question:hover {
  background: #fef3f6;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 1.25rem 1.5rem;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

/* === PROVIDER CLOUD === */

.provider-tag {
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  transition: all 0.3s ease;
}

.provider-tag:hover {
  background: linear-gradient(135deg, #ff6b95 0%, #c44569 100%);
  color: #fff;
  transform: translateY(-2px);
}

/* === PROMO CARDS === */

.promo-card {
  background: linear-gradient(145deg, #fff 0%, #f8fafc 100%);
  border: 1px solid #e2e8f0;
  transition: all 0.4s ease;
}

.promo-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(124, 58, 237, 0.15);
  border-color: #ff6b95;
}

/* === FOOTER STYLES === */

.footer-link {
  transition: all 0.2s ease;
}

.footer-link:hover {
  color: #ff6b95;
  padding-left: 0.25em;
}

/* === RESPONSIVE ADJUSTMENTS === */

@media (max-width: 768px) {
  .prose {
    font-size: 1rem;
  }
  
  .prose h2 {
    margin-top: 2em;
  }
  
  .prose ul,
  .prose ol {
    padding-left: 1.25em;
  }
  
  .prose blockquote {
    padding: 1em 1.25em;
  }
  
  .prose blockquote::before {
    font-size: 2em;
  }
}

/* === ANIMATION DELAYS === */

.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }
.delay-500 { animation-delay: 500ms; }
.delay-700 { animation-delay: 700ms; }
.delay-1000 { animation-delay: 1000ms; }

/* === FOCUS STATES FOR ACCESSIBILITY === */

.btn-primary:focus,
.btn-secondary:focus,
.nav-link:focus {
  outline: 2px solid #ff6b95;
  outline-offset: 2px;
}

/* === PRINT STYLES === */

@media print {
  .prose {
    color: #000;
  }
  
  .prose a {
    color: #000;
    text-decoration: underline;
  }
  
  .prose blockquote {
    border-left-color: #000;
    background: #f5f5f5;
  }
}
