/* SpinBoss Custom CSS - Neighbors from Hell Inspired Theme */

/* ===== CSS Variables ===== */
:root {
  --primary: #ff6b35;
  --primary-dark: #e55a2b;
  --secondary: #4ecdc4;
  --accent: #ffe66d;
  --dark: #1a1a2e;
  --darker: #0f0f1a;
  --surface: #252542;
  --surface-light: #2d2d4a;
  --text: #f8f8f8;
  --text-muted: #a0a0b0;
  --success: #2ecc71;
  --warning: #f39c12;
}

/* ===== Base Prose Readability ===== */
.prose {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text);
}

.prose h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
  line-height: 1.3;
}

.prose h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.prose p {
  margin-bottom: 1.25rem;
}

.prose ul, .prose ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.prose li {
  margin-bottom: 0.5rem;
}

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

.shimmer {
  background: linear-gradient(
    90deg,
    var(--primary) 0%,
    var(--accent) 25%,
    var(--primary) 50%,
    var(--accent) 75%,
    var(--primary) 100%
  );
  background-size: 200% auto;
  animation: shimmer 3s linear infinite;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.shimmer-border {
  position: relative;
  overflow: hidden;
}

.shimmer-border::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 230, 109, 0.3) 50%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: shimmer 2s ease-in-out infinite;
  pointer-events: none;
  border-radius: inherit;
}

/* ===== Float Animation ===== */
@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-12px);
  }
}

@keyframes float-slow {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-8px) rotate(2deg);
  }
}

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

.float-slow {
  animation: float-slow 4s ease-in-out infinite;
}

.float-delay-1 {
  animation-delay: 0.5s;
}

.float-delay-2 {
  animation-delay: 1s;
}

.float-delay-3 {
  animation-delay: 1.5s;
}

/* ===== Pulse Glow Effect ===== */
@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.4),
                0 0 40px rgba(255, 107, 53, 0.2);
  }
  50% {
    box-shadow: 0 0 30px rgba(255, 107, 53, 0.6),
                0 0 60px rgba(255, 107, 53, 0.3);
  }
}

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

/* ===== Countdown Fade Animation ===== */
@keyframes countdown-fade {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.1);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.countdown-number {
  animation: countdown-fade 1s ease-in-out infinite;
}

/* ===== Button Styles ===== */
.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--secondary) 0%, #3dbdb5 100%);
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(78, 205, 196, 0.4);
}

/* ===== Card Styles ===== */
.card-hover {
  transition: all 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

/* ===== Slot Card Badge ===== */
.slot-badge {
  font-size: 0.65rem;
  padding: 0.2rem 0.5rem;
  border-radius: 9999px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ===== Tab Styles ===== */
.tab-btn {
  transition: all 0.3s ease;
}

.tab-btn.active {
  background: var(--primary);
  color: white;
}

.tab-btn:not(.active):hover {
  background: var(--surface-light);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* ===== Navigation Pill/Chip ===== */
.nav-chip {
  transition: all 0.2s ease;
}

.nav-chip:hover {
  background: var(--primary);
  color: white;
  transform: scale(1.05);
}

/* ===== Star Rating ===== */
.star-filled {
  color: var(--accent);
}

.star-empty {
  color: var(--surface-light);
}

/* ===== Trustpilot Style ===== */
.trustpilot-star {
  background: #00b67a;
  color: white;
  width: 1.5rem;
  height: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

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

/* ===== Focus Styles for Accessibility ===== */
:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}

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

::-webkit-scrollbar-track {
  background: var(--darker);
}

::-webkit-scrollbar-thumb {
  background: var(--surface-light);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* ===== Table Styles ===== */
.payment-table {
  border-collapse: separate;
  border-spacing: 0;
}

.payment-table th {
  background: var(--surface);
  font-weight: 600;
  text-align: left;
  padding: 0.75rem 1rem;
}

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

.payment-table tr:hover td {
  background: rgba(255, 107, 53, 0.05);
}

/* ===== Mobile Menu Animation ===== */
.mobile-menu {
  transition: max-height 0.3s ease, opacity 0.3s ease;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
}

.mobile-menu.open {
  max-height: 500px;
  opacity: 1;
}

/* ===== Hero Pattern Overlay ===== */
.hero-pattern {
  background-image: 
    radial-gradient(circle at 20% 80%, rgba(255, 107, 53, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(78, 205, 196, 0.1) 0%, transparent 50%);
}

/* ===== Neighbors from Hell Inspired Decorative Elements ===== */
.nfh-border {
  border: 3px solid var(--primary);
  border-radius: 1rem;
  position: relative;
}

.nfh-border::after {
  content: '';
  position: absolute;
  inset: -6px;
  border: 2px dashed var(--accent);
  border-radius: 1.25rem;
  opacity: 0.5;
  pointer-events: none;
}

/* ===== Portfolio Tab Styles ===== */
.portfolio-tab {
  background: var(--surface);
  color: var(--text-muted);
  border: 1px solid transparent;
}

.portfolio-tab.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border-color: var(--primary);
  box-shadow: 0 4px 20px rgba(255, 107, 53, 0.3);
}

.portfolio-tab:not(.active):hover {
  background: var(--surface-light);
  border-color: var(--surface-light);
  color: white;
}

/* ===== Game Card Styles ===== */
.game-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.game-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 107, 53, 0.15);
}

/* ===== Game Stat Chips ===== */
.game-stat-chip {
  display: inline-flex;
  align-items: center;
  font-size: 0.625rem;
  font-weight: 600;
  padding: 0.15rem 0.45rem;
  border-radius: 9999px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.game-stat-chip.rtp {
  background: rgba(78, 205, 196, 0.15);
  color: var(--secondary);
}

.game-stat-chip.vol-low {
  background: rgba(46, 204, 113, 0.15);
  color: #2ecc71;
}

.game-stat-chip.vol-med {
  background: rgba(243, 156, 18, 0.15);
  color: #f39c12;
}

.game-stat-chip.vol-high {
  background: rgba(255, 107, 53, 0.15);
  color: var(--primary);
}

.game-stat-chip.vol-extreme {
  background: rgba(231, 76, 60, 0.15);
  color: #e74c3c;
}

.game-stat-chip.pop-5 {
  background: rgba(255, 230, 109, 0.15);
  color: var(--accent);
}

.game-stat-chip.pop-4 {
  background: rgba(255, 230, 109, 0.12);
  color: #e6cf5f;
}

.game-stat-chip.pop-3 {
  background: rgba(160, 160, 176, 0.12);
  color: var(--text-muted);
}

/* ===== Portfolio Panel Animation ===== */
.portfolio-panel {
  animation: panelFadeIn 0.35s ease;
}

@keyframes panelFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Quiz Styles ===== */
.quiz-option {
  cursor: pointer;
}

.quiz-option:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.quiz-option.selected {
  border-color: var(--primary) !important;
  background: rgba(255, 107, 53, 0.1);
  box-shadow: 0 0 0 1px var(--primary), 0 8px 24px rgba(255, 107, 53, 0.15);
}

.quiz-step {
  animation: panelFadeIn 0.4s ease;
}
