/* Completely redesigned with beautiful gradients, animations, modern aesthetics */
/* Enhanced Custom Styles for FrostivIO Social Casino */

:root {
  --dark-green: #0d2818;
  --medium-green: #1a4d2e;
  --accent-green: #27ae60;
  --bright-green: #2ecc71;
  --light-green: #a8e6cf;
  --very-light-green: #e8f8f5;
  --gold: #f39c12;
  --dark-gold: #d68910;
  --white: #ffffff;
  --off-white: #f8fafb;
  --light-gray: #ecf0f1;
  --medium-gray: #95a5a6;
  --dark-gray: #2c3e50;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.2);
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  background: linear-gradient(135deg, var(--off-white) 0%, var(--very-light-green) 100%);
  padding-top: 3.25rem;
  line-height: 1.7;
  color: var(--dark-gray);
}

/* Typography */
.hero-title,
.section-title {
  font-family: "Playfair Display", serif;
  font-weight: 900;
  letter-spacing: -1px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-title {
  animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Navigation */
.navbar.is-dark {
  background: linear-gradient(135deg, var(--dark-green) 0%, var(--medium-green) 100%);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(10px);
}

/* Text logo instead of image */
.logo-text {
  font-family: "Playfair Display", serif;
  font-size: 1.8rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--bright-green) 0%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
  padding: 0.5rem 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-item {
  color: var(--white) !important;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.navbar-item::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--bright-green);
  transition: var(--transition);
  transform: translateX(-50%);
}

.navbar-item:hover::after,
.navbar-item.is-active::after {
  width: 80%;
}

.navbar-item:hover,
.navbar-item.is-active {
  background-color: transparent !important;
  color: var(--bright-green) !important;
}

.navbar-burger {
  color: var(--white);
}

/* Buttons */
.button.is-success {
  background: linear-gradient(135deg, var(--accent-green) 0%, var(--bright-green) 100%);
  border: none;
  font-weight: 600;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.button.is-success::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: var(--transition);
}

.button.is-success:hover::before {
  left: 100%;
}

.button.is-success:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(39, 174, 96, 0.4);
}

.button.is-success.is-outlined {
  background: transparent;
  border: 2px solid var(--accent-green);
  color: var(--accent-green);
}

.button.is-success.is-outlined:hover {
  background: linear-gradient(135deg, var(--accent-green) 0%, var(--bright-green) 100%);
  color: var(--white);
  border-color: transparent;
}

/* Hero Sections */
.hero-gradient {
  background: linear-gradient(135deg, var(--dark-green) 0%, var(--medium-green) 50%, var(--accent-green) 100%);
  position: relative;
  overflow: hidden;
}

.hero-gradient::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: movePattern 20s linear infinite;
  opacity: 0.5;
}

@keyframes movePattern {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(50px, 50px);
  }
}

.page-header {
  background: linear-gradient(135deg, var(--dark-green) 0%, var(--accent-green) 100%);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.page-header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(to bottom, transparent, var(--off-white));
}

.cta-button {
  font-size: 1.3rem;
  padding: 1.8rem 3.5rem;
  border-radius: 50px;
  box-shadow: var(--shadow-lg);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7);
  }
  50% {
    box-shadow: 0 0 0 20px rgba(46, 204, 113, 0);
  }
}

/* Feature Boxes */
.feature-box {
  border: none;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--white) 0%, var(--very-light-green) 100%);
  transition: var(--transition);
  height: 100%;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.feature-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-green), var(--bright-green), var(--gold));
  transition: var(--transition);
}

.feature-box:hover::before {
  left: 0;
}

.feature-box:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: var(--shadow-xl);
}

.feature-icon {
  font-size: 4.5rem;
  margin-bottom: 1.5rem;
  filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.1));
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Game Cards */
.game-card,
.game-card-detail {
  transition: var(--transition);
  height: 100%;
  border: none;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--white);
}

.game-card:hover,
.game-card-detail:hover {
  transform: translateY(-12px) scale(1.03);
  box-shadow: var(--shadow-xl);
}

.game-card .card-image,
.game-card-detail .card-image {
  position: relative;
  overflow: hidden;
}

.game-card .card-image::after,
.game-card-detail .card-image::after {
  content: "PLAY";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  background: rgba(39, 174, 96, 0.95);
  color: var(--white);
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.5rem;
  transition: var(--transition);
  opacity: 0;
}

.game-card:hover .card-image::after,
.game-card-detail:hover .card-image::after {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

.game-card-detail .card-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.game-features {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.game-features li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--light-gray);
  transition: var(--transition);
}

.game-features li:hover {
  padding-left: 10px;
  color: var(--accent-green);
}

/* Event Cards */
.event-box {
  background: linear-gradient(135deg, var(--very-light-green) 0%, var(--white) 100%);
  border-left: 5px solid var(--accent-green);
  border-radius: 12px;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.event-box:hover {
  transform: translateX(10px);
  box-shadow: var(--shadow-lg);
  border-left-width: 8px;
}

.event-card {
  height: 100%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.event-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.event-details {
  list-style: none;
  padding-left: 0;
}

.event-details li {
  padding: 0.75rem 0;
  transition: var(--transition);
}

.event-details li:hover {
  padding-left: 10px;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--dark-green) 0%, var(--accent-green) 50%, var(--gold) 100%);
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
}

/* Footer */
.footer {
  background: linear-gradient(135deg, var(--dark-green) 0%, var(--medium-green) 100%);
  color: var(--white);
  padding: 4rem 1.5rem 2rem;
  position: relative;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(to top, transparent, rgba(0, 0, 0, 0.1));
}

.footer-links {
  list-style: none;
  padding-left: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--light-gray);
  transition: var(--transition);
  display: inline-block;
}

.footer-links a:hover {
  color: var(--bright-green);
  transform: translateX(5px);
}

/* Cookie Consent */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, var(--dark-green) 0%, var(--medium-green) 100%);
  color: var(--white);
  padding: 2rem;
  box-shadow: var(--shadow-xl);
  /* Changed z-index to not block game modals */
  z-index: 40;
  display: none;
  animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

.cookie-consent.show {
  display: block;
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.cookie-content p {
  margin: 0;
  flex: 1;
  font-size: 1.05rem;
}

.cookie-content a {
  color: var(--bright-green);
  text-decoration: underline;
  font-weight: 600;
}

.cookie-buttons {
  display: flex;
  gap: 1rem;
}

/* Team Cards */
.team-card {
  transition: var(--transition);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.team-card:hover {
  transform: translateY(-10px) rotate(2deg);
  box-shadow: var(--shadow-xl);
}

.team-card .card-image img {
  transition: var(--transition);
}

.team-card:hover .card-image img {
  transform: scale(1.1);
}

/* Mission Boxes */
.mission-box {
  background: linear-gradient(135deg, var(--very-light-green) 0%, var(--white) 100%);
  border-top: 5px solid var(--accent-green);
  border-radius: 16px;
  height: 100%;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.mission-box:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-top-width: 8px;
}

/* Contact Boxes */
.contact-box {
  transition: var(--transition);
  height: 100%;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  border: 2px solid var(--very-light-green);
}

.contact-box:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: var(--shadow-xl);
  border-color: var(--accent-green);
}

.contact-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.1));
}

/* FAQ */
.faq-item {
  margin-bottom: 1.5rem;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.faq-item:hover {
  box-shadow: var(--shadow-md);
}

.faq-question {
  width: 100%;
  background: linear-gradient(135deg, var(--very-light-green) 0%, var(--white) 100%);
  border: none;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  transition: var(--transition);
}

.faq-question:hover {
  background: linear-gradient(135deg, var(--light-green) 0%, var(--very-light-green) 100%);
}

.faq-question:hover .title {
  color: var(--accent-green);
}

.faq-icon {
  font-size: 2rem;
  color: var(--accent-green);
  font-weight: bold;
  transition: var(--transition);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  background: var(--white);
}

.faq-item.active .faq-answer {
  max-height: 600px;
  padding: 1.5rem;
}

/* Blog Cards */
.blog-card {
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.blog-card .card-content {
  flex-grow: 1;
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.featured-article {
  border: 3px solid var(--gold);
  margin-bottom: 3rem;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(243, 156, 18, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(243, 156, 18, 0.6);
  }
}

/* Timeline */
.timeline {
  position: relative;
  padding: 3rem 0;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--accent-green), var(--gold));
}

.timeline-item {
  position: relative;
  padding-left: 70px;
  margin-bottom: 3rem;
}

.timeline-marker {
  position: absolute;
  left: 11px;
  top: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 4px solid var(--accent-green);
  background-color: var(--white);
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.timeline-item:hover .timeline-marker {
  transform: scale(1.3);
  box-shadow: var(--shadow-md);
}

.timeline-marker.is-success {
  background-color: var(--accent-green);
  animation: pulse-marker 2s ease-in-out infinite;
}

@keyframes pulse-marker {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(39, 174, 96, 0.7);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(39, 174, 96, 0);
  }
}

.timeline-marker.is-info {
  background-color: #3298dc;
  border-color: #3298dc;
}

.timeline-marker.is-warning {
  background-color: var(--gold);
  border-color: var(--gold);
}

/* Step Numbers */
.step-number {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--accent-green) 0%, var(--bright-green) 100%);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: bold;
  margin: 0 auto 1.5rem;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.step-number:hover {
  transform: rotate(360deg) scale(1.1);
}

/* Game Modal */
.game-modal-content {
  width: 90vw;
  max-width: 1200px;
}

.game-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  background: linear-gradient(135deg, var(--dark-gray) 0%, var(--dark-green) 100%);
  border-radius: 12px;
}

.game-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 12px;
}

/* Modal z-index higher than cookie banner */
.modal {
  z-index: 50;
}

/* Thank You Page */
.success-icon {
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, var(--accent-green) 0%, var(--bright-green) 100%);
  color: var(--white);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  font-weight: bold;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-lg);
  animation: successPulse 1.5s ease-in-out infinite;
}

@keyframes successPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

/* Tags */
.tag {
  border-radius: 20px;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

/* Forms */
.input,
.textarea,
.select select {
  border-radius: 12px;
  border: 2px solid var(--light-gray);
  transition: var(--transition);
}

.input:focus,
.textarea:focus,
.select select:focus {
  border-color: var(--accent-green);
  box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.1);
}

/* Responsive */
@media screen and (max-width: 768px) {
  .cookie-content {
    flex-direction: column;
    text-align: center;
  }

  .cookie-buttons {
    width: 100%;
    justify-content: center;
  }

  .timeline::before {
    left: 10px;
  }

  .timeline-item {
    padding-left: 50px;
  }

  .timeline-marker {
    left: 1px;
  }

  .logo-text {
    font-size: 1.5rem;
  }
}

/* Image Optimization */
img {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

/* Lazy Loading */
img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.5s ease;
}

img[loading="lazy"].loaded {
  opacity: 1;
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Focus States */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
  outline: 3px solid var(--accent-green);
  outline-offset: 3px;
}

/* Loading Animation */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Print Styles */
@media print {
  .navbar,
  .cookie-consent,
  .button,
  footer {
    display: none;
  }
}
