/* Enhanced Custom Styles for Nordivara Social Casino */

:root {
  --primary-dark: #0a1628;
  --secondary-dark: #1a2744;
  --accent-blue: #2563eb;
  --light-blue: #3b82f6;
  --gold: #fbbf24;
  --gold-light: #fcd34d;
  --text-light: #f1f5f9;
  --text-muted: #cbd5e1;
  --success: #10b981;
  --danger: #ef4444;
}

* {
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  background: linear-gradient(135deg, #0a1628 0%, #1a2744 50%, #0f2847 100%);
  background-attachment: fixed;
  color: var(--text-light);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Modern animated background pattern */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle at 20% 50%, rgba(37, 99, 235, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(251, 191, 36, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 40% 20%, rgba(59, 130, 246, 0.06) 0%, transparent 50%);
  z-index: 0;
  pointer-events: none;
  animation: bgShift 20s ease infinite;
}

@keyframes bgShift {
  0%,
  100% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.1);
  }
}

/* Header with text logo and modern styling */
.navbar {
  background: rgba(10, 22, 40, 0.95) !important;
  border-bottom: 1px solid rgba(37, 99, 235, 0.3);
  backdrop-filter: blur(20px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 100;
}

.navbar-brand .logo {
  font-size: 1.75rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--light-blue), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.navbar-brand .logo:hover {
  transform: translateY(-2px);
  filter: brightness(1.2);
}

.navbar-brand .logo i {
  background: linear-gradient(135deg, var(--light-blue), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 1.5rem;
}

.navbar-item {
  color: var(--text-light) !important;
  font-weight: 500;
  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(--light-blue), var(--gold));
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.navbar-item:hover {
  color: var(--gold) !important;
  background-color: transparent !important;
}

.navbar-item:hover::after {
  width: 80%;
}

/* Enhanced hero with modern gradients and animations */
.hero {
  background: linear-gradient(135deg, #0a1628 0%, #1e3a8a 50%, #1e40af 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: gridMove 30s linear infinite;
  opacity: 0.3;
}

@keyframes gridMove {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(50px, 50px);
  }
}

.hero-body {
  position: relative;
  z-index: 2;
  padding: 6rem 1.5rem;
}

.hero .title {
  color: var(--text-light);
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  font-weight: 700;
  animation: fadeInUp 0.8s ease;
}

.hero .subtitle {
  color: var(--text-muted);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Modern button styling with gradients */
.button.is-primary {
  background: linear-gradient(135deg, var(--accent-blue) 0%, var(--light-blue) 100%);
  border: none;
  color: white;
  font-weight: 600;
  padding: 1.25rem 2.5rem;
  font-size: 1.1rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 8px 30px rgba(37, 99, 235, 0.35);
  border-radius: 50px;
  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 ease;
}

.button.is-primary:hover::before {
  left: 100%;
}

.button.is-primary:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 12px 40px rgba(37, 99, 235, 0.5);
}

.button.is-warning {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--primary-dark);
  font-weight: 700;
  border-radius: 50px;
  transition: all 0.3s ease;
  border: none;
  box-shadow: 0 6px 25px rgba(251, 191, 36, 0.3);
}

.button.is-warning:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 35px rgba(251, 191, 36, 0.5);
}

/* Modern card design with hover effects */
.card {
  background: rgba(26, 39, 68, 0.85);
  border: 1px solid rgba(37, 99, 235, 0.25);
  border-radius: 20px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  backdrop-filter: blur(10px);
  overflow: hidden;
  position: relative;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--light-blue), var(--gold));
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.card:hover::before {
  transform: scaleX(1);
}

.card:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 50px rgba(37, 99, 235, 0.4);
  border-color: var(--light-blue);
}

.card-content {
  color: var(--text-light);
  position: relative;
  z-index: 1;
}

.card .title,
.card .subtitle {
  color: var(--text-light);
}

.card-image img {
  transition: transform 0.4s ease;
}

.card:hover .card-image img {
  transform: scale(1.1);
}

/* Section Styling */
.section {
  background: transparent;
  padding: 5rem 1.5rem;
  position: relative;
  z-index: 1;
}

.section-title {
  color: var(--text-light);
  font-weight: 700;
  margin-bottom: 3rem;
  text-align: center;
  position: relative;
  padding-bottom: 1.5rem;
  font-size: 2.5rem;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  border-radius: 2px;
}

/* Enhanced box styling */
.box {
  background: rgba(26, 39, 68, 0.7);
  border: 1px solid rgba(37, 99, 235, 0.2);
  color: var(--text-light);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.box:hover {
  border-color: rgba(37, 99, 235, 0.4);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

/* Footer */
.footer {
  background: var(--primary-dark);
  border-top: 1px solid rgba(37, 99, 235, 0.3);
  color: var(--text-light);
  padding: 4rem 1.5rem 2rem;
  position: relative;
  z-index: 1;
}

.footer a {
  color: var(--light-blue);
  transition: all 0.3s ease;
  text-decoration: none;
}

.footer a:hover {
  color: var(--gold);
  transform: translateX(5px);
  display: inline-block;
}

/* Improved cookie banner - won't block content */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 800px;
  width: 90%;
  background: rgba(10, 22, 40, 0.98);
  border: 2px solid var(--accent-blue);
  border-radius: 16px;
  padding: 1.5rem;
  z-index: 999;
  display: none;
  backdrop-filter: blur(20px);
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
  animation: slideUp 0.5s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(100px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.cookie-banner.is-active {
  display: block;
}

.cookie-banner p {
  color: var(--text-light);
  margin-bottom: 0;
  font-size: 0.95rem;
}

.cookie-banner .button {
  margin-left: 0.5rem;
  border-radius: 25px;
}

/* Game Modal */
.modal-background {
  background-color: rgba(10, 22, 40, 0.95);
  backdrop-filter: blur(5px);
}

.modal-content {
  width: 95%;
  max-width: 1400px;
  animation: modalZoom 0.3s ease;
}

@keyframes modalZoom {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.game-iframe {
  width: 100%;
  height: 80vh;
  border: none;
  border-radius: 12px;
}

/* Enhanced features grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

.feature-item {
  text-align: center;
  padding: 3rem 2rem;
  background: rgba(26, 39, 68, 0.6);
  border-radius: 20px;
  border: 1px solid rgba(37, 99, 235, 0.2);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.feature-item::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, transparent 70%);
  transform: scale(0);
  transition: transform 0.6s ease;
}

.feature-item:hover::before {
  transform: scale(1);
}

.feature-item:hover {
  transform: translateY(-10px);
  border-color: var(--light-blue);
  box-shadow: 0 15px 40px rgba(37, 99, 235, 0.3);
}

.feature-icon {
  font-size: 3.5rem;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
  animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Contact Info */
.contact-info {
  background: rgba(26, 39, 68, 0.7);
  padding: 2.5rem;
  border-radius: 16px;
  border: 1px solid rgba(37, 99, 235, 0.2);
}

.contact-info a {
  color: var(--light-blue);
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 600;
}

.contact-info a:hover {
  color: var(--gold);
  text-decoration: underline;
}

/* Form Styling */
.input,
.textarea,
.select select {
  background: rgba(26, 39, 68, 0.6);
  border: 1px solid rgba(37, 99, 235, 0.3);
  color: var(--text-light);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.input:focus,
.textarea:focus,
.select select:focus {
  border-color: var(--light-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
  background: rgba(26, 39, 68, 0.8);
}

.input::placeholder,
.textarea::placeholder {
  color: var(--text-muted);
}

.label {
  color: var(--text-light);
  font-weight: 600;
}

/* FAQ Accordion */
.accordion-item {
  background: rgba(26, 39, 68, 0.7);
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: 12px;
  margin-bottom: 1.5rem;
  overflow: hidden;
  transition: all 0.3s ease;
}

.accordion-item:hover {
  border-color: rgba(37, 99, 235, 0.4);
}

.accordion-header {
  padding: 1.75rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
  background: transparent;
}

.accordion-header:hover {
  background: rgba(37, 99, 235, 0.1);
}

.accordion-header .icon {
  transition: transform 0.3s ease;
  color: var(--gold);
}

.accordion-content.is-active + .accordion-header .icon,
.accordion-header.active .icon {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding: 0 1.75rem;
}

.accordion-content.is-active {
  max-height: 1000px;
  padding: 0 1.75rem 1.75rem;
}

/* Blog Cards */
.blog-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.blog-card .card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card .button {
  margin-top: auto;
}

/* Tags */
.tag {
  border-radius: 20px;
  font-weight: 600;
}

.tag.is-info {
  background: var(--accent-blue);
  color: white;
}

.tag.is-success {
  background: var(--success);
  color: white;
}

.tag.is-warning {
  background: var(--gold);
  color: var(--primary-dark);
}

.tag.is-light {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
}

/* Table Styling */
.table {
  background: transparent !important;
  color: var(--text-light);
}

.table th {
  color: var(--light-blue) !important;
  border-color: rgba(37, 99, 235, 0.2) !important;
}

.table td {
  border-color: rgba(37, 99, 235, 0.1) !important;
  color: var(--text-light);
}

.table.is-hoverable tbody tr:hover {
  background: rgba(37, 99, 235, 0.1) !important;
}

/* Lazy Loading */
img[loading="lazy"] {

  transition: opacity 0.5s ease;
}

img[loading="lazy"].loaded {
  opacity: 1;
}

/* Age Restriction Notice */
.age-notice {
  background: rgba(251, 191, 36, 0.15);
  border: 2px solid var(--gold);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 2rem 0;
  text-align: center;
}

.age-notice strong {
  color: var(--gold);
}

/* Responsive adjustments */
@media screen and (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
  }
}

@media screen and (max-width: 768px) {
  .hero .title {
    font-size: 2.25rem;
  }

  .hero-body {
    padding: 4rem 1.5rem;
  }

  .button.is-primary {
    padding: 1rem 2rem;
    font-size: 1rem;
  }

  .game-iframe {
    height: 60vh;
  }

  .section {
    padding: 3rem 1.5rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .feature-item {
    padding: 2rem 1.5rem;
  }

  .cookie-banner {
    width: 95%;
    padding: 1rem;
  }

  .cookie-banner .columns {
    display: block !important;
  }

  .cookie-banner .button {
    margin: 0.5rem 0.25rem 0 0;
  }
}

/* Utility Classes */
.has-text-gradient {
  background: linear-gradient(135deg, var(--light-blue), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.glow {
  box-shadow: 0 0 30px rgba(37, 99, 235, 0.5);
}

.pulse {
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}
