/* Enhanced Styles for Glacivra Social Casino */
:root {
  --primary-dark: #0a0f0a;
  --primary-green: #27ae60;
  --primary-yellow: #f1c40f;
  --dark-green: #1e8449;
  --dark-yellow: #d4a017;
  --accent-gold: #ffd700;
  --accent-emerald: #50c878;
  --text-light: #f8f9fa;
  --text-gray: #bdc3c7;
  --bg-dark: #0d1117;
  --bg-card: #161b22;
  --bg-card-hover: #1f2730;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  background: linear-gradient(135deg, var(--bg-dark) 0%, #0f1b0f 50%, #0d1117 100%);
  background-attachment: fixed;
  color: var(--text-light);
  min-height: 100vh;
  line-height: 1.6;
}

/* Improved header with text logo */
.site-header {
  background: rgba(10, 15, 10, 0.98);
  backdrop-filter: blur(15px);
  border-bottom: 3px solid var(--primary-yellow);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 30px rgba(241, 196, 15, 0.25);
  transition: all 0.3s ease;
}

/* Enhanced text-based logo */
.logo {
  font-size: 1.8rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent-gold) 0%, var(--primary-yellow) 50%, var(--accent-emerald) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 1px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
  filter: brightness(1.2);
}

.logo i {
  background: linear-gradient(135deg, var(--primary-yellow), var(--primary-green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 2rem;
}

.navbar-item {
  color: var(--text-light) !important;
  transition: all 0.3s ease;
  font-weight: 500;
  position: relative;
}

.navbar-item::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-yellow), var(--primary-green));
  transition: width 0.3s ease;
}

.navbar-item:hover {
  color: var(--primary-yellow) !important;
  transform: translateY(-2px);
}

.navbar-item:hover::after {
  width: 80%;
}

.navbar-burger {
  color: var(--primary-yellow);
}

/* Enhanced hero section with better visuals */
.hero-section {
  background: radial-gradient(ellipse at top, rgba(39, 174, 96, 0.15), transparent),
    radial-gradient(ellipse at bottom, rgba(241, 196, 15, 0.15), transparent),
    linear-gradient(135deg, rgba(13, 17, 23, 0.9), rgba(15, 27, 15, 0.9));
  padding: 5rem 1.5rem;
  border-bottom: 4px solid transparent;
  border-image: linear-gradient(90deg, var(--primary-green), var(--primary-yellow), var(--primary-green)) 1;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 50px,
    rgba(241, 196, 15, 0.03) 50px,
    rgba(241, 196, 15, 0.03) 51px
  );
  pointer-events: none;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 900;
  background: linear-gradient(
    135deg,
    var(--accent-gold) 0%,
    var(--primary-yellow) 30%,
    var(--accent-emerald) 70%,
    var(--primary-green) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
  animation: gradientShift 5s ease infinite;
  background-size: 200% 200%;
}

@keyframes gradientShift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.hero-subtitle {
  font-size: 1.4rem;
  color: var(--text-gray);
  margin-bottom: 2.5rem;
  font-weight: 400;
  line-height: 1.8;
}

/* Improved button styles */
.btn-primary {
  background: linear-gradient(135deg, var(--primary-yellow) 0%, var(--dark-yellow) 100%) !important;
  color: #000 !important;
  font-weight: 700;
  padding: 1.2rem 3rem;
  border: none;
  border-radius: 50px;
  font-size: 1.15rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 6px 20px rgba(241, 196, 15, 0.4), 0 0 40px rgba(241, 196, 15, 0.1);
  position: relative;
  overflow: hidden;
}

.btn-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;
}

.btn-primary:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 10px 35px rgba(241, 196, 15, 0.6), 0 0 60px rgba(241, 196, 15, 0.2);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--accent-emerald) 0%, var(--dark-green) 100%) !important;
  color: #fff !important;
  font-weight: 700;
  padding: 1.2rem 3rem;
  border: none;
  border-radius: 50px;
  font-size: 1.15rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 6px 20px rgba(39, 174, 96, 0.4), 0 0 40px rgba(39, 174, 96, 0.1);
  position: relative;
  overflow: hidden;
}

.btn-secondary::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;
}

.btn-secondary:hover::before {
  width: 300px;
  height: 300px;
}

.btn-secondary:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 10px 35px rgba(39, 174, 96, 0.6), 0 0 60px rgba(39, 174, 96, 0.2);
}

/* Enhanced card design with better hover effects */
.custom-card {
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(30, 35, 42, 0.9) 100%);
  border-radius: 20px;
  padding: 2.5rem;
  margin-bottom: 2rem;
  border: 2px solid rgba(241, 196, 15, 0.1);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
}

.custom-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(241, 196, 15, 0.1), transparent);
  transition: left 0.6s;
}

.custom-card:hover::before {
  left: 100%;
}

.custom-card:hover {
  border-color: var(--primary-yellow);
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 15px 45px rgba(241, 196, 15, 0.3), 0 0 80px rgba(39, 174, 96, 0.1);
  background: linear-gradient(135deg, var(--bg-card-hover) 0%, rgba(35, 40, 47, 0.95) 100%);
}

.card-icon {
  font-size: 3.5rem;
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-emerald));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.5rem;
  display: inline-block;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Improved game card design */
.game-card {
  background: var(--bg-card);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 3px solid transparent;
  cursor: pointer;
  position: relative;
}

.game-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(241, 196, 15, 0.2), rgba(39, 174, 96, 0.2));
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.game-card:hover::after {
  opacity: 1;
}

.game-card:hover {
  border-color: var(--primary-green);
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 20px 50px rgba(39, 174, 96, 0.5), 0 0 100px rgba(241, 196, 15, 0.2);
}

.game-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.game-card:hover img {
  transform: scale(1.15) rotate(2deg);
}

.game-info {
  padding: 2rem;
  position: relative;
  z-index: 1;
}

/* Modal improvements */
.modal-background {
  background-color: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
}

.modal-content {
  width: 95%;
  max-width: 1200px;
  height: 90vh;
  animation: modalSlideIn 0.4s ease;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.game-iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 15px;
  box-shadow: 0 20px 60px rgba(241, 196, 15, 0.3);
}

/* Enhanced footer */
.site-footer {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #0a0a0a 100%);
  border-top: 4px solid transparent;
  border-image: linear-gradient(90deg, var(--primary-green), var(--primary-yellow), var(--primary-green)) 1;
  padding: 4rem 1.5rem 2rem;
  margin-top: 5rem;
}

.footer-link {
  color: var(--text-gray);
  transition: all 0.3s ease;
  display: inline-block;
}

.footer-link:hover {
  color: var(--primary-yellow);
  transform: translateX(5px);
}

/* Improved cookie banner - non-blocking and persistent */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 500px;
  background: linear-gradient(135deg, rgba(10, 15, 10, 0.98), rgba(22, 27, 34, 0.98));
  backdrop-filter: blur(20px);
  border: 3px solid var(--primary-yellow);
  border-radius: 20px;
  padding: 2rem;
  z-index: 999;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7), 0 0 80px rgba(241, 196, 15, 0.3);
  display: none;
  animation: slideInUp 0.5s ease;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(100px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cookie-banner.active {
  display: block;
}

/* FAQ Accordion enhancements */
.faq-item {
  background: var(--bg-card);
  border-radius: 15px;
  margin-bottom: 1.5rem;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  overflow: hidden;
}

.faq-item:hover {
  border-color: var(--primary-yellow);
  box-shadow: 0 8px 25px rgba(241, 196, 15, 0.2);
}

.faq-question {
  padding: 1.8rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.15rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
}

.faq-question:hover {
  background: rgba(241, 196, 15, 0.05);
}

.faq-answer {
  padding: 0 1.8rem 1.8rem;
  display: none;
  color: var(--text-gray);
  line-height: 1.8;
}

.faq-answer.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Contact Form enhancements */
.contact-form {
  background: linear-gradient(135deg, var(--bg-card), rgba(30, 35, 42, 0.9));
  border-radius: 20px;
  padding: 3rem;
  border: 3px solid var(--primary-green);
  box-shadow: 0 10px 40px rgba(39, 174, 96, 0.2);
}

.contact-form input,
.contact-form textarea {
  background: var(--bg-dark);
  border: 2px solid var(--dark-green);
  color: var(--text-light);
  padding: 1.2rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  width: 100%;
  transition: all 0.3s ease;
  font-family: "Poppins", sans-serif;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary-yellow);
  outline: none;
  box-shadow: 0 0 20px rgba(241, 196, 15, 0.3);
  transform: translateY(-2px);
}

/* Blog Cards */
.blog-card {
  background: var(--bg-card);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s ease;
  border: 2px solid transparent;
  margin-bottom: 2.5rem;
}

.blog-card:hover {
  border-color: var(--primary-yellow);
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(241, 196, 15, 0.3);
}

.blog-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover img {
  transform: scale(1.1);
}

.blog-content {
  padding: 2rem;
}

.blog-date {
  color: var(--primary-yellow);
  font-size: 0.95rem;
  margin-bottom: 0.8rem;
  font-weight: 600;
}

/* Team Cards */
.team-card {
  text-align: center;
  background: var(--bg-card);
  border-radius: 20px;
  padding: 2.5rem;
  transition: all 0.4s ease;
  border: 2px solid transparent;
}

.team-card:hover {
  border-color: var(--primary-green);
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(39, 174, 96, 0.3);
}

.team-avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  border: 5px solid var(--primary-yellow);
  box-shadow: 0 10px 30px rgba(241, 196, 15, 0.4);
  transition: all 0.3s ease;
}

.team-card:hover .team-avatar {
  transform: scale(1.1);
  border-color: var(--primary-green);
}

/* Event Cards */
.event-card {
  background: linear-gradient(135deg, var(--bg-card), rgba(30, 35, 42, 0.9));
  border-radius: 20px;
  padding: 2.5rem;
  border-left: 6px solid var(--primary-green);
  margin-bottom: 2.5rem;
  transition: all 0.4s ease;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.event-card:hover {
  transform: translateX(15px);
  box-shadow: 0 12px 40px rgba(39, 174, 96, 0.4);
  border-left-width: 10px;
}

.event-date {
  background: linear-gradient(135deg, var(--primary-yellow), var(--dark-yellow));
  color: #000;
  padding: 0.7rem 1.5rem;
  border-radius: 30px;
  font-weight: 700;
  display: inline-block;
  margin-bottom: 1.2rem;
  box-shadow: 0 4px 15px rgba(241, 196, 15, 0.4);
}

/* Section Titles */
.section-title {
  font-size: 3rem;
  font-weight: 900;
  background: linear-gradient(
    135deg,
    var(--accent-gold) 0%,
    var(--primary-yellow) 30%,
    var(--accent-emerald) 70%,
    var(--primary-green) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 3rem;
  text-align: center;
  line-height: 1.3;
  position: relative;
  display: inline-block;
  width: 100%;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-yellow), var(--primary-green));
  border-radius: 2px;
}

/* Responsive improvements */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.2rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .game-card img {
    height: 200px;
  }

  .cookie-banner {
    left: 10px;
    right: 10px;
    padding: 1.5rem;
  }

  .btn-primary,
  .btn-secondary {
    padding: 1rem 2rem;
    font-size: 1rem;
  }
}

/* Lazy Loading with smooth transition */
img[loading="lazy"] {

  transition: opacity 0.5s ease;
}

img[loading="lazy"].loaded {
  opacity: 1;
}

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

/* Selection styling */
::selection {
  background: var(--primary-yellow);
  color: #000;
}

::-moz-selection {
  background: var(--primary-yellow);
  color: #000;
}
