/* Custom Styles for KiwiDrift - Free Social Online Casino */
:root {
  --primary-pink: #d946a6;
  --dark-pink: #a21c6f;
  --light-pink: #f0abdf;
  --bg-dark: #1a0a14;
  --bg-card: #2d1824;
  --text-light: #f8f4f7;
  --accent-gold: #ffd700;
}

* {
  scroll-behavior: smooth;
}

body {
  background: linear-gradient(135deg, var(--bg-dark) 0%, #0f0511 100%);
  color: var(--text-light);
  font-family: "Poppins", sans-serif;
  min-height: 100vh;
  position: relative;
}

/* Adding decorative background pattern */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(circle at 20% 30%, rgba(217, 70, 166, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(162, 28, 111, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(240, 171, 223, 0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

body > * {
  position: relative;
  z-index: 1;
}

/* Improved Header with text logo */
.navbar {
  background: rgba(26, 10, 20, 0.95) !important;
  backdrop-filter: blur(20px);
  border-bottom: 2px solid transparent;
  border-image: linear-gradient(90deg, transparent, var(--primary-pink), transparent) 1;
  box-shadow: 0 8px 32px rgba(217, 70, 166, 0.2);
}

.navbar-brand .logo {
  font-size: 1.8rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary-pink), var(--light-pink), var(--primary-pink));
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 3s ease infinite;
  letter-spacing: 1px;
  text-transform: uppercase;
  position: relative;
  padding: 0.5rem 1rem;
}

.navbar-brand .logo::before {
  content: "◆";
  margin-right: 8px;
  color: var(--primary-pink);
  -webkit-text-fill-color: var(--primary-pink);
  animation: pulse 2s ease-in-out infinite;
}

.navbar-brand .logo::after {
  content: "◆";
  margin-left: 8px;
  color: var(--primary-pink);
  -webkit-text-fill-color: var(--primary-pink);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes gradientShift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(0.9);
  }
}

.navbar-item {
  color: var(--text-light) !important;
  transition: all 0.3s ease;
  position: relative;
  font-weight: 500;
}

.navbar-item::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-pink), var(--light-pink));
  transition: width 0.3s ease;
}

.navbar-item:hover::after,
.navbar-item.is-active::after {
  width: 80%;
}

.navbar-item:hover {
  color: var(--primary-pink) !important;
  background: rgba(217, 70, 166, 0.1) !important;
}

.navbar-item.is-active {
  color: var(--primary-pink) !important;
  font-weight: 600;
}

/* Enhanced Hero Section with decorative elements */
.hero {
  background: linear-gradient(135deg, rgba(217, 70, 166, 0.15) 0%, rgba(162, 28, 111, 0.25) 100%);
  border-bottom: 3px solid transparent;
  border-image: linear-gradient(90deg, var(--primary-pink), var(--light-pink), var(--primary-pink)) 1;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(217, 70, 166, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 20s ease-in-out infinite;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -50%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(162, 28, 111, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 25s ease-in-out infinite reverse;
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(30px, -30px) scale(1.1);
  }
  66% {
    transform: translate(-20px, 20px) scale(0.9);
  }
}

.hero-body {
  position: relative;
  z-index: 2;
}

.title,
.subtitle {
  color: var(--text-light) !important;
  text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.6);
}

/* More vibrant and modern button design */
.button.is-primary {
  background: linear-gradient(135deg, var(--primary-pink) 0%, var(--dark-pink) 100%) !important;
  border: 2px solid transparent;
  color: white !important;
  font-weight: 700;
  padding: 1.5rem 3rem;
  border-radius: 50px;
  box-shadow: 0 8px 25px rgba(217, 70, 166, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  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: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.button.is-primary:hover::before {
  left: 100%;
}

.button.is-primary:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 15px 40px rgba(217, 70, 166, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  border-color: var(--light-pink);
}

.button.is-outlined {
  border: 2px solid var(--primary-pink) !important;
  color: var(--primary-pink) !important;
  background: transparent !important;
  font-weight: 600;
  transition: all 0.3s ease;
}

.button.is-outlined:hover {
  background: var(--primary-pink) !important;
  color: white !important;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(217, 70, 166, 0.4);
}

/* Enhanced Cards with better shadows and hover effects */
.card {
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(45, 24, 36, 0.8) 100%) !important;
  border: 2px solid rgba(217, 70, 166, 0.3);
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: hidden;
  position: relative;
}

.card::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, var(--primary-pink), var(--light-pink));
  border-radius: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.card:hover::before {
  opacity: 1;
}

.card:hover {
  transform: translateY(-15px);
  box-shadow: 0 20px 60px rgba(217, 70, 166, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.card-image img {
  border-bottom: 2px solid var(--primary-pink);
  transition: transform 0.3s ease;
}

.card:hover .card-image img {
  transform: scale(1.05);
}

.card-content {
  color: var(--text-light);
}

/* Improved Game Cards with better overlay */
.game-card {
  position: relative;
  cursor: pointer;
}

.game-card::after {
  content: "▶ PLAY NOW";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(135deg, rgba(217, 70, 166, 0.98), rgba(162, 28, 111, 0.95));
  color: white;
  padding: 1.5rem 3rem;
  border-radius: 50px;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 2px;
  opacity: 0;
  transition: opacity 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border: 2px solid white;
}

.game-card:hover::after {
  opacity: 1;
  animation: buttonPulse 1.5s ease infinite;
}

@keyframes buttonPulse {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.05);
  }
}

.game-card:hover .card-image img {
  filter: brightness(0.5) blur(2px);
}

/* Modal */
.modal-background {
  background: rgba(0, 0, 0, 0.95) !important;
  backdrop-filter: blur(10px);
}

.modal-content {
  width: 90vw;
  max-width: 1200px;
  animation: modalSlideIn 0.4s ease;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.game-iframe {
  width: 100%;
  height: 80vh;
  border: 3px solid var(--primary-pink);
  border-radius: 15px;
  box-shadow: 0 10px 50px rgba(217, 70, 166, 0.5);
}

/* Sections */
.section {
  padding: 5rem 1.5rem;
}

/* Enhanced section titles with decorative elements */
.section-title {
  text-align: center;
  margin-bottom: 4rem;
  font-size: 2.8rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-pink), var(--light-pink), var(--primary-pink));
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 4s ease infinite;
  position: relative;
  padding-bottom: 1rem;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--primary-pink), transparent);
  border-radius: 2px;
}

/* More attractive feature boxes */
.feature-box {
  text-align: center;
  padding: 2.5rem;
  background: linear-gradient(135deg, rgba(45, 24, 36, 0.6) 0%, rgba(26, 10, 20, 0.8) 100%);
  border: 2px solid rgba(217, 70, 166, 0.3);
  border-radius: 20px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  height: 100%;
  position: relative;
  overflow: hidden;
}

.feature-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--primary-pink), var(--light-pink), var(--primary-pink));
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}

.feature-box:hover::before {
  transform: translateX(0);
}

.feature-box:hover {
  border-color: var(--primary-pink);
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 15px 50px rgba(217, 70, 166, 0.4);
  background: linear-gradient(135deg, rgba(45, 24, 36, 0.9) 0%, rgba(26, 10, 20, 0.95) 100%);
}

.feature-icon {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 4px 10px rgba(217, 70, 166, 0.6));
}

/* Footer */
.footer {
  background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-card) 100%) !important;
  border-top: 3px solid transparent;
  border-image: linear-gradient(90deg, transparent, var(--primary-pink), transparent) 1;
  color: var(--text-light);
  padding: 4rem 1.5rem;
}

.footer a {
  color: var(--light-pink) !important;
  transition: all 0.3s ease;
  position: relative;
}

.footer a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-pink);
  transition: width 0.3s ease;
}

.footer a:hover::after {
  width: 100%;
}

.footer a:hover {
  color: var(--primary-pink) !important;
  transform: translateX(5px);
}

/* Fixed Cookie Banner with proper z-index and visibility */
.cookie-banner {
  position: fixed;
  bottom: -200px;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, rgba(45, 24, 36, 0.98) 0%, rgba(26, 10, 20, 0.98) 100%);
  backdrop-filter: blur(20px);
  border-top: 3px solid var(--primary-pink);
  padding: 2rem 1.5rem;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.8), 0 -2px 20px rgba(217, 70, 166, 0.4);
  z-index: 99999;
  transition: bottom 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.cookie-banner.is-active {
  bottom: 0;
}

.cookie-banner p {
  color: var(--text-light);
  font-size: 1rem;
}

/* Enhanced form inputs */
.input,
.textarea,
.select select {
  background: rgba(26, 10, 20, 0.7) !important;
  border: 2px solid rgba(217, 70, 166, 0.3) !important;
  color: var(--text-light) !important;
  border-radius: 12px;
  transition: all 0.3s ease;
  font-weight: 500;
}

.input:focus,
.textarea:focus,
.select select:focus {
  border-color: var(--primary-pink) !important;
  box-shadow: 0 0 0 0.25em rgba(217, 70, 166, 0.35) !important;
  background: rgba(26, 10, 20, 0.9) !important;
}

.input::placeholder,
.textarea::placeholder {
  color: rgba(248, 244, 247, 0.5) !important;
}

/* FAQ */
.faq-item {
  background: linear-gradient(135deg, rgba(45, 24, 36, 0.8) 0%, rgba(26, 10, 20, 0.9) 100%);
  border: 2px solid rgba(217, 70, 166, 0.3);
  border-radius: 15px;
  margin-bottom: 1.5rem;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: var(--primary-pink);
  box-shadow: 0 8px 30px rgba(217, 70, 166, 0.3);
}

.faq-question {
  padding: 1.5rem;
  cursor: pointer;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
  background: linear-gradient(90deg, transparent, rgba(217, 70, 166, 0.05), transparent);
}

.faq-question:hover {
  background: linear-gradient(90deg, transparent, rgba(217, 70, 166, 0.15), transparent);
  padding-left: 2rem;
}

.faq-question .icon {
  transition: transform 0.3s ease;
}

.faq-answer {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
}

.faq-answer.is-active {
  padding: 1.5rem;
  max-height: 800px;
  opacity: 1;
}

/* Blog Card */
.blog-card {
  margin-bottom: 2rem;
}

.blog-meta {
  color: var(--light-pink);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  font-weight: 500;
}

/* Team Member */
.team-member {
  text-align: center;
}

.team-avatar {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 4px solid var(--primary-pink);
  margin: 0 auto 1.5rem;
  display: block;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(217, 70, 166, 0.4);
}

.team-member:hover .team-avatar {
  transform: scale(1.1);
  box-shadow: 0 12px 35px rgba(217, 70, 166, 0.6);
}

/* Event Card */
.event-card {
  background: linear-gradient(135deg, rgba(45, 24, 36, 0.9) 0%, rgba(162, 28, 111, 0.3) 100%);
}

.box {
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

/* Contact Icons */
.contact-icon {
  font-size: 3rem;
  color: var(--primary-pink);
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 4px 10px rgba(217, 70, 166, 0.5));
}

.contact-box {
  text-align: center;
  padding: 2.5rem;
  background: linear-gradient(135deg, rgba(45, 24, 36, 0.7) 0%, rgba(26, 10, 20, 0.9) 100%);
  border: 2px solid rgba(217, 70, 166, 0.3);
  border-radius: 20px;
  height: 100%;
  transition: all 0.4s ease;
}

.contact-box:hover {
  border-color: var(--primary-pink);
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(217, 70, 166, 0.4);
}

.contact-box a {
  color: var(--text-light);
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 700;
  transition: all 0.3s ease;
}

.contact-box a:hover {
  color: var(--primary-pink);
}

/* Tag styling */
.tag {
  border-radius: 20px;
  font-weight: 600;
  padding: 0.5rem 1rem;
}

.tag.is-primary {
  background: linear-gradient(135deg, var(--primary-pink), var(--dark-pink)) !important;
  color: white;
}

/* Responsive */
@media screen and (max-width: 768px) {
  .section-title {
    font-size: 2rem;
  }

  .button.is-primary {
    padding: 1rem 2rem;
    font-size: 0.9rem;
  }

  .game-iframe {
    height: 60vh;
  }

  .navbar-brand .logo {
    font-size: 1.4rem;
  }

  .hero::before,
  .hero::after {
    width: 300px;
    height: 300px;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Add decorative floating shapes */
.decorative-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.1;
  animation: floatShape 20s ease-in-out infinite;
  pointer-events: none;
}

@keyframes floatShape {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
  33% {
    transform: translate(50px, -50px) rotate(120deg);
  }
  66% {
    transform: translate(-30px, 30px) rotate(240deg);
  }
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--primary-pink), var(--dark-pink));
  border-radius: 6px;
  border: 2px solid var(--bg-dark);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--light-pink), var(--primary-pink));
}

/* Selection styling */
::selection {
  background: var(--primary-pink);
  color: white;
}

::-moz-selection {
  background: var(--primary-pink);
  color: white;
}
