/* Custom animations and styling for Togawin */

/* Keyframe animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

@keyframes glow {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(185, 28, 28, 0.5), 0 0 40px rgba(185, 28, 28, 0.3);
  }
  50% {
    box-shadow: 0 0 30px rgba(185, 28, 28, 0.8), 0 0 60px rgba(185, 28, 28, 0.5);
  }
}

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

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

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

/* Animation utility classes */
.animate-fadeInUp {
  animation: fadeInUp 0.8s ease-out;
}

.animate-pulse-slow {
  animation: pulse 3s ease-in-out infinite;
}

.animate-slideInRight {
  animation: slideInRight 0.6s ease-out;
}

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

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

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

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

/* Roman Empire themed gradients */
.gradient-roman {
  background: linear-gradient(135deg, #5c3317 0%, #3d1f0f 50%, #2d1508 100%);
}

.gradient-gold {
  background: linear-gradient(135deg, #d4af37 0%, #c5a028 50%, #b8941f 100%);
}

.gradient-red-cta {
  background: linear-gradient(135deg, #b91c1c 0%, #991b1b 50%, #7f1d1d 100%);
}

/* Hero pattern background */
.hero-pattern {
  background-color: #5c3317;
  background-image: repeating-linear-gradient(
      45deg,
      transparent,
      transparent 35px,
      rgba(185, 28, 28, 0.1) 35px,
      rgba(185, 28, 28, 0.1) 70px
    ),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 35px,
      rgba(212, 175, 55, 0.05) 35px,
      rgba(212, 175, 55, 0.05) 70px
    );
}

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

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

/* CTA button effects */
.cta-btn {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.cta-btn::before {
  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, height 0.6s;
}

.cta-btn:hover::before {
  width: 300px;
  height: 300px;
}

/* Prose styling for readability */
.prose {
  max-width: 65ch;
  color: #e7d4b8;
}

.prose h1 {
  color: #d4af37;
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.prose h2 {
  color: #d4af37;
  font-size: 1.875rem;
  font-weight: 600;
  line-height: 1.3;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.prose h3 {
  color: #c5a028;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.4;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

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

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

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

.prose a {
  color: #d4af37;
  text-decoration: underline;
  transition: color 0.2s;
}

.prose a:hover {
  color: #b91c1c;
}

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

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

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #2d1508;
}

::-webkit-scrollbar-thumb {
  background: #5c3317;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #7a4419;
}

/* Badge styles */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 9999px;
  text-transform: uppercase;
}

.badge-gold {
  background: linear-gradient(135deg, #d4af37, #c5a028);
  color: #2d1508;
}

.badge-red {
  background: linear-gradient(135deg, #b91c1c, #991b1b);
  color: #fff;
}

/* Mobile menu transition */
.mobile-menu {
  transition: transform 0.3s ease-in-out;
}

.mobile-menu.open {
  transform: translateX(0);
}

.mobile-menu.closed {
  transform: translateX(100%);
}

/* Table styling */
.table-custom {
  width: 100%;
  border-collapse: collapse;
}

.table-custom th {
  background: #3d1f0f;
  color: #d4af37;
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  border-bottom: 2px solid #5c3317;
}

.table-custom td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #3d1f0f;
  color: #e7d4b8;
}

.table-custom tr:hover {
  background: rgba(92, 51, 23, 0.3);
}

/* Provider cloud */
.provider-tag {
  display: inline-block;
  padding: 0.5rem 1rem;
  margin: 0.25rem;
  background: rgba(92, 51, 23, 0.6);
  border: 1px solid #5c3317;
  border-radius: 0.5rem;
  color: #e7d4b8;
  font-size: 0.875rem;
  transition: all 0.3s ease;
}

.provider-tag:hover {
  background: #5c3317;
  border-color: #d4af37;
  color: #d4af37;
  transform: scale(1.05);
}

/* Wheel animation */
.wheel {
  border-radius: 50%;
  position: relative;
}

.wheel-segment {
  position: absolute;
  width: 100%;
  height: 100%;
  clip-path: polygon(50% 50%, 50% 0%, 100% 0%);
}
