/* OceanKiwiPlay - Main Styles */

/* CSS Custom Properties (Variables) */
:root {
  /* Colors - Ocean Palette */
  --ocean-50: #f0f9ff;
  --ocean-100: #e0f2fe;
  --ocean-200: #bae6fd;
  --ocean-300: #7dd3fc;
  --ocean-400: #38bdf8;
  --ocean-500: #0ea5e9;
  --ocean-600: #0284c7;
  --ocean-700: #0369a1;
  --ocean-800: #075985;
  --ocean-900: #0c4a6e;
  --ocean-950: #082f49;

  /* Colors - Teal */
  --teal-50: #f0fdfa;
  --teal-100: #ccfbf1;
  --teal-200: #99f6e4;
  --teal-300: #5eead4;
  --teal-400: #2dd4bf;
  --teal-500: #14b8a6;
  --teal-600: #0d9488;
  --teal-700: #0f766e;
  --teal-800: #115e59;
  --teal-900: #134e4a;

  /* Colors - Coral */
  --coral-50: #fff7ed;
  --coral-100: #ffedd5;
  --coral-200: #fed7aa;
  --coral-300: #fca5a5;
  --coral-400: #fb923c;
  --coral-500: #ff5730;
  --coral-600: #ea580c;
  --coral-700: #c2410c;

  /* Colors - Gold */
  --gold-50: #fefce8;
  --gold-100: #fef9c3;
  --gold-200: #fef08a;
  --gold-300: #fde047;
  --gold-400: #facc15;
  --gold-500: #eab308;
  --gold-600: #ca8a04;
  --gold-700: #a16207;

  /* Neutral Colors */
  --white: #ffffff;
  --black: #000000;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-display: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;

  /* Spacing */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-2xl: 48px;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);

  /* Layout */
  --header-height: 70px;
  --max-width: 1200px;
}

/* Reset & Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  line-height: 1.6;
  color: var(--gray-100);
  background: var(--ocean-950);
  min-height: 100vh;
}

/* Header Styles */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(8, 47, 73, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 1000;
}

.header-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  text-decoration: none;
}

.logo-emoji {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
}

.header-nav {
  display: flex;
  gap: var(--spacing-md);
}

.nav-link {
  color: var(--gray-300);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-md);
}

.nav-link:hover,
.nav-link.active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

/* Header Actions & Hamburger */
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.hamburger-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border: none;
  background: transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.2s;
}

.hamburger-toggle:hover {
  background: rgba(255, 255, 255, 0.07);
}

.hamburger-line {
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

/* Mobile Drawer */
.mobile-drawer {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(2, 25, 41, 0.98);
  backdrop-filter: blur(20px);
  z-index: 850;
  flex-direction: column;
  padding: 32px 24px;
  gap: 8px;
  overflow-y: auto;
}

.mobile-drawer.open {
  display: flex;
}

.mobile-nav-link {
  display: block;
  padding: 14px 18px;
  font-size: 1.05rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-md);
  transition: background 0.2s, color 0.2s;
  border: 1px solid transparent;
  text-decoration: none;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  background: rgba(255, 255, 255, 0.07);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.08);
}

.mobile-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 8px 0;
}

.mobile-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.btn-teal {
  background: linear-gradient(135deg, var(--teal-500), var(--teal-600));
  color: var(--white);
  box-shadow: 0 4px 12px rgba(20, 184, 166, 0.3);
}

.btn-teal:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(20, 184, 166, 0.4);
}

.btn-coral {
  background: linear-gradient(135deg, var(--coral-500), var(--coral-600));
  color: var(--white);
  box-shadow: 0 4px 12px rgba(255, 87, 48, 0.3);
}

.btn-coral:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 87, 48, 0.4);
}

/* Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-sm) var(--spacing-md);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--ocean-500), var(--ocean-600));
  color: var(--white);
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(14, 165, 233, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-sm {
  padding: var(--spacing-xs) var(--spacing-sm);
  font-size: 0.85rem;
}

/* Footer Styles */
.main-footer {
  background: rgba(0, 0, 0, 0.3);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: var(--spacing-xl) 0 var(--spacing-md);
  margin-top: var(--spacing-2xl);
}

.footer-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-xl);
}

.footer-section h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: var(--spacing-md);
}

.footer-section p {
  color: var(--gray-400);
  line-height: 1.6;
  font-size: 0.95rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: var(--spacing-sm);
}

.footer-section a {
  color: var(--gray-400);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-section a:hover {
  color: var(--teal-400);
}

.footer-bottom {
  max-width: var(--max-width);
  margin: var(--spacing-xl) auto 0;
  padding: var(--spacing-md) var(--spacing-lg) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  color: var(--gray-500);
  font-size: 0.9rem;
}

/* Page Container */
.page-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

/* Age Gate Styles */
.age-gate-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: var(--spacing-md);
}

.age-gate-overlay.hidden {
  display: none;
}

.age-gate-panel {
  background: linear-gradient(145deg, var(--ocean-800), var(--ocean-900));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  padding: var(--spacing-xl);
  max-width: 500px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-xl);
}

.age-gate-emblem {
  font-size: 4rem;
  margin-bottom: var(--spacing-md);
}

.age-gate-panel h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: var(--spacing-md);
}

.age-gate-panel p {
  color: var(--gray-300);
  margin-bottom: var(--spacing-lg);
  line-height: 1.6;
}

.age-gate-checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: var(--spacing-lg);
  text-align: left;
}

.age-checkbox-input {
  margin-top: 4px;
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.age-checkbox-label {
  flex: 1;
  color: var(--gray-300);
  font-size: 0.9rem;
  line-height: 1.5;
  cursor: pointer;
}

.age-checkbox-label a {
  color: var(--teal-400);
  text-decoration: none;
}

.age-checkbox-label a:hover {
  text-decoration: underline;
}

.age-confirm-btn {
  width: 100%;
  padding: 14px var(--spacing-lg);
  background: linear-gradient(135deg, var(--ocean-500), var(--ocean-600));
  color: var(--white);
  border: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
}

.age-confirm-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.age-confirm-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(14, 165, 233, 0.4);
}

.age-gate-small-print {
  margin-top: var(--spacing-md);
  font-size: 0.8rem;
  color: var(--gray-500);
  line-height: 1.4;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(8, 47, 73, 0.95);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: var(--spacing-lg) var(--spacing-lg);
  z-index: 1500;
}

.cookie-banner.dismissed {
  display: none;
}

.cookie-banner-text {
  max-width: var(--max-width);
  margin: 0 auto var(--spacing-md);
  color: var(--gray-300);
  font-size: 0.9rem;
  line-height: 1.5;
  text-align: center;
}

.cookie-banner-text a {
  color: var(--teal-400);
  text-decoration: none;
}

.cookie-banner-text a:hover {
  text-decoration: underline;
}

.cookie-banner-actions {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
}

.cookie-accept-btn {
  padding: 10px var(--spacing-lg);
  background: linear-gradient(135deg, var(--ocean-500), var(--ocean-600));
  color: var(--white);
  border: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
}

.cookie-accept-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.cookie-decline-btn {
  padding: 10px var(--spacing-lg);
  background: transparent;
  color: var(--gray-400);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
}

.cookie-decline-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--gray-300);
}

/* Toast Notification */
.toast-notification {
  position: fixed;
  top: calc(var(--header-height) + var(--spacing-md));
  right: var(--spacing-md);
  background: linear-gradient(145deg, var(--ocean-700), var(--ocean-800));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: var(--spacing-md) var(--spacing-lg);
  box-shadow: var(--shadow-lg);
  z-index: 3000;
  max-width: 320px;
  color: var(--white);
  font-size: 0.95rem;
  opacity: 0;
  transform: translateX(100%);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.toast-notification.visible {
  opacity: 1;
  transform: translateX(0);
}

.toast-notification.toast-success {
  background: linear-gradient(145deg, #0f766e, #115e59);
  border-color: rgba(45, 212, 191, 0.3);
}

.toast-notification.toast-error {
  background: linear-gradient(145deg, #991b1b, #7f1d1d);
  border-color: rgba(248, 113, 113, 0.3);
}

.toast-notification.toast-info {
  background: linear-gradient(145deg, var(--ocean-700), var(--ocean-800));
  border-color: rgba(56, 189, 248, 0.3);
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .header-container {
    padding: 0 var(--spacing-md);
  }

  .header-nav {
    display: none;
  }

  .hamburger-toggle {
    display: flex;
  }

  .footer-content {
    grid-template-columns: 1fr;
    padding: 0 var(--spacing-md);
  }

  .cookie-banner {
    padding: var(--spacing-md) var(--spacing-md);
  }

  .cookie-banner-text,
  .cookie-banner-actions {
    text-align: center;
  }

  .cookie-banner-actions {
    flex-direction: column;
  }

  .toast-notification {
    left: var(--spacing-md);
    right: var(--spacing-md);
    max-width: none;
  }

  .age-gate-panel {
    padding: var(--spacing-lg);
  }
}
