/* Completely redesigned CSS with modern animations, gradients, and decorative elements */
/* Custom Styles for KlockoWave Casino - Enhanced Edition */
:root {
  --primary-green: #0d3b1f;
  --secondary-green: #1a5c35;
  --accent-green: #2d7a4f;
  --accent-yellow: #ffcc00;
  --light-yellow: #fff8dc;
  --gold: #d4af37;
  --dark-bg: #081810;
  --text-light: #ffffff;
  --text-dark: #0a0a0a;
  --gradient-1: linear-gradient(135deg, #0d3b1f 0%, #1a5c35 50%, #2d7a4f 100%);
  --gradient-2: linear-gradient(135deg, #ffcc00 0%, #d4af37 100%);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: #fafafa;
  overflow-x: hidden;
}

/* Decorative Background Pattern */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 50%, rgba(255, 204, 0, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(45, 122, 79, 0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

/* Text Logo Styling in Header */
.navbar {
  background: var(--gradient-1);
  padding: 1rem 0;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  position: relative;
  z-index: 100;
}

.navbar::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-2);
}

.navbar-brand .navbar-item {
  color: var(--accent-yellow);
  font-weight: 800;
  font-size: 1.8rem;
  letter-spacing: -0.5px;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.navbar-brand .navbar-item:hover {
  transform: scale(1.05);
  text-shadow: 3px 3px 12px rgba(255, 204, 0, 0.5);
}

.navbar-brand .navbar-item .fa-dice {
  animation: spinDice 4s ease-in-out infinite;
  display: inline-block;
}

@keyframes spinDice {
  0%,
  100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(10deg);
  }
  75% {
    transform: rotate(-10deg);
  }
}

.navbar-item {
  color: var(--text-light) !important;
  font-weight: 600;
  font-size: 1.05rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.navbar-item::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent-yellow);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.navbar-item:hover {
  color: var(--accent-yellow) !important;
  background-color: transparent !important;
  transform: translateY(-2px);
}

.navbar-item:hover::after {
  width: 80%;
}

.navbar-burger {
  color: var(--accent-yellow);
}

/* Enhanced Hero Section with Decorative Elements */
.hero.is-primary {
  background: var(--gradient-1);
  position: relative;
  overflow: hidden;
}

.hero.is-primary::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 204, 0, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 20s ease-in-out infinite;
}

.hero.is-primary::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(45, 122, 79, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 15s ease-in-out infinite reverse;
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
  33% {
    transform: translate(30px, -30px) rotate(120deg);
  }
  66% {
    transform: translate(-20px, 20px) rotate(240deg);
  }
}

.hero-body {
  padding: 5rem 1.5rem;
  position: relative;
  z-index: 1;
}

.hero .title {
  color: var(--accent-yellow);
  text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.4);
  animation: fadeInUp 0.8s ease-out;
  font-weight: 800;
  letter-spacing: -1px;
}

.hero .subtitle {
  color: var(--text-light);
  animation: fadeInUp 1s ease-out;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.3);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Enhanced Button Styling */
.button.is-warning {
  background: var(--gradient-2);
  color: var(--text-dark);
  font-weight: 700;
  border: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(255, 204, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.button.is-warning::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-warning:hover::before {
  width: 300px;
  height: 300px;
}

.button.is-warning:hover {
  background: var(--gradient-2);
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 25px rgba(255, 204, 0, 0.5);
}

.button.is-success {
  background: var(--gradient-1);
  color: var(--text-light);
  font-weight: 700;
  border: 2px solid var(--accent-yellow);
  transition: all 0.3s ease;
}

.button.is-success:hover {
  background: var(--accent-green);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(45, 122, 79, 0.4);
}

/* Enhanced Card Designs */
.card {
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
  border: 2px solid transparent;
  background: white;
  overflow: hidden;
  position: relative;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-2);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.card:hover::before {
  transform: scaleX(1);
}

.card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  border-color: var(--accent-yellow);
}

.card-header {
  background: var(--gradient-1);
  color: var(--text-light);
  padding: 1.5rem;
}

.card-header-title {
  color: var(--accent-yellow);
  font-weight: 700;
}

/* Enhanced Game Cards with Decorative Elements */
.game-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  position: relative;
}

.game-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 204, 0, 0.1) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.game-card:hover::after {
  opacity: 1;
}

.game-card:hover {
  transform: translateY(-12px) scale(1.03);
  box-shadow: 0 20px 50px rgba(255, 204, 0, 0.3);
}

.game-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.game-card:hover img {
  transform: scale(1.1);
}

/* Section Styles */
.section {
  padding: 4rem 1.5rem;
  position: relative;
}

/* Decorative Section Titles */
.section-title {
  color: var(--primary-green);
  font-weight: 800;
  margin-bottom: 3rem;
  text-align: center;
  position: relative;
  font-size: 2.5rem;
  letter-spacing: -1px;
}

.section-title::before {
  content: "◆";
  color: var(--accent-yellow);
  font-size: 1.5rem;
  display: block;
  margin-bottom: 1rem;
  animation: pulse 2s ease-in-out infinite;
}

.section-title::after {
  content: "";
  display: block;
  width: 100px;
  height: 5px;
  background: var(--gradient-2);
  margin: 1.5rem auto 0;
  border-radius: 3px;
  box-shadow: 0 2px 10px rgba(255, 204, 0, 0.4);
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.1);
  }
}

/* Enhanced Feature Boxes with Icons */
.feature-box {
  background: white;
  padding: 2.5rem;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  height: 100%;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  border: 2px solid transparent;
}

.feature-box::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: var(--gradient-1);
  transform: rotate(45deg) translateY(100%);
  transition: transform 0.6s ease;
  z-index: 0;
}

.feature-box:hover::before {
  transform: rotate(45deg) translateY(0);
}

.feature-box > * {
  position: relative;
  z-index: 1;
}

.feature-box:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
  border-color: var(--accent-yellow);
}

.feature-box:hover {
  color: var(--text-light);
}

.feature-box:hover .icon {
  color: var(--accent-yellow);
  transform: scale(1.2) rotate(10deg);
}

.feature-box .icon {
  font-size: 3.5rem;
  color: var(--accent-green);
  margin-bottom: 1.5rem;
  transition: all 0.4s ease;
  display: inline-block;
}

.feature-box .title {
  transition: color 0.3s ease;
}

.feature-box:hover .title {
  color: var(--accent-yellow);
}

/* Footer */
.footer {
  background: var(--gradient-1);
  color: var(--text-light);
  padding: 4rem 1.5rem 2rem;
  position: relative;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-2);
}

.footer a {
  color: var(--accent-yellow);
  transition: all 0.3s ease;
  position: relative;
}

.footer a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-yellow);
  transition: width 0.3s ease;
}

.footer a:hover::after {
  width: 100%;
}

.footer a:hover {
  color: var(--light-yellow);
}

.footer-bottom {
  border-top: 2px solid rgba(255, 204, 0, 0.2);
  margin-top: 3rem;
  padding-top: 2rem;
  text-align: center;
}

/* Enhanced CTA Section with Decorative Elements */
.cta-section {
  background: var(--gradient-1);
  color: var(--text-light);
  padding: 5rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before,
.cta-section::after {
  content: "♠ ♥ ♦ ♣";
  position: absolute;
  font-size: 4rem;
  color: rgba(255, 204, 0, 0.1);
  letter-spacing: 2rem;
}

.cta-section::before {
  top: 2rem;
  left: 10%;
  animation: float 20s ease-in-out infinite;
}

.cta-section::after {
  bottom: 2rem;
  right: 10%;
  animation: float 25s ease-in-out infinite reverse;
}

.cta-section .title {
  color: var(--accent-yellow);
  position: relative;
  z-index: 1;
}

/* Improved Cookie Banner with Better Positioning */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 600px;
  margin: 0 auto;
  background: white;
  color: var(--text-dark);
  padding: 2rem;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
  z-index: 999999;
  display: none;
  border-radius: 20px;
  border: 3px solid var(--accent-yellow);
  animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(100px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cookie-banner.is-active {
  display: block;
}

.cookie-banner .buttons {
  margin-top: 1.5rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.cookie-banner .button {
  flex: 1;
  max-width: 150px;
}

/* Team Cards */
.team-member {
  text-align: center;
  padding: 2.5rem;
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
  height: 100%;
}

.team-member:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.team-member img {
  border-radius: 50%;
  width: 150px;
  height: 150px;
  object-fit: cover;
  margin-bottom: 1.5rem;
  border: 5px solid var(--accent-yellow);
  box-shadow: 0 5px 20px rgba(255, 204, 0, 0.3);
  transition: all 0.4s ease;
}

.team-member:hover img {
  transform: scale(1.1);
  border-color: var(--accent-green);
}

/* FAQ Accordion */
.faq-item {
  margin-bottom: 1.5rem;
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.faq-item:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.faq-question {
  padding: 2rem;
  background: var(--gradient-1);
  color: var(--text-light);
  cursor: pointer;
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
}

.faq-question:hover {
  background: var(--accent-green);
  padding-left: 2.5rem;
}

.faq-answer {
  padding: 0;
  max-height: 0;
  overflow: hidden;
  background: white;
  transition: all 0.4s ease;
  font-size: 1.05rem;
  line-height: 1.8;
}

.faq-answer.is-active {
  padding: 2rem;
  max-height: 500px;
  border-top: 3px solid var(--accent-yellow);
}

/* Blog Cards */
.blog-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
  height: 100%;
}

.blog-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.blog-card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.blog-card:hover .blog-card-image {
  transform: scale(1.1);
}

.blog-card-content {
  padding: 2rem;
}

.blog-date {
  color: var(--accent-green);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Contact Info */
.contact-info {
  background: white;
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
}

.contact-info:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.contact-info .icon {
  color: var(--accent-green);
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

/* Event Cards */
.event-card {
  background: white;
  border-left: 6px solid var(--accent-yellow);
  padding: 2.5rem;
  margin-bottom: 2rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
}

.event-card:hover {
  border-left-width: 12px;
  transform: translateX(10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.event-date {
  color: var(--accent-green);
  font-weight: 800;
  font-size: 1.3rem;
}

/* Age Restriction Badge */
.age-badge {
  background: var(--gradient-2);
  color: var(--text-dark);
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  font-weight: 800;
  display: inline-block;
  margin: 1rem 0;
  box-shadow: 0 4px 15px rgba(255, 204, 0, 0.3);
  animation: pulse 2s ease-in-out infinite;
}

/* Modal Improvements */
.modal-background {
  background-color: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(5px);
}

.modal-card {
  background-color: var(--dark-bg);
  border-radius: 20px;
  overflow: hidden;
}

.modal-card-head {
  background: var(--gradient-1);
  border-bottom: 3px solid var(--accent-yellow);
  padding: 1.5rem;
}

.modal-card-title {
  color: var(--accent-yellow);
  font-weight: 700;
}

.delete {
  background-color: var(--accent-yellow);
}

.delete:hover {
  background-color: var(--gold);
}

/* Form Styles */
.input,
.textarea,
.select select {
  border-color: var(--accent-green);
  border-width: 2px;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.input:focus,
.textarea:focus,
.select select:focus {
  border-color: var(--accent-yellow);
  box-shadow: 0 0 0 3px rgba(255, 204, 0, 0.2);
}

/* Scroll to Top Button */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--gradient-2);
  color: var(--text-dark);
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(255, 204, 0, 0.4);
  transition: all 0.4s ease;
  z-index: 1000;
  font-size: 1.3rem;
  font-weight: bold;
}

.scroll-top:hover {
  transform: translateY(-8px) scale(1.1);
  box-shadow: 0 10px 30px rgba(255, 204, 0, 0.6);
}

.scroll-top.is-active {
  display: flex;
}

/* Responsive */
@media screen and (max-width: 768px) {
  .hero-body {
    padding: 3rem 1rem;
  }

  .section {
    padding: 2.5rem 1rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .game-card img {
    height: 220px;
  }

  .navbar-brand .navbar-item {
    font-size: 1.5rem;
  }

  .cookie-banner {
    left: 10px;
    right: 10px;
    padding: 1.5rem;
  }

  .cookie-banner .buttons {
    flex-direction: column;
  }

  .cookie-banner .button {
    max-width: 100%;
  }
}

/* Additional Decorative Elements */
.box {
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.notification {
  border-radius: 15px;
  border: 2px solid var(--accent-green);
}

.tag {
  border-radius: 20px;
  font-weight: 600;
}

/* Loading Animation for Images */
img {
  max-width: 100%;
  height: auto;
}

img[loading="lazy"] {
  transition: opacity 0.5s ease;
}

img[loading="lazy"].loaded {
  opacity: 1;
}
