/* Enhanced Custom Styles for Planszcraft Free Social Online Casino */

:root {
  --primary-dark: #0f0f1e;
  --secondary-dark: #1a1a2e;
  --primary-red: #e11d48;
  --primary-blue: #3b82f6;
  --primary-yellow: #fbbf24;
  --accent-purple: #a855f7;
  --text-light: #f3f4f6;
  --text-dark: #111827;
  --glass-bg: rgba(26, 26, 46, 0.6);
}

* {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  background: linear-gradient(135deg, var(--primary-dark) 0%, #16213e 50%, #1a1a2e 100%);
  background-attachment: fixed;
  color: var(--text-light);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Added animated background decorative elements */
body::before {
  content: "";
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 20% 50%, rgba(225, 29, 72, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(59, 130, 246, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 40% 20%, rgba(251, 191, 36, 0.03) 0%, transparent 50%);
  animation: float 20s ease-in-out infinite;
  z-index: -1;
  pointer-events: none;
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
  33% {
    transform: translate(30px, -30px) rotate(5deg);
  }
  66% {
    transform: translate(-20px, 20px) rotate(-5deg);
  }
}

/* Decorative geometric shapes */
.decorative-shape {
  position: absolute;
  opacity: 0.1;
  pointer-events: none;
  z-index: 0;
}

.shape-circle {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  border: 3px solid var(--primary-yellow);
  animation: pulse 4s ease-in-out infinite;
}

.shape-square {
  width: 200px;
  height: 200px;
  border: 3px solid var(--primary-blue);
  transform: rotate(45deg);
  animation: rotate-slow 20s linear infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.15;
  }
}

@keyframes rotate-slow {
  from {
    transform: rotate(45deg);
  }
  to {
    transform: rotate(405deg);
  }
}

/* Header Styles */
.navbar {
  background: rgba(15, 15, 30, 0.95) !important;
  backdrop-filter: blur(15px);
  border-bottom: 2px solid transparent;
  border-image: linear-gradient(90deg, var(--primary-red), var(--primary-blue), var(--primary-yellow)) 1;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), 0 0 20px rgba(225, 29, 72, 0.2);
}

.navbar-item,
.navbar-link {
  color: var(--text-light) !important;
  transition: all 0.3s ease;
  position: relative;
}

.navbar-item::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-red), var(--primary-yellow));
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.navbar-item:hover::after {
  width: 80%;
}

.navbar-item:hover,
.navbar-link:hover {
  color: var(--primary-yellow) !important;
  background-color: rgba(251, 191, 36, 0.1) !important;
}

/* Enhanced text-based logo with gradient and animation */
.logo-text {
  font-size: 1.6rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-red), var(--primary-yellow), var(--primary-blue));
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 3s ease infinite;
  letter-spacing: 1px;
  text-transform: uppercase;
}

@keyframes gradient-shift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.15) 0%, rgba(59, 130, 246, 0.15) 100%);
  border-bottom: 3px solid transparent;
  border-image: linear-gradient(90deg, var(--primary-yellow), var(--primary-red)) 1;
  position: relative;
  overflow: hidden;
}

/* Added decorative hero overlay */
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.3;
  pointer-events: none;
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 900;
  text-shadow: 0 0 20px rgba(225, 29, 72, 0.5), 2px 2px 10px rgba(0, 0, 0, 0.5);
  background: linear-gradient(135deg, var(--primary-yellow), var(--primary-red), var(--primary-blue));
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 4s ease infinite;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.4rem;
  color: var(--text-light);
  text-shadow: 1px 1px 8px rgba(0, 0, 0, 0.7);
  font-weight: 300;
}

/* Buttons */
.button.is-primary {
  background: linear-gradient(135deg, var(--primary-red) 0%, #be123c 100%);
  border: none;
  color: white;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(225, 29, 72, 0.4), 0 0 20px rgba(225, 29, 72, 0.2);
  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;
}

.button.is-primary:hover::before {
  left: 100%;
}

.button.is-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(225, 29, 72, 0.6), 0 0 30px rgba(225, 29, 72, 0.3);
}

.button.is-warning {
  background: linear-gradient(135deg, var(--primary-yellow) 0%, #f59e0b 100%);
  border: none;
  color: var(--text-dark);
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(251, 191, 36, 0.4), 0 0 20px rgba(251, 191, 36, 0.2);
}

.button.is-warning:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(251, 191, 36, 0.6), 0 0 30px rgba(251, 191, 36, 0.3);
}

.button.is-info {
  background: linear-gradient(135deg, var(--primary-blue) 0%, #2563eb 100%);
  border: none;
  color: white;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4), 0 0 20px rgba(59, 130, 246, 0.2);
}

.button.is-info:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(59, 130, 246, 0.6), 0 0 30px rgba(59, 130, 246, 0.3);
}

/* Cards */
.custom-card {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 2px solid transparent;
  border-image: linear-gradient(135deg, var(--primary-blue), var(--accent-purple)) 1;
  border-radius: 16px;
  transition: all 0.4s ease;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3), 0 0 15px rgba(59, 130, 246, 0.1);
  height: 100%;
  position: relative;
  overflow: hidden;
}

/* Added shimmering effect on hover */
.custom-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.05), transparent);
  transform: rotate(45deg);
  transition: all 0.6s;
}

.custom-card:hover::before {
  top: 100%;
  left: 100%;
}

.custom-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-image: linear-gradient(135deg, var(--primary-yellow), var(--primary-red)) 1;
  box-shadow: 0 12px 35px rgba(251, 191, 36, 0.4), 0 0 25px rgba(251, 191, 36, 0.2);
}

.card-content {
  color: var(--text-light);
  position: relative;
  z-index: 1;
}

/* Game Cards */
.game-card {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 2px solid transparent;
  border-image: linear-gradient(135deg, var(--primary-red), var(--accent-purple)) 1;
  border-radius: 16px;
  transition: all 0.4s ease;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  position: relative;
}

.game-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.1), rgba(59, 130, 246, 0.1));
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.game-card:hover::after {
  opacity: 1;
}

.game-card:hover {
  transform: scale(1.05) rotateZ(1deg);
  border-image: linear-gradient(135deg, var(--primary-yellow), var(--primary-red)) 1;
  box-shadow: 0 15px 40px rgba(225, 29, 72, 0.5), 0 0 30px rgba(225, 29, 72, 0.3);
}

.game-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.game-card:hover .game-image {
  transform: scale(1.1);
}

/* Section Styles */
.section {
  padding: 5rem 1.5rem;
  position: relative;
}

.section-title {
  font-size: 2.8rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 3.5rem;
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-yellow), var(--primary-red));
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 4s ease infinite;
  text-shadow: 0 0 30px rgba(59, 130, 246, 0.5);
  position: relative;
  display: inline-block;
  width: 100%;
}

/* Added decorative underline to section titles */
.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-red), var(--primary-yellow));
  border-radius: 2px;
}

/* Footer */
.footer {
  background: rgba(15, 15, 30, 0.98);
  backdrop-filter: blur(10px);
  border-top: 3px solid transparent;
  border-image: linear-gradient(90deg, var(--primary-red), var(--primary-blue), var(--primary-yellow)) 1;
  color: var(--text-light);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
}

.footer a {
  color: var(--primary-yellow);
  transition: all 0.3s ease;
  position: relative;
}

.footer a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-red);
  transition: width 0.3s ease;
}

.footer a:hover {
  color: var(--primary-red);
}

.footer a:hover::after {
  width: 100%;
}

/* Improved cookie consent banner with better positioning and styling */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(15, 15, 30, 0.98);
  backdrop-filter: blur(15px);
  border-top: 3px solid transparent;
  border-image: linear-gradient(90deg, var(--primary-yellow), var(--primary-red)) 1;
  padding: 1.5rem;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(251, 191, 36, 0.3);
  z-index: 10000;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-banner .button {
  margin: 0.25rem;
}

/* Modal Styles */
.modal-content {
  max-width: 95vw;
  max-height: 95vh;
}

.modal-background {
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(5px);
}

.game-iframe {
  width: 100%;
  height: 80vh;
  border: none;
  border-radius: 8px;
}

/* FAQ Accordion */
.faq-item {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 2px solid transparent;
  border-image: linear-gradient(135deg, var(--primary-blue), var(--accent-purple)) 1;
  border-radius: 12px;
  margin-bottom: 1rem;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

.faq-question {
  background: rgba(59, 130, 246, 0.15);
  padding: 1.5rem;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question:hover {
  background: rgba(59, 130, 246, 0.25);
}

.faq-question .icon {
  transition: transform 0.3s ease;
}

.faq-question.active .icon {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s ease;
  background: rgba(0, 0, 0, 0.2);
}

.faq-answer.active {
  padding: 1.5rem;
  max-height: 600px;
}

/* Contact Form */
.contact-form {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 2px solid transparent;
  border-image: linear-gradient(135deg, var(--primary-blue), var(--primary-red)) 1;
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.input,
.textarea {
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(59, 130, 246, 0.3);
  color: var(--text-light);
  transition: all 0.3s ease;
}

.input:focus,
.textarea:focus {
  border-color: var(--primary-yellow);
  box-shadow: 0 0 0 0.25em rgba(251, 191, 36, 0.25), 0 0 15px rgba(251, 191, 36, 0.3);
  background: rgba(255, 255, 255, 0.08);
}

.input::placeholder,
.textarea::placeholder {
  color: rgba(243, 244, 246, 0.5);
}

/* Blog Card */
.blog-card {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 2px solid transparent;
  border-image: linear-gradient(135deg, var(--primary-blue), var(--accent-purple)) 1;
  border-radius: 16px;
  transition: all 0.4s ease;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.blog-card:hover {
  transform: translateY(-8px);
  border-image: linear-gradient(135deg, var(--primary-red), var(--primary-yellow)) 1;
  box-shadow: 0 12px 35px rgba(225, 29, 72, 0.4);
}

/* Team Member Card */
.team-member {
  text-align: center;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 2px solid transparent;
  border-image: linear-gradient(135deg, var(--primary-yellow), var(--accent-purple)) 1;
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.4s ease;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.team-member:hover {
  transform: scale(1.05) rotateZ(-1deg);
  box-shadow: 0 12px 35px rgba(251, 191, 36, 0.4);
}

.team-avatar {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  border: 4px solid var(--primary-red);
  margin: 0 auto 1rem;
  box-shadow: 0 0 20px rgba(225, 29, 72, 0.5);
  transition: all 0.3s ease;
}

.team-member:hover .team-avatar {
  border-color: var(--primary-yellow);
  box-shadow: 0 0 30px rgba(251, 191, 36, 0.6);
}

/* Event Card */
.event-card {
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.2) 0%, rgba(59, 130, 246, 0.2) 100%);
  backdrop-filter: blur(10px);
  border: 2px solid transparent;
  border-image: linear-gradient(135deg, var(--primary-yellow), var(--primary-red)) 1;
  border-radius: 16px;
  padding: 2.5rem;
  transition: all 0.4s ease;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.event-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 35px rgba(251, 191, 36, 0.5);
}

/* Added contact info styling */
.contact-info-card {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 2px solid transparent;
  border-image: linear-gradient(135deg, var(--primary-blue), var(--accent-purple)) 1;
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.contact-info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(59, 130, 246, 0.4);
}

.contact-link {
  color: var(--primary-yellow);
  transition: all 0.3s ease;
  display: inline-block;
}

.contact-link:hover {
  color: var(--primary-red);
  transform: translateX(5px);
}

/* Responsive */
@media screen and (max-width: 768px) {
  .hero-title {
    font-size: 2.2rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .game-iframe {
    height: 60vh;
  }

  .logo-text {
    font-size: 1.3rem;
  }

  .section {
    padding: 3rem 1rem;
  }
}

/* Lazy Loading */
img[loading="lazy"] {
  transition: opacity 0.5s ease;
}

img[loading="lazy"].loaded {
  opacity: 1;
}

/* Added scroll reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Loading spinner for images */
.image-loading {
  position: relative;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0.05) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* Notification enhancements */
.notification.is-warning {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(245, 158, 11, 0.2));
  border: 2px solid var(--primary-yellow);
  backdrop-filter: blur(10px);
  color: var(--text-light);
  font-weight: 600;
}
