/* GalaSumNord - Scandinavian Social Gaming Theme */

/* CSS Variables */
:root {
  /* Scandinavian Color Palette */
  --primary: #1e3a8a; /* Navy Blue */
  --primary-light: #3b82f6; /* Lighter Navy */
  --secondary: #0ea5e9; /* Icy Blue */
  --accent: #06b6d4; /* Cyan accent */
  --background-main: #0f172a; /* Dark slate */
  --background-secondary: #1e293b; /* Slate grey */
  --surface: #334155; /* Medium slate */
  --text-main: #f1f5f9; /* Soft white */
  --text-secondary: #cbd5e1; /* Silver grey */
  --text-muted: #94a3b8; /* Muted grey */
  --border: #475569; /* Border grey */
  --success: #10b981; /* Nordic green */
  --warning: #f59e0b; /* Amber */
  --error: #ef4444; /* Red */
  
  /* Nordic Gradients */
  --gradient-primary: linear-gradient(135deg, #1e3a8a, #0ea5e9);
  --gradient-secondary: linear-gradient(135deg, #0f172a, #1e293b);
  --gradient-accent: linear-gradient(135deg, #06b6d4, #0ea5e9);
}

/* Base Styles */
* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  background: var(--background-main);
  color: var(--text-main);
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.section {
  padding: 4rem 0;
}

.columns {
  display: flex;
  flex-wrap: wrap;
  margin: -0.75rem;
}

.column {
  flex: 1;
  padding: 0.75rem;
}

.is-6 {
  flex: 0 0 50%;
  max-width: 50%;
}

.is-vcentered {
  align-items: center;
}

.has-text-centered {
  text-align: center;
}

.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }
.mr-2 { margin-right: 0.5rem; }
.mr-3 { margin-right: 0.75rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

.is-block { display: block; }
.is-inline-block { display: inline-block; }

.buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.buttons.is-centered {
  justify-content: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 1px solid transparent;
  font-size: 1rem;
}

.text-primary { color: var(--primary-light); }
.text-muted { color: var(--text-muted); }

.table-container {
  overflow-x: auto;
  margin: 2rem 0;
}

.table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(30, 41, 91, 0.1);
  border-radius: 12px;
  overflow: hidden;
}

.table th,
.table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(59, 130, 246, 0.1);
}

.table th {
  background: rgba(30, 58, 138, 0.2);
  color: var(--text-main);
  font-weight: 600;
}

.table td {
  color: var(--text-secondary);
}

.table code {
  background: rgba(30, 58, 138, 0.2);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  color: var(--primary-light);
}

.iframe-container {
  position: relative;
  width: 100%;
  margin: 1rem 0;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(30, 41, 91, 0.1);
}

.iframe-container iframe {
  width: 100%;
  height: 400px;
  border: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.5rem;
  border-radius: 4px;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--primary-light);
}

.footer-org-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-org-logos img {
  height: 40px;
  width: auto;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.footer-org-logos img:hover {
  opacity: 1;
}

.is-size-7 {
  font-size: 0.875rem;
}

.about-wrap {
  row-gap: 2rem;
}

.about-media {
  padding: 0;
  border-radius: 16px;
  background: none;
}

.about-media .about-img {
  height: auto;
  border-radius: 14px;
  background: transparent;
  width: 100%;
  display: block;
}

.about-card {
  padding: 2.25rem;
  border-radius: 20px;
  background: rgba(30, 41, 91, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.section-lead {
  font-size: 1.25rem;
  color: var(--text-main);
  line-height: 1.6;
}

.about-points {
  list-style: none;
  grid-template-columns: 1fr;
  padding: 0;
  gap: 0.75rem;
  margin: 0;
  display: grid;
}

.about-points li {
  color: var(--text-main);
  gap: 0.75rem;
  align-items: center;
  display: flex;
}

.about-icon {
  height: 34px;
  justify-content: center;
  border: 1px solid var(--primary);
  color: var(--primary);
  align-items: center;
  border-radius: 8px;
  background: rgba(30, 58, 138, 0.1);
  width: 34px;
  display: inline-flex;
}

.about-icon svg {
  stroke-linecap: round;
  height: 18px;
  fill: none;
  stroke-width: 1.8;
  width: 18px;
  stroke: var(--primary);
  stroke-linejoin: round;
}

@media screen and (min-width: 1024px) {
  .about-points {
    grid-template-columns: 1fr 1fr;
  }
  .about-media {
    margin-right: auto;
    max-width: 520px;
    margin-left: auto;
  }
  .about-card {
    padding: 2rem;
  }
}

.media-frame {
  padding: 0;
  border-radius: 16px;
  background: none;
}

.media-frame img {
  border-radius: 14px;
  background: transparent;
}

.about-img {
  border: 2px solid transparent;
  background: var(--gradient-primary);
  background-clip: padding-box;
  transition: transform 0.3s ease;
  box-shadow: 0 0 20px rgba(30, 58, 138, 0.4), 0 0 40px rgba(14, 165, 233, 0.2);
  border-radius: 20px;
}

.about-img:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 30px rgba(30, 58, 138, 0.6), 0 0 60px rgba(14, 165, 233, 0.3);
}

.clip-notch {
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
}

.clip-nordic {
  clip-path: polygon(20px 0, calc(100% - 10px) 0, 100% 10px, 100% calc(100% - 24px), calc(100% - 28px) 100%, 12px 100%, 0 calc(100% - 12px), 0 20px);
}

.site-header {
  backdrop-filter: blur(12px);
  position: sticky;
  border-bottom: 1px solid rgba(59, 130, 246, 0.15);
  top: 0;
  background: rgba(15, 23, 42, 0.9);
  z-index: 50;
}

.nav-container {
  padding: 1.25rem 0;
  justify-content: space-between;
  align-items: center;
  display: flex;
}

.site-nav {
  align-items: center;
  display: flex;
  gap: 1rem;
}

.site-nav a {
  padding: 0.5rem 0.75rem;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-weight: 500;
}

.site-nav a:hover {
  color: var(--text-main);
  background: rgba(30, 58, 138, 0.2);
  transform: translateY(-1px);
}

.site-nav a.is-active {
  color: var(--primary-light);
  background: rgba(30, 58, 138, 0.3);
}

.brand-logo {
  font-family: 'Cinzel Decorative', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
  text-decoration: none;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-section {
  background: var(--gradient-secondary);
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 20%, rgba(30, 58, 138, 0.3) 0%, transparent 50%),
              radial-gradient(circle at 70% 80%, rgba(14, 165, 233, 0.2) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  border: none;
  padding: 0.875rem 2rem;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(30, 58, 138, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(30, 58, 138, 0.6);
  color: white;
}

.btn-secondary {
  background: transparent;
  color: var(--text-main);
  border: 2px solid var(--primary);
  padding: 0.875rem 2rem;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}

.game-card {
  background: rgba(30, 41, 91, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 16px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(30, 58, 138, 0.3);
  border-color: rgba(59, 130, 246, 0.4);
}

.game-title {
  color: var(--text-main);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.game-description {
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.game-image-container {
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 1rem;
  position: relative;
}

.game-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  border-radius: 12px;
}

.game-image:hover {
  transform: scale(1.05);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.feature-card {
  background: rgba(30, 41, 91, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(30, 58, 138, 0.3);
}

.feature-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1rem;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
}

.feature-title {
  color: var(--text-main);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.feature-description {
  color: var(--text-secondary);
  line-height: 1.6;
}

.footer {
  background: var(--background-main);
  border-top: 1px solid rgba(59, 130, 246, 0.15);
  padding: 3rem 0 2rem;
  margin-top: 4rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  color: var(--text-main);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-section p,
.footer-section a {
  color: var(--text-secondary);
  line-height: 1.6;
  text-decoration: none;
}

.footer-section a:hover {
  color: var(--primary-light);
}

.footer-bottom {
  border-top: 1px solid rgba(59, 130, 246, 0.15);
  padding-top: 2rem;
  text-align: center;
  color: var(--text-muted);
}

.modal {
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(10px);
}

.modal-content {
  background: var(--background-secondary);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 16px;
}

.custom-modal-box {
  background: rgba(30, 41, 91, 0.2);
  border: 1px solid rgba(59, 130, 246, 0.3);
  backdrop-filter: blur(15px);
}

.age-verification-title {
  color: var(--text-main);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.age-verification-text {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.compliance-notice {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 12px;
  padding: 1rem;
  margin: 2rem 0;
  color: var(--text-main);
  text-align: center;
  font-weight: 500;
}

.nordic-pattern {
  background-image: 
    radial-gradient(circle at 25% 25%, rgba(30, 58, 138, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(14, 165, 233, 0.1) 0%, transparent 50%);
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 0 0.75rem;
  }

  .section {
    padding: 2rem 0;
  }

  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .feature-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin: 2rem 0;
  }
  
  .nav-container {
    padding: 1rem 0;
    flex-direction: column;
    gap: 1rem;
  }
  
  .site-nav {
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .site-nav a {
    padding: 0.375rem 0.5rem;
    font-size: 0.875rem;
  }

  .columns {
    flex-direction: column;
  }

  .is-6 {
    flex: 1;
    max-width: 100%;
  }

  .about-card {
    padding: 1.5rem;
  }

  .buttons {
    flex-direction: column;
    align-items: center;
  }

  .footer-links {
    flex-direction: column;
    gap: 0.5rem;
  }

  .footer-org-logos {
    gap: 1rem;
  }

  .footer-org-logos img {
    height: 32px;
  }

  .table-container {
    font-size: 0.875rem;
  }

  .table th,
  .table td {
    padding: 0.5rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.75rem;
  }

  .brand-logo {
    font-size: 1.25rem;
  }

  .feature-card,
  .game-card,
  .about-card {
    padding: 1rem;
  }

  .btn-primary,
  .btn-secondary {
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
  }
}

/* Animation Classes */
.fade-in {
  animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.slide-up {
  animation: slideUp 0.8s ease-out;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--background-main);
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-light);
}

/* Modal Styles */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal.is-active {
  opacity: 1;
  visibility: visible;
}

.modal-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(10px);
}

.modal-content {
  position: relative;
  z-index: 1001;
  max-width: 90vw;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--background-secondary);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 16px;
  padding: 2rem;
}

.box {
  background: rgba(30, 41, 91, 0.2);
  border: 1px solid rgba(59, 130, 246, 0.3);
  backdrop-filter: blur(15px);
  border-radius: 12px;
  padding: 2rem;
}

.p-4 {
  padding: 2rem;
}

/* Navigation Link Styles */
.nav-link {
  padding: 0.5rem 0.75rem;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-weight: 500;
}

.nav-link:hover {
  color: var(--text-main);
  background: rgba(30, 58, 138, 0.2);
  transform: translateY(-1px);
}

.nav-link.is-active {
  color: var(--primary-light);
  background: rgba(30, 58, 138, 0.3);
}

/* Additional Utility Classes */
.is-striped tbody tr:nth-child(odd) {
  background: rgba(30, 58, 138, 0.05);
}

.is-fullwidth {
  width: 100%;
}

.is-large {
  font-size: 1.25rem;
  padding: 1rem 2rem;
}

.is-primary {
  background: var(--gradient-primary);
  color: white;
  border: none;
}

.is-danger {
  background: var(--error);
  color: white;
  border: none;
}

/* Body scroll lock when modal is open */
.is-clipped {
  overflow: hidden;
}

/* Additional responsive improvements */
@media (max-width: 768px) {
  .modal-content {
    max-width: 95vw;
    padding: 1rem;
  }

  .box {
    padding: 1.5rem;
  }

  .nav-container {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .site-nav {
    order: 2;
    width: 100%;
    justify-content: center;
    margin-top: 1rem;
  }

  .brand-logo {
    order: 1;
  }
}
