/* Custom Styles for Nordevra Social Casino - Enhanced Design */
:root {
  --primary-dark-blue: #0a1628;
  --secondary-blue: #1a2744;
  --accent-blue: #2c5f8d;
  --primary-red: #dc143c;
  --accent-red: #ff4757;
  --light-bg: #f8f9fa;
  --text-light: #ffffff;
  --text-dark: #2c3e50;
  --gradient-start: #1a2744;
  --gradient-end: #0a1628;
}

* {
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
  color: var(--text-light);
  margin: 0;
  padding: 0;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Enhanced Header with glass morphism effect */
.main-header {
  background: rgba(10, 22, 40, 0.85);
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(220, 20, 60, 0.3);
}

/* Beautiful text logo with gradient accent */
.logo-text {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-light);
  text-decoration: none;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.logo-text:hover {
  transform: scale(1.05);
  text-shadow: 0 0 20px rgba(220, 20, 60, 0.5);
}

.logo-accent {
  background: linear-gradient(135deg, var(--primary-red), var(--accent-red));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
}

.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%;
  width: 0;
  height: 2px;
  background: var(--accent-red);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.navbar-item:hover::after {
  width: 80%;
}

.navbar-item:hover {
  color: var(--accent-red) !important;
  background-color: rgba(255, 255, 255, 0.05) !important;
}

.navbar-burger {
  color: var(--text-light);
}

/* Enhanced Hero Section with animated gradient background */
.hero-section {
  background: linear-gradient(135deg, #1a2744 0%, #0a1628 50%, #1a2744 100%);
  background-size: 200% 200%;
  animation: gradientShift 15s ease infinite;
  padding: 5rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(220, 20, 60, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(44, 95, 141, 0.15) 0%, transparent 50%);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
}

/* More impactful hero title */
.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
  line-height: 1.2;
  background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.4rem;
  margin-bottom: 2.5rem;
  opacity: 0.95;
  font-weight: 300;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* More attractive buttons with better hover effects */
.btn-primary {
  background: linear-gradient(135deg, var(--primary-red) 0%, var(--accent-red) 100%);
  color: var(--text-light);
  padding: 1.2rem 3rem;
  font-size: 1.2rem;
  font-weight: 600;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.4s ease;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 8px 25px rgba(220, 20, 60, 0.3);
  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.2);
  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);
  box-shadow: 0 15px 40px rgba(220, 20, 60, 0.5);
}

.btn-secondary {
  background: transparent;
  color: var(--text-light);
  padding: 0.9rem 2.2rem;
  font-size: 1rem;
  font-weight: 600;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  position: relative;
  overflow: hidden;
}

.btn-secondary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--text-light);
  transition: left 0.4s ease;
  z-index: -1;
}

.btn-secondary:hover::before {
  left: 0;
}

.btn-secondary:hover {
  color: var(--primary-dark-blue);
  border-color: var(--text-light);
  transform: scale(1.05);
}

/* Enhanced feature cards with better shadows and hover effects */
.feature-card {
  background: rgba(26, 39, 68, 0.7);
  backdrop-filter: blur(10px);
  padding: 2.5rem;
  border-radius: 20px;
  text-align: center;
  transition: all 0.4s ease;
  height: 100%;
  border: 2px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(220, 20, 60, 0.1), transparent);
  transition: left 0.5s ease;
}

.feature-card:hover::before {
  left: 100%;
}

.feature-card:hover {
  transform: translateY(-15px);
  border-color: var(--primary-red);
  box-shadow: 0 20px 50px rgba(220, 20, 60, 0.4);
  background: rgba(26, 39, 68, 0.9);
}

.feature-icon {
  font-size: 3.5rem;
  color: var(--accent-red);
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
  transform: scale(1.2) rotateY(360deg);
}

.feature-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-light);
}

.feature-text {
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
}

/* Enhanced game cards with better visual appeal */
.game-card {
  background: rgba(26, 39, 68, 0.7);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s ease;
  cursor: pointer;
  height: 100%;
  border: 2px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

.game-card:hover::after {
  opacity: 1;
}

.game-card:hover {
  transform: translateY(-10px) scale(1.03);
  border-color: var(--primary-red);
  box-shadow: 0 20px 50px rgba(220, 20, 60, 0.5);
}

.game-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: linear-gradient(135deg, #2c5f8d, #dc143c, #1a2744);
  background-size: 200% 200%;
  animation: gameGradient 8s ease infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4.5rem;
  color: var(--text-light);
  transition: all 0.3s ease;
}

@keyframes gameGradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.game-card:hover .game-image {
  transform: scale(1.1);
}

.game-content {
  padding: 2rem;
}

.game-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  color: var(--text-light);
}

.game-description {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* Modal Styles */
.modal-background {
  background-color: rgba(10, 22, 40, 0.95);
  backdrop-filter: blur(5px);
}

.modal-content {
  width: 90%;
  max-width: 1200px;
  height: 90vh;
  background: var(--secondary-blue);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.modal-close {
  background-color: var(--primary-red);
  transition: all 0.3s ease;
}

.modal-close:hover {
  background-color: var(--accent-red);
  transform: rotate(90deg);
}

.game-iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Section Styles */
.section-dark {
  background: linear-gradient(135deg, var(--primary-dark-blue) 0%, #0d1b30 100%);
  padding: 5rem 1.5rem;
  position: relative;
}

.section-light {
  background: linear-gradient(135deg, var(--secondary-blue) 0%, #1a2744 100%);
  padding: 5rem 1.5rem;
  position: relative;
}

.section-title {
  font-size: 2.8rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--text-light);
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--accent-red), transparent);
}

.section-subtitle {
  font-size: 1.3rem;
  text-align: center;
  margin-bottom: 3rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 300;
}

/* Enhanced Footer with better styling */
.main-footer {
  background: linear-gradient(135deg, #050d1a 0%, #0a1628 100%);
  padding: 3.5rem 1.5rem 2rem;
  color: rgba(255, 255, 255, 0.8);
  border-top: 2px solid rgba(220, 20, 60, 0.3);
}

.footer-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  color: var(--text-light);
  position: relative;
  display: inline-block;
}

.footer-title::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--accent-red);
}

.footer-link {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: all 0.3s ease;
  display: block;
  margin-bottom: 0.8rem;
  padding-left: 0;
  position: relative;
}

.footer-link::before {
  content: "→";
  position: absolute;
  left: -20px;
  opacity: 0;
  transition: all 0.3s ease;
  color: var(--accent-red);
}

.footer-link:hover::before {
  left: 0;
  opacity: 1;
  padding-right: 10px;
}

.footer-link:hover {
  color: var(--accent-red);
  padding-left: 25px;
}

.footer-bottom {
  text-align: center;
  padding-top: 2.5rem;
  margin-top: 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.6);
}

/* Fixed cookie banner positioning and styling */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(26, 39, 68, 0.98);
  backdrop-filter: blur(10px);
  padding: 1.5rem;
  box-shadow: 0 -5px 30px rgba(0, 0, 0, 0.5);
  z-index: 99999;
  display: block; /* Changed to block for initial state, will be hidden by transform/opacity */
  border-top: 2px solid rgba(220, 20, 60, 0.5);
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.cookie-banner.active {
  transform: translateY(0);
  opacity: 1;
}

.cookie-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-accept {
  background: linear-gradient(135deg, #28a745, #20c997);
  color: white;
  padding: 0.8rem 2rem;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.btn-accept:hover {
  background: linear-gradient(135deg, #20c997, #28a745);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(40, 167, 69, 0.5);
}

.btn-decline {
  background: transparent;
  color: white;
  padding: 0.8rem 2rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-decline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
}

/* Event Cards */
.event-card {
  background: rgba(26, 39, 68, 0.7);
  backdrop-filter: blur(10px);
  padding: 2.5rem;
  border-radius: 20px;
  border-left: 5px solid var(--primary-red);
  transition: all 0.4s ease;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.event-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: -50px;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(220, 20, 60, 0.1), transparent);
  border-radius: 50%;
}

.event-card:hover {
  transform: translateX(10px);
  box-shadow: 0 15px 40px rgba(220, 20, 60, 0.4);
  border-left-width: 8px;
}

.event-date {
  color: var(--accent-red);
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
  letter-spacing: 1px;
}

.event-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-light);
}

/* FAQ Accordion */
.faq-item {
  background: rgba(26, 39, 68, 0.7);
  backdrop-filter: blur(10px);
  margin-bottom: 1.2rem;
  border-radius: 15px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: var(--primary-red);
  box-shadow: 0 10px 30px rgba(220, 20, 60, 0.2);
}

.faq-question {
  padding: 1.8rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 1.15rem;
  background: rgba(26, 39, 68, 0.5);
  transition: all 0.3s ease;
}

.faq-question:hover {
  background: rgba(44, 95, 141, 0.3);
}

.faq-answer {
  padding: 0 1.8rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
}

.faq-answer.active {
  max-height: 500px;
  padding: 1.8rem;
}

.faq-icon {
  transition: transform 0.4s ease;
  color: var(--accent-red);
  font-size: 1.5rem;
}

.faq-icon.active {
  transform: rotate(180deg);
}

/* Contact Form */
.contact-form {
  background: rgba(26, 39, 68, 0.7);
  backdrop-filter: blur(10px);
  padding: 3rem;
  border-radius: 20px;
  max-width: 650px;
  margin: 0 auto;
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.form-group {
  margin-bottom: 2rem;
}

.form-label {
  display: block;
  margin-bottom: 0.8rem;
  font-weight: 600;
  color: var(--text-light);
  font-size: 1.05rem;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  background: rgba(10, 22, 40, 0.5);
  color: var(--text-light);
  font-size: 1rem;
  font-family: "Poppins", sans-serif;
  transition: all 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary-red);
  background: rgba(10, 22, 40, 0.7);
  box-shadow: 0 0 20px rgba(220, 20, 60, 0.2);
}

.form-textarea {
  min-height: 160px;
  resize: vertical;
}

.contact-info-card {
  background: rgba(26, 39, 68, 0.7);
  backdrop-filter: blur(10px);
  padding: 2.5rem;
  border-radius: 20px;
  text-align: center;
  height: 100%;
  transition: all 0.4s ease;
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.contact-info-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(220, 20, 60, 0.4);
  border-color: var(--primary-red);
}

.contact-icon {
  font-size: 3rem;
  color: var(--accent-red);
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.contact-info-card:hover .contact-icon {
  transform: scale(1.2);
}

.contact-info-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  color: var(--text-light);
}

.contact-link {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-link:hover {
  color: var(--accent-red);
}

/* Blog Cards */
.blog-card {
  background: rgba(26, 39, 68, 0.7);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s ease;
  height: 100%;
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.blog-card:hover {
  transform: translateY(-12px);
  border-color: var(--primary-red);
  box-shadow: 0 20px 50px rgba(220, 20, 60, 0.4);
}

.blog-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: linear-gradient(135deg, #2c5f8d, #dc143c);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  color: var(--text-light);
  transition: all 0.3s ease;
}

.blog-card:hover .blog-image {
  transform: scale(1.1);
}

.blog-content {
  padding: 2rem;
}

.blog-date {
  color: var(--accent-red);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  letter-spacing: 0.5px;
}

.blog-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-light);
}

.blog-excerpt {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1.2rem;
  line-height: 1.6;
}

/* Team Cards */
.team-card {
  background: rgba(26, 39, 68, 0.7);
  backdrop-filter: blur(10px);
  padding: 2.5rem;
  border-radius: 20px;
  text-align: center;
  transition: all 0.4s ease;
  height: 100%;
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.team-card:hover {
  transform: scale(1.05);
  box-shadow: 0 20px 50px rgba(220, 20, 60, 0.4);
  border-color: var(--primary-red);
}

.team-avatar {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2c5f8d, #dc143c);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  color: var(--text-light);
  margin: 0 auto 1.5rem;
  border: 4px solid var(--primary-red);
  transition: all 0.4s ease;
}

.team-card:hover .team-avatar {
  transform: rotateY(360deg);
  border-color: var(--accent-red);
}

.team-name {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-light);
}

.team-role {
  color: var(--accent-red);
  font-weight: 700;
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

.team-bio {
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
}

/* Responsive Utilities */
@media screen and (max-width: 768px) {
  .hero-title {
    font-size: 2.2rem;
  }

  .hero-subtitle {
    font-size: 1.15rem;
  }

  .section-title {
    font-size: 2.2rem;
  }

  .cookie-buttons {
    flex-direction: column;
  }

  .btn-accept,
  .btn-decline {
    width: 100%;
  }

  .logo-text {
    font-size: 1.6rem;
  }
}

/* Lazy Loading */
img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.4s ease;
}

img[loading="lazy"].loaded {
  opacity: 1;
}

/* Enhanced Warning Banner */
.warning-banner {
  background: linear-gradient(90deg, var(--accent-blue), var(--primary-red), var(--accent-blue));
  background-size: 200% 100%;
  animation: bannerShift 8s ease infinite;
  padding: 1rem;
  text-align: center;
  font-size: 0.95rem;
  border-bottom: 2px solid var(--primary-red);
  font-weight: 500;
}

@keyframes bannerShift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.warning-banner strong {
  color: var(--text-light);
  font-weight: 800;
  font-size: 1.1rem;
}
