/* Roman Empire Theme - Gold & Red Color Palette */
:root {
  --gold: #d4af37;
  --dark-gold: #b8941f;
  --red: #8b0000;
  --dark-red: #660000;
  --light-gold: #f4e4b8;
  --bg-dark: #1a0f0f;
  --bg-darker: #0f0808;
}

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

body {
  overflow-x: hidden;
  max-width: 100vw;
}

/* Ensure all sections respect main content area */
main {
  overflow-x: hidden;
  width: 100%;
}

main section {
  overflow-x: hidden;
  max-width: 100%;
}

/* Ensure container elements don't overflow */
.container {
  max-width: 100%;
}

/* Make tables responsive */
table {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  display: block;
}

@media (min-width: 768px) {
  table {
    display: table;
  }
}

/* Responsive grid adjustments */
.grid {
  width: 100%;
  max-width: 100%;
}

/* Prevent wide text from breaking layout */
* {
  box-sizing: border-box;
}

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

@keyframes parallaxFloat {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

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

@keyframes pulse-gold {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
  }
  50% {
    box-shadow: 0 0 40px rgba(212, 175, 55, 0.8);
  }
}

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

.parallax-float {
  animation: parallaxFloat 6s ease-in-out infinite;
}

.shimmer-effect {
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.3), transparent);
  background-size: 1000px 100%;
  animation: shimmer 3s infinite;
}

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

/* Prose Styling for Readability */
.prose {
  color: #e5e5e5;
  line-height: 1.6;
}

.prose h2 {
  color: var(--gold);
  font-size: 2rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.prose h3 {
  color: var(--light-gold);
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.prose p {
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

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

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

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

.prose a {
  color: var(--gold);
  text-decoration: underline;
  transition: color 0.3s;
}

.prose a:hover {
  color: var(--light-gold);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.prose th {
  background: var(--red);
  color: var(--gold);
  padding: 0.75rem;
  text-align: left;
  font-weight: 600;
}

.prose td {
  padding: 0.75rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.prose tr:hover {
  background: rgba(212, 175, 55, 0.05);
}

/* Roman Pattern Background */
.roman-pattern {
  background-image: repeating-linear-gradient(
      45deg,
      transparent,
      transparent 10px,
      rgba(212, 175, 55, 0.03) 10px,
      rgba(212, 175, 55, 0.03) 20px
    ),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 10px,
      rgba(139, 0, 0, 0.03) 10px,
      rgba(139, 0, 0, 0.03) 20px
    );
}

/* Sidebar Transition */
.sidebar-transition {
  transition: transform 0.3s ease-in-out;
}

/* Mobile Bottom Menu Island */
.bottom-menu-island {
  backdrop-filter: blur(10px);
  background: rgba(26, 15, 15, 0.95);
  border-top: 2px solid var(--gold);
}

/* Game Card Hover Effect */
.game-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
}

/* CTA Button Styles */
.cta-button {
  background: linear-gradient(135deg, var(--gold), var(--dark-gold));
  color: var(--bg-darker);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.cta-button::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;
}

.cta-button:hover::before {
  left: 100%;
}

.cta-button:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.5);
}

/* Trustpilot Style Badge */
.trustpilot-badge {
  background: linear-gradient(135deg, #00b67a, #005f3d);
  border-radius: 12px;
  padding: 1.5rem;
  color: white;
}

.star-rating {
  color: #ffd700;
  font-size: 1.5rem;
}

/* Carousel Styles */
.review-carousel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  padding: 1rem 0;
  width: 100%;
  max-width: 100%;
}

@media (max-width: 768px) {
  .review-carousel {
    grid-template-columns: 1fr;
  }
}

.review-card {
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid var(--gold);
  border-radius: 8px;
  padding: 1.5rem;
  width: 100%;
  max-width: 100%;
}

/* Bonus Calculator */
.calculator-island {
  background: linear-gradient(135deg, rgba(139, 0, 0, 0.3), rgba(212, 175, 55, 0.2));
  border: 2px solid var(--gold);
  border-radius: 16px;
  padding: 2rem;
  backdrop-filter: blur(10px);
}

/* FAQ Accordion */
.faq-item {
  border-bottom: 1px solid rgba(212, 175, 55, 0.3);
  padding: 1rem 0;
}

.faq-question {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: var(--gold);
  transition: color 0.3s;
}

.faq-question:hover {
  color: var(--light-gold);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  color: #e5e5e5;
  padding-top: 0;
}

.faq-answer.active {
  max-height: 500px;
  padding-top: 1rem;
}

/* Payment Method Icons */
.payment-icon {
  background: white;
  border-radius: 8px;
  padding: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 80px;
  height: 50px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Statistics Grid */
.stat-card {
  background: linear-gradient(135deg, rgba(139, 0, 0, 0.4), rgba(212, 175, 55, 0.2));
  border: 1px solid var(--gold);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.3s;
}

.stat-card:hover {
  transform: scale(1.05);
}

/* Responsive utilities */
@media (max-width: 1023px) {
  .sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 40;
  }
}
