@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

* {
  box-sizing: border-box;
}

:root {
  --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --tertiary-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --dark-gradient: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.8);
  --text-accent: #00f2fe;
  --bg-card: rgba(255, 255, 255, 0.1);
  --bg-card-hover: rgba(255, 255, 255, 0.15);
  --shadow-neon: 0 0 20px rgba(0, 242, 254, 0.3);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.3);
  --error-color: #ff6b6b;
}

[data-theme="light"] {
  --primary-gradient: linear-gradient(135deg, #5a67d8 0%, #667eea 100%);
  --secondary-gradient: linear-gradient(135deg, #ed64a6 0%, #f093fb 100%);
  --tertiary-gradient: linear-gradient(135deg, #3182ce 0%, #4facfe 100%);
  --dark-gradient: linear-gradient(135deg, #e2e8f0 0%, #cbd5e0 100%);
  --text-primary: #1a202c;
  --text-secondary: rgba(26, 32, 44, 0.8);
  --text-accent: #3182ce;
  --bg-card: rgba(255, 255, 255, 0.8);
  --bg-card-hover: rgba(255, 255, 255, 0.95);
  --shadow-neon: 0 0 20px rgba(49, 130, 206, 0.3);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.1);
  --error-color: #e53e3e;
}

[data-theme="light"] body {
  background: linear-gradient(135deg, #ffffff 0%, #f7fafc 25%, #edf2f7 50%, #e2e8f0 75%, #cbd5e0 100%);
}

[data-theme="light"] body::before {
  background-image: 
    radial-gradient(circle at 20% 80%, rgba(66, 153, 225, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(236, 72, 153, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(49, 130, 206, 0.15) 0%, transparent 50%);
}

[data-theme="light"] header {
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="light"] footer {
  background: var(--dark-gradient);
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

body {
  font-family: 'Space Grotesk', sans-serif;
  margin: 0;
  padding: 80px 0 0;
  background: linear-gradient(135deg, #0c0c0c 0%, #1a1a2e 25%, #16213e 50%, #0f3460 75%, #533483 100%);
  background-attachment: fixed;
  color: var(--text-primary);
  min-height: 100vh;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.2) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

header {
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

header .inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
}

header h1 {
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
  background: var(--tertiary-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: var(--shadow-neon);
}

header h1 a {
  text-decoration: none;
  background: inherit;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.theme-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 25px;
  padding: 8px 12px;
  transition: all 0.3s ease;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.theme-toggle:hover {
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-neon);
}

.theme-toggle-icon {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.theme-toggle-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
  min-width: 60px;
}

[data-theme="light"] .theme-toggle {
  border-color: rgba(0, 0, 0, 0.2);
}

.back-button {
  padding: 10px 20px;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 25px;
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.back-button:hover {
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-neon);
  transform: translateY(-2px);
}

footer {
  background: var(--dark-gradient);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  padding: 40px;
  margin-top: 80px;
  backdrop-filter: blur(10px);
}

footer p {
  margin: 0;
  color: var(--text-secondary);
  font-weight: 300;
}

@media (max-width: 768px) {
  header h1 {
    font-size: 1.6rem;
  }
  
  header .inner {
    flex-direction: column;
    gap: 10px;
    padding: 15px 20px;
  }
  
  .header-actions {
    flex-direction: column;
    gap: 10px;
  }
  
  .theme-toggle {
    padding: 6px 10px;
  }
  
  .theme-toggle-text {
    font-size: 0.8rem;
    min-width: 50px;
  }
}