/* Togawin Casino - Custom CSS */
/* Roman Empire Theme - Dark Gray & Red */

:root {
  --bg-primary: #1a1a1f;
  --bg-secondary: #252530;
  --bg-card: #2d2d3a;
  --accent-red: #c41e3a;
  --accent-red-hover: #e63950;
  --accent-gold: #d4af37;
  --accent-gold-light: #f4d03f;
  --text-primary: #f5f5f5;
  --text-secondary: #a0a0a8;
  --text-muted: #6b6b75;
  --border-color: #3a3a48;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Prose Styling for Readability */
.prose {
  max-width: 75ch;
  color: var(--text-secondary);
  font-size: 1.0625rem;
  line-height: 1.75;
}

.prose h1, .prose h2, .prose h3, .prose h4 {
  color: var(--text-primary);
  font-weight: 700;
  margin-top: 2em;
  margin-bottom: 0.75em;
  line-height: 1.3;
}

.prose h2 {
  font-size: 1.75rem;
  border-bottom: 2px solid var(--accent-gold);
  padding-bottom: 0.5rem;
}

.prose h3 {
  font-size: 1.375rem;
  color: var(--accent-gold);
}

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

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

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

.prose a {
  color: var(--accent-red);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.prose a:hover {
  color: var(--accent-red-hover);
}

.prose strong {
  color: var(--text-primary);
  font-weight: 600;
}

.prose blockquote {
  border-left: 4px solid var(--accent-gold);
  padding-left: 1.5rem;
  font-style: italic;
  color: var(--text-muted);
  margin: 1.5em 0;
}

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

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(196, 30, 58, 0.4); }
  50% { box-shadow: 0 0 40px rgba(196, 30, 58, 0.7), 0 0 60px rgba(196, 30, 58, 0.3); }
}

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

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

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

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

@keyframes countdown-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.05); }
}

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

@keyframes laurel-sway {
  0%, 100% { transform: rotate(-3deg); }
  50% { transform: rotate(3deg); }
}

/* Animation Classes */
.animate-float {
  animation: float 4s 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.1), transparent);
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

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

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

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

.animate-countdown {
  animation: countdown-pulse 1s ease-in-out infinite;
}

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

.animate-laurel {
  animation: laurel-sway 3s ease-in-out infinite;
}

/* Gradient Backgrounds */
.gradient-roman {
  background: linear-gradient(135deg, #1a1a1f 0%, #2d2d3a 50%, #1a1a1f 100%);
}

.gradient-hero {
  background: 
    radial-gradient(ellipse at 20% 50%, rgba(196, 30, 58, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
    linear-gradient(180deg, #252530 0%, #1a1a1f 100%);
}

.gradient-card {
  background: linear-gradient(145deg, #2d2d3a 0%, #252530 100%);
}

.gradient-gold {
  background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-light) 50%, var(--accent-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Roman Pattern SVG Background */
.roman-pattern {
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 5L35 15H25L30 5ZM30 55L25 45H35L30 55ZM5 30L15 25V35L5 30ZM55 30L45 35V25L55 30Z' fill='%23d4af37' fill-opacity='0.03'/%3E%3Ccircle cx='30' cy='30' r='2' fill='%23d4af37' fill-opacity='0.05'/%3E%3C/svg%3E");
}

/* Button Styles */
.btn-primary {
  background: linear-gradient(135deg, var(--accent-red) 0%, #a01830 100%);
  color: white;
  padding: 0.875rem 2rem;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--accent-red-hover) 0%, var(--accent-red) 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(196, 30, 58, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  border: 2px solid var(--border-color);
  cursor: pointer;
}

.btn-secondary:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  background: rgba(212, 175, 55, 0.1);
}

/* Card Styles */
.card {
  background: var(--bg-card);
  border-radius: 16px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: all 0.3s ease;
}

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

/* Slot Card */
.slot-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.slot-card:hover {
  transform: scale(1.03);
  border-color: var(--accent-gold);
  box-shadow: 0 8px 30px rgba(212, 175, 55, 0.2);
}

.slot-card img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
}

.slot-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
}

.badge-jackpot { background: linear-gradient(135deg, #ffd700, #ff8c00); color: #1a1a1f; }
.badge-popular { background: var(--accent-red); color: white; }
.badge-rtp { background: #10b981; color: white; }
.badge-bonus { background: #8b5cf6; color: white; }

/* Header Styles */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(26, 26, 31, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-primary);
  padding: 2rem;
  z-index: 999;
}

.mobile-menu.active {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Hero Section */
.hero-section {
  margin: 100px 1rem 2rem;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
}

@media (min-width: 768px) {
  .hero-section {
    margin: 100px 2rem 3rem;
    border-radius: 32px;
  }
}

/* Provider Cloud */
.provider-btn {
  padding: 0.625rem 1.25rem;
  border-radius: 50px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.provider-btn:hover {
  background: var(--accent-gold);
  color: var(--bg-primary);
  border-color: var(--accent-gold);
  transform: translateY(-2px);
}

/* Feature Card Overlay */
.feature-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 26, 31, 0.95) 0%, rgba(26, 26, 31, 0.6) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
}

/* Review Card */
.review-card {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 1.5rem;
  border: 1px solid var(--border-color);
}

.star-rating {
  color: var(--accent-gold);
}

/* Footer Styles */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  margin-top: 4rem;
}

/* Responsive Grid */
.slots-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 640px) {
  .slots-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .slots-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
  }
}

@media (min-width: 1280px) {
  .slots-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

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

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

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

/* Selection */
::selection {
  background: var(--accent-red);
  color: white;
}

/* Focus States */
:focus-visible {
  outline: 2px solid var(--accent-gold);
  outline-offset: 2px;
}

/* Age Badge */
.age-badge {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 3px solid var(--accent-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  color: var(--accent-red);
}

/* Laurel Decoration */
.laurel-left, .laurel-right {
  position: absolute;
  width: 60px;
  height: 120px;
  opacity: 0.15;
}

.laurel-left {
  left: -30px;
  top: 50%;
  transform: translateY(-50%);
}

.laurel-right {
  right: -30px;
  top: 50%;
  transform: translateY(-50%) scaleX(-1);
}

/* CTA Banner */
.cta-banner {
  background: 
    radial-gradient(ellipse at center, rgba(196, 30, 58, 0.2) 0%, transparent 70%),
    var(--bg-card);
  border: 2px solid var(--accent-red);
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
  animation: shimmer 3s infinite;
}
