/* Custom Styles for Tundrilo Social Casino */
:root {
  --primary-yellow: #ffd93d;
  --dark-yellow: #f4c430;
  --deep-yellow: #d4a017;
  --accent-gold: #ffb703;
  --dark-bg: #1a1a1a;
  --darker-bg: #0f0f0f;
  --light-text: #ffffff;
  --gray-text: #cccccc;
  --purple-accent: #9333ea;
  --cyan-accent: #06b6d4;
}

* {
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  background: #0a0a0a;
  background-image: radial-gradient(at 20% 80%, rgba(255, 217, 61, 0.03) 0px, transparent 50%),
    radial-gradient(at 80% 20%, rgba(212, 160, 23, 0.05) 0px, transparent 50%);
  color: var(--light-text);
  min-height: 100vh;
}

/* Enhanced navbar with better backdrop and border */
.navbar {
  background: rgba(10, 10, 10, 0.98) !important;
  backdrop-filter: blur(15px);
  box-shadow: 0 4px 30px rgba(255, 217, 61, 0.15);
  border-bottom: 2px solid transparent;
  border-image: linear-gradient(90deg, transparent, var(--primary-yellow), transparent) 1;
}

/* Text logo with gradient effect and underline animation */
.navbar-brand .logo-text {
  font-size: 1.9rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-yellow) 0%, var(--accent-gold) 50%, var(--primary-yellow) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 2px;
  position: relative;
  transition: all 0.3s ease;
  padding: 0.5rem 1rem;
}

.navbar-brand .logo-text::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-yellow), var(--accent-gold));
  transition: width 0.3s ease;
  border-radius: 2px;
}

.navbar-brand .logo-text:hover::after {
  width: 80%;
}

.navbar-brand .logo-text i {
  background: linear-gradient(135deg, var(--primary-yellow), var(--accent-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-right: 10px;
  font-size: 1.6rem;
  animation: diceRotate 3s ease-in-out infinite;
}

@keyframes diceRotate {
  0%,
  100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(-15deg);
  }
  75% {
    transform: rotate(15deg);
  }
}

/* Backward compatibility for old logo class */
.navbar-brand .logo {
  font-size: 1.9rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-yellow) 0%, var(--accent-gold) 50%, var(--primary-yellow) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 2px;
  position: relative;
  transition: all 0.3s ease;
  padding: 0.5rem 1rem;
}

.navbar-brand .logo::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-yellow), var(--accent-gold));
  transition: width 0.3s ease;
  border-radius: 2px;
}

.navbar-brand .logo:hover::after {
  width: 80%;
}

.navbar-brand .logo i {
  background: linear-gradient(135deg, var(--primary-yellow), var(--accent-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-right: 10px;
  font-size: 1.6rem;
  animation: diceRotate 3s ease-in-out infinite;
}

.navbar-item {
  color: var(--gray-text) !important;
  transition: all 0.3s ease;
  font-weight: 500;
  position: relative;
}

.navbar-item::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--primary-yellow);
  transition: width 0.3s ease;
}

.navbar-item:hover {
  color: var(--primary-yellow) !important;
  background-color: transparent !important;
}

.navbar-item:hover::before {
  width: 80%;
}

/* Enhanced hero section with animated background patterns */
.hero-section {
  background: linear-gradient(135deg, rgba(255, 217, 61, 0.08) 0%, rgba(10, 10, 10, 0.95) 100%);
  padding: 6rem 2rem;
  border-bottom: 3px solid transparent;
  border-image: linear-gradient(90deg, transparent, var(--primary-yellow), transparent) 1;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(circle at 20% 50%, rgba(255, 217, 61, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(212, 160, 23, 0.08) 0%, transparent 50%);
  animation: heroFloat 8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes heroFloat {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-20px) scale(1.05);
  }
}

.hero-title {
  font-size: 3.8rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary-yellow) 0%, var(--accent-gold) 50%, var(--dark-yellow) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
  line-height: 1.2;
  text-shadow: 0 0 80px rgba(255, 217, 61, 0.3);
  animation: titleGlow 3s ease-in-out infinite;
}

@keyframes titleGlow {
  0%,
  100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.2);
  }
}

.hero-subtitle {
  font-size: 1.4rem;
  color: var(--gray-text);
  margin-bottom: 2.5rem;
  position: relative;
  z-index: 1;
  line-height: 1.6;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Enhanced button styles with gradient borders and hover effects */
.button.is-primary {
  background: linear-gradient(135deg, var(--primary-yellow) 0%, var(--accent-gold) 100%);
  border: none;
  color: var(--darker-bg);
  font-weight: 700;
  padding: 1.5rem 3rem;
  font-size: 1.15rem;
  border-radius: 50px;
  box-shadow: 0 8px 30px rgba(255, 217, 61, 0.4);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  position: relative;
  overflow: hidden;
}

.button.is-primary::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.button.is-primary:hover::before {
  width: 300px;
  height: 300px;
}

.button.is-primary:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 12px 40px rgba(255, 217, 61, 0.6);
  background: linear-gradient(135deg, var(--accent-gold) 0%, var(--primary-yellow) 100%);
}

/* Outlined button variant */
.button.is-primary.is-outlined {
  background: transparent;
  border: 2px solid var(--primary-yellow);
  color: var(--primary-yellow);
  box-shadow: 0 4px 15px rgba(255, 217, 61, 0.2);
}

.button.is-primary.is-outlined:hover {
  background: linear-gradient(135deg, var(--primary-yellow) 0%, var(--accent-gold) 100%);
  color: var(--darker-bg);
  border-color: transparent;
}

/* Enhanced card design with gradient borders and animations */
.card {
  background: linear-gradient(135deg, rgba(26, 26, 26, 0.95) 0%, rgba(15, 15, 15, 0.98) 100%);
  border: 2px solid rgba(212, 160, 23, 0.3);
  border-radius: 20px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 217, 61, 0.1), transparent);
  transition: left 0.6s;
}

.card:hover::before {
  left: 100%;
}

.card:hover {
  transform: translateY(-12px);
  border-color: var(--primary-yellow);
  box-shadow: 0 15px 50px rgba(255, 217, 61, 0.4);
}

.card-header {
  background: linear-gradient(135deg, var(--deep-yellow) 0%, var(--dark-yellow) 100%);
  border-radius: 18px 18px 0 0;
}

.card-header-title {
  color: var(--darker-bg);
  font-weight: 700;
}

.card-content {
  color: var(--gray-text);
  position: relative;
  z-index: 1;
}

/* Improved game card with better overlay and animations */
.game-card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  cursor: pointer;
}

.game-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 217, 61, 0.2) 0%, rgba(212, 160, 23, 0.3) 100%);
  opacity: 0;
  transition: opacity 0.4s;
}

.game-card:hover::after {
  opacity: 1;
}

.game-card img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.game-card:hover img {
  transform: scale(1.15);
}

.game-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(10, 10, 10, 0.98) 0%, rgba(10, 10, 10, 0.8) 60%, transparent 100%);
  padding: 2.5rem;
  transform: translateY(65%);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 2;
}

.game-card:hover .game-overlay {
  transform: translateY(0);
}

/* Modal with improved backdrop and styling */
.modal-background {
  background-color: rgba(0, 0, 0, 0.96);
  backdrop-filter: blur(10px);
}

.modal-content {
  max-width: 95%;
  width: 1400px;
}

.game-iframe {
  width: 100%;
  height: 85vh;
  border: 3px solid var(--primary-yellow);
  border-radius: 15px;
  box-shadow: 0 10px 50px rgba(255, 217, 61, 0.3);
}

.modal-close {
  background-color: var(--primary-yellow);
  transition: transform 0.3s ease;
}

.modal-close:hover {
  transform: rotate(90deg) scale(1.1);
}

/* Sections */
.section {
  padding: 5rem 1.5rem;
  position: relative;
}

.section-title {
  font-size: 2.8rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-yellow) 0%, var(--accent-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
  margin-bottom: 3.5rem;
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--primary-yellow), transparent);
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1.6rem;
  color: var(--primary-yellow);
  font-weight: 700;
  margin-bottom: 1rem;
}

/* Enhanced feature boxes with icons and animations */
.feature-box {
  text-align: center;
  padding: 2.5rem;
  position: relative;
}

.feature-icon {
  font-size: 3.5rem;
  background: linear-gradient(135deg, var(--primary-yellow), var(--accent-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.5rem;
  display: inline-block;
  animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Enhanced CTA section with animated background */
.cta-section {
  background: linear-gradient(135deg, rgba(212, 160, 23, 0.15) 0%, rgba(255, 217, 61, 0.08) 100%);
  padding: 5rem 2rem;
  text-align: center;
  border-top: 3px solid transparent;
  border-bottom: 3px solid transparent;
  border-image: linear-gradient(90deg, transparent, var(--primary-yellow), transparent) 1;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 217, 61, 0.08) 0%, transparent 70%);
  animation: ctaRotate 20s linear infinite;
}

@keyframes ctaRotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.cta-section > * {
  position: relative;
  z-index: 1;
}

/* Footer */
.footer {
  background: var(--darker-bg);
  border-top: 3px solid transparent;
  border-image: linear-gradient(90deg, transparent, var(--deep-yellow), transparent) 1;
  padding: 3.5rem 1.5rem;
  color: var(--gray-text);
}

.footer a {
  color: var(--dark-yellow);
  transition: all 0.3s ease;
  position: relative;
}

.footer a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--primary-yellow);
  transition: width 0.3s ease;
}

.footer a:hover {
  color: var(--primary-yellow);
}

.footer a:hover::after {
  width: 100%;
}

/* Improved cookie consent with better animation and positioning */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, rgba(26, 26, 26, 0.98) 0%, rgba(10, 10, 10, 0.98) 100%);
  border-top: 3px solid var(--primary-yellow);
  padding: 1.5rem;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.8);
  z-index: 9999;
  display: none;
  backdrop-filter: blur(10px);
}

.cookie-consent.show {
  display: block;
  animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.cookie-consent .buttons {
  gap: 1rem;
}

/* FAQ Accordion */
.faq-item {
  background: linear-gradient(135deg, rgba(26, 26, 26, 0.9) 0%, rgba(15, 15, 15, 0.95) 100%);
  border: 2px solid rgba(212, 160, 23, 0.3);
  border-radius: 15px;
  margin-bottom: 1.5rem;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: var(--primary-yellow);
  box-shadow: 0 5px 20px rgba(255, 217, 61, 0.2);
}

.faq-question {
  padding: 1.8rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--primary-yellow);
  transition: all 0.3s ease;
}

.faq-question:hover {
  background: rgba(255, 217, 61, 0.08);
  padding-left: 2.2rem;
}

.faq-question i {
  transition: transform 0.3s ease;
  font-size: 0.9rem;
}

.faq-answer {
  padding: 0 1.8rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  color: var(--gray-text);
  line-height: 1.8;
}

.faq-answer.active {
  padding: 1.8rem;
  max-height: 800px;
}

/* Contact Form */
.input,
.textarea,
select {
  background: rgba(26, 26, 26, 0.9) !important;
  border: 2px solid rgba(212, 160, 23, 0.3) !important;
  color: var(--light-text) !important;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.input:focus,
.textarea:focus,
select:focus {
  border-color: var(--primary-yellow) !important;
  box-shadow: 0 0 15px rgba(255, 217, 61, 0.3) !important;
  background: rgba(26, 26, 26, 1) !important;
}

.input::placeholder,
.textarea::placeholder {
  color: var(--gray-text);
}

/* Blog Cards */
.blog-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.blog-card .card-image img {
  border-radius: 20px 20px 0 0;
  transition: transform 0.6s ease;
}

.blog-card:hover .card-image img {
  transform: scale(1.08);
}

.blog-meta {
  color: var(--dark-yellow);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  font-weight: 500;
}

.blog-meta i {
  color: var(--primary-yellow);
  margin-right: 0.3rem;
}

/* Team Cards */
.team-member {
  text-align: center;
}

.team-avatar {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 4px solid var(--primary-yellow);
  margin: 0 auto 1.5rem;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(255, 217, 61, 0.3);
  transition: all 0.3s ease;
}

.team-avatar:hover {
  transform: scale(1.1);
  box-shadow: 0 15px 40px rgba(255, 217, 61, 0.5);
}

/* Responsive design improvements */
@media screen and (max-width: 768px) {
  .hero-title {
    font-size: 2.8rem;
  }

  .hero-subtitle {
    font-size: 1.15rem;
  }

  .button.is-primary {
    padding: 1.2rem 2.5rem;
    font-size: 1rem;
  }

  .section-title {
    font-size: 2.2rem;
  }

  .game-iframe {
    height: 65vh;
  }

  .navbar-brand .logo-text,
  .navbar-brand .logo {
    font-size: 1.5rem;
  }

  .cookie-consent .columns {
    flex-direction: column;
  }

  .cookie-consent .has-text-right {
    text-align: left !important;
    margin-top: 1rem;
  }

  .cookie-consent .buttons {
    width: 100%;
  }

  .cookie-consent .button {
    width: 100%;
  }
}

/* Lazy Loading */
img[loading="lazy"] {
  transition: opacity 0.5s ease;
}

img[loading="lazy"].loaded {
  opacity: 1;
}

/* Event Cards */
.event-card {
  position: relative;
  overflow: hidden;
}

.event-date {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: linear-gradient(135deg, var(--primary-yellow), var(--accent-gold));
  color: var(--darker-bg);
  padding: 0.6rem 1.2rem;
  border-radius: 10px;
  font-weight: 800;
  font-size: 0.85rem;
  box-shadow: 0 5px 15px rgba(255, 217, 61, 0.4);
  z-index: 10;
  letter-spacing: 0.5px;
}

/* Info Box */
.info-box {
  background: linear-gradient(135deg, rgba(255, 217, 61, 0.1) 0%, rgba(212, 160, 23, 0.05) 100%);
  border-left: 5px solid var(--primary-yellow);
  padding: 2rem;
  border-radius: 15px;
  margin: 2rem 0;
  box-shadow: 0 5px 20px rgba(255, 217, 61, 0.1);
}

.info-box p {
  color: var(--light-text);
  margin: 0;
  line-height: 1.8;
}

/* Contact Info */
.contact-info-box {
  background: linear-gradient(135deg, rgba(26, 26, 26, 0.9) 0%, rgba(15, 15, 15, 0.95) 100%);
  border: 2px solid rgba(212, 160, 23, 0.3);
  border-radius: 20px;
  padding: 2.5rem;
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
  color: var(--gray-text);
  transition: all 0.3s ease;
}

.contact-item:hover {
  transform: translateX(10px);
}

.contact-item i {
  color: var(--primary-yellow);
  font-size: 1.8rem;
  margin-right: 1.5rem;
  width: 40px;
  text-align: center;
}

.contact-item a {
  color: var(--primary-yellow);
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 600;
}

.contact-item a:hover {
  color: var(--accent-gold);
  text-decoration: underline;
}

/* Progress bar styling */
.progress-bar {
  background: rgba(26, 26, 26, 0.8);
  height: 25px;
  border-radius: 15px;
  overflow: hidden;
  border: 2px solid rgba(212, 160, 23, 0.3);
}

.progress-bar-fill {
  background: linear-gradient(90deg, var(--accent-gold) 0%, var(--primary-yellow) 50%, var(--accent-gold) 100%);
  height: 100%;
  border-radius: 13px;
  box-shadow: 0 0 20px rgba(255, 217, 61, 0.5);
  animation: progressShine 2s ease-in-out infinite;
}

@keyframes progressShine {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}

/* Scroll animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* Checkbox styling for better visibility */
input[type="checkbox"] {
  accent-color: var(--primary-yellow);
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

/* Label improvements */
.label {
  font-weight: 600;
  color: var(--light-text) !important;
  margin-bottom: 0.5rem;
}

/* Enhanced select dropdown */
.select select {
  cursor: pointer;
}

.select::after {
  border-color: var(--primary-yellow) !important;
}

/* Utility classes */
.text-gradient {
  background: linear-gradient(135deg, var(--primary-yellow) 0%, var(--accent-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glow-effect {
  box-shadow: 0 0 20px rgba(255, 217, 61, 0.3);
}
