/* Nordspinen - Premium Scandinavian Social Casino Design */
/* Aurora Borealis & Glassmorphism Theme with Image Integration */

:root {
  --deep-navy: #0A0F1E;
  --ice-blue: #7AC7FF;
  --aurora-cyan: #52F2FF;
  --aurora-purple: #8B5FBF;
  --cold-white: #E6F7FF;
  --frost-glass: rgba(122, 199, 255, 0.1);
  --aurora-gradient: linear-gradient(135deg, #0A0F1E 0%, #1a2332 25%, #2d4a6b 50%, #8B5FBF 75%, #52F2FF 100%);
  --northern-lights: linear-gradient(90deg, #52F2FF 0%, #7AC7FF 25%, #8B5FBF 50%, #a8e6ff 75%, #52F2FF 100%);
  --rune-glow: 0 0 20px rgba(82, 242, 255, 0.6);
  --premium-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  background: var(--deep-navy);
  color: var(--cold-white);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Aurora Background Animation */
.aurora-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--aurora-gradient);
  z-index: -2;
}

.aurora-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: -50%;
  width: 200%;
  height: 100%;
  background: var(--northern-lights);
  opacity: 0.3;
  animation: aurora-flow 20s ease-in-out infinite;
  transform: rotate(-5deg);
}

@keyframes aurora-flow {
  0%, 100% { transform: translateX(-10%) rotate(-5deg); opacity: 0.3; }
  50% { transform: translateX(10%) rotate(5deg); opacity: 0.6; }
}

/* Glassmorphism Cards */
.glass-card {
  background: rgba(122, 199, 255, 0.08);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(122, 199, 255, 0.2);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.glass-card:hover {
  background: rgba(122, 199, 255, 0.12);
  border-color: rgba(82, 242, 255, 0.4);
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(82, 242, 255, 0.2);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 2rem;
  background: rgba(10, 15, 30, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(122, 199, 255, 0.1);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--aurora-cyan);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo::before {
  content: '❄';
  font-size: 2rem;
  animation: sparkle 3s ease-in-out infinite;
}

@keyframes sparkle {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.1); }
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  color: var(--cold-white);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 10px;
  transition: all 0.3s ease;
  font-weight: 500;
}

.nav-link:hover {
  background: var(--frost-glass);
  color: var(--aurora-cyan);
  transform: translateY(-2px);
}

.cta-button {
  background: linear-gradient(135deg, var(--aurora-cyan), var(--ice-blue));
  color: var(--deep-navy);
  padding: 0.7rem 1.5rem;
  border-radius: 15px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(82, 242, 255, 0.3);
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(82, 242, 255, 0.5);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  position: relative;
}

.hero-content {
  max-width: 800px;
  z-index: 10;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--cold-white), var(--aurora-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  color: var(--ice-blue);
}

.age-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 59, 48, 0.2);
  color: #ff3b30;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  font-weight: 600;
  margin-bottom: 1rem;
  border: 1px solid rgba(255, 59, 48, 0.3);
}

/* Game Cards */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.game-card {
  position: relative;
  height: 200px;
  overflow: hidden;
  cursor: pointer;
}

.game-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(82, 242, 255, 0.1), rgba(122, 199, 255, 0.05));
  z-index: 1;
}

.game-card-content {
  position: relative;
  z-index: 2;
  padding: 1.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.game-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--cold-white);
  margin-bottom: 0.5rem;
}

.game-subtitle {
  color: var(--ice-blue);
  font-size: 0.9rem;
  opacity: 0.8;
}

.play-button {
  align-self: flex-start;
  background: rgba(82, 242, 255, 0.2);
  color: var(--aurora-cyan);
  border: 1px solid var(--aurora-cyan);
  padding: 0.5rem 1rem;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.play-button:hover {
  background: var(--aurora-cyan);
  color: var(--deep-navy);
  transform: translateY(-2px);
}

/* Categories */
.categories {
  display: flex;
  justify-content: center;
  gap: 1rem;
  padding: 2rem;
  flex-wrap: wrap;
}

.category-tag {
  background: var(--frost-glass);
  color: var(--cold-white);
  padding: 0.7rem 1.5rem;
  border-radius: 25px;
  border: 1px solid rgba(122, 199, 255, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

.category-tag:hover, .category-tag.active {
  background: rgba(82, 242, 255, 0.2);
  border-color: var(--aurora-cyan);
  color: var(--aurora-cyan);
  transform: translateY(-2px);
}

/* Footer */
.footer {
  background: rgba(10, 15, 30, 0.9);
  padding: 3rem 2rem 2rem;
  margin-top: 4rem;
  border-top: 1px solid rgba(122, 199, 255, 0.1);
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.footer-section h3 {
  color: var(--aurora-cyan);
  margin-bottom: 1rem;
  font-weight: 600;
}

.footer-section a {
  color: var(--cold-white);
  text-decoration: none;
  display: block;
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: var(--aurora-cyan);
}

.disclaimer {
  text-align: center;
  padding: 2rem;
  border-top: 1px solid rgba(122, 199, 255, 0.1);
  margin-top: 2rem;
  font-size: 0.9rem;
  color: var(--ice-blue);
  background: rgba(255, 59, 48, 0.05);
  border-radius: 10px;
}

/* Forms */
.form-container {
  max-width: 600px;
  margin: 2rem auto;
  padding: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--cold-white);
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid rgba(122, 199, 255, 0.3);
  border-radius: 10px;
  background: rgba(122, 199, 255, 0.05);
  color: var(--cold-white);
  font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--aurora-cyan);
  background: rgba(122, 199, 255, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-menu {
    flex-direction: column;
    gap: 1rem;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .game-grid {
    grid-template-columns: 1fr;
    padding: 1rem;
  }
  
  .categories {
    padding: 1rem;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* Utility Classes */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 4rem 0;
}

.text-center {
  text-align: center;
}

.mb-2 {
  margin-bottom: 2rem;
}

.mt-4 {
  margin-top: 4rem;
}

/* Image Integration Styles */
.hero-banner {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: var(--premium-shadow);
  position: relative;
}

.game-avatar {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 15px;
  transition: all 0.3s ease;
}

.game-avatar:hover {
  transform: scale(1.05);
  box-shadow: var(--rune-glow);
}

.game-banner {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: var(--premium-shadow);
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(10, 15, 30, 0.7), rgba(139, 95, 191, 0.3));
  border-radius: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.game-card:hover .image-overlay {
  opacity: 1;
}

/* Cookie Banner Styles */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(10, 15, 30, 0.98);
  backdrop-filter: blur(20px);
  border-top: 2px solid var(--aurora-cyan);
  padding: 2rem;
  z-index: 10000;
  transform: translateY(100%);
  transition: transform 0.4s ease;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.5);
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
}

.cookie-text h3 {
  color: var(--aurora-cyan);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.cookie-text p {
  color: var(--cold-white);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.cookie-text a {
  color: var(--aurora-cyan);
  text-decoration: none;
}

.cookie-text a:hover {
  text-decoration: underline;
}

.cookie-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.cookie-btn {
  padding: 0.8rem 1.5rem;
  border-radius: 10px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.cookie-btn.accept {
  background: linear-gradient(135deg, var(--aurora-cyan), var(--ice-blue));
  color: var(--deep-navy);
}

.cookie-btn.accept:hover {
  transform: translateY(-2px);
  box-shadow: var(--rune-glow);
}

.cookie-btn.decline {
  background: rgba(255, 59, 48, 0.2);
  color: #ff3b30;
  border: 1px solid #ff3b30;
}

.cookie-btn.decline:hover {
  background: rgba(255, 59, 48, 0.3);
  transform: translateY(-2px);
}

.cookie-btn.manage {
  background: var(--frost-glass);
  color: var(--cold-white);
  border: 1px solid rgba(122, 199, 255, 0.3);
}

.cookie-btn.manage:hover {
  background: rgba(122, 199, 255, 0.2);
  border-color: var(--aurora-cyan);
}

/* Cookie Preferences Modal */
.cookie-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  z-index: 10001;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.cookie-modal.show {
  display: flex;
}

.cookie-modal-content {
  background: var(--deep-navy);
  border: 2px solid var(--aurora-cyan);
  border-radius: 20px;
  padding: 2rem;
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
}

.cookie-modal h2 {
  color: var(--aurora-cyan);
  margin-bottom: 1.5rem;
  text-align: center;
}

.cookie-category {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--frost-glass);
  border-radius: 15px;
  border: 1px solid rgba(122, 199, 255, 0.2);
}

.cookie-category h3 {
  color: var(--ice-blue);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cookie-toggle {
  position: relative;
  width: 50px;
  height: 25px;
  background: rgba(255, 59, 48, 0.3);
  border-radius: 25px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.cookie-toggle.active {
  background: var(--aurora-cyan);
}

.cookie-toggle::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 21px;
  height: 21px;
  background: white;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

.cookie-toggle.active::after {
  transform: translateX(25px);
}

.cookie-toggle.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.cookie-category p {
  color: var(--cold-white);
  font-size: 0.9rem;
  line-height: 1.6;
}

.cookie-modal-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

/* Enhanced Game Cards with Images */
.premium-game-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: var(--frost-glass);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(122, 199, 255, 0.2);
  transition: all 0.4s ease;
  cursor: pointer;
}

.premium-game-card:hover {
  transform: translateY(-10px);
  border-color: var(--aurora-cyan);
  box-shadow: var(--rune-glow);
}

.premium-game-card .game-image {
  position: relative;
  overflow: hidden;
}

.premium-game-card .game-content {
  padding: 1.5rem;
  position: relative;
  z-index: 2;
}

.premium-game-card .game-title {
  color: var(--cold-white);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.premium-game-card .game-category {
  color: var(--aurora-cyan);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.premium-game-card .game-description {
  color: var(--ice-blue);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

/* Rune Pattern Decorations */
.rune-decoration {
  position: absolute;
  font-size: 2rem;
  color: var(--aurora-cyan);
  opacity: 0.1;
  animation: runeGlow 4s ease-in-out infinite;
}

@keyframes runeGlow {
  0%, 100% { opacity: 0.1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(1.1); }
}

/* Enhanced Responsive Design */
@media (max-width: 768px) {
  .cookie-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .cookie-buttons {
    justify-content: center;
  }
  
  .cookie-modal-content {
    margin: 1rem;
    padding: 1.5rem;
  }
  
  .hero-banner {
    height: 250px;
  }
}

/* Premium Loading Animation */
.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid var(--frost-glass);
  border-radius: 50%;
  border-top-color: var(--aurora-cyan);
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
