/* Cyber Incense - Global Styles */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Noto+Sans+SC:wght@300;400;500;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --color-primary: #ff2d6a;
  --color-secondary: #00f0ff;
  --color-gold: #ffd700;
  --text-primary: #e0e0e0;
  --text-muted: #6a6a7a;
  --font-heading: 'Orbitron', sans-serif;
  --font-body: 'Noto Sans SC', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Scanlines overlay */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 240, 255, 0.03) 2px,
    rgba(0, 240, 255, 0.03) 4px
  );
  pointer-events: none;
  z-index: 9999;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--color-primary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #ff5580;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: rgba(10, 10, 15, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 45, 106, 0.3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  z-index: 1000;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo-icon {
  font-size: 1.5rem;
}

.logo-img {
  height: 32px;
  width: 32px;
  filter: drop-shadow(0 0 5px var(--color-primary));
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-primary);
  text-shadow: 0 0 10px rgba(255, 45, 106, 0.5);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
  position: relative;
}

.nav-link:hover {
  color: var(--color-secondary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-secondary);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-user {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.username {
  font-family: var(--font-mono);
  color: var(--color-gold);
}

/* Buttons */
.btn {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  padding: 0.6rem 1.2rem;
  border: 2px solid var(--color-primary);
  background: transparent;
  color: var(--color-primary);
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 45, 106, 0.4), transparent);
  transition: left 0.5s ease;
}

.btn:hover::before {
  left: 100%;
}

.btn:hover {
  background: var(--color-primary);
  color: var(--bg-primary);
  box-shadow: 0 0 20px rgba(255, 45, 106, 0.5);
}

.btn-secondary {
  border-color: var(--color-secondary);
  color: var(--color-secondary);
}

.btn-secondary:hover {
  background: var(--color-secondary);
  color: var(--bg-primary);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.5);
}

.btn-gold {
  border-color: var(--color-gold);
  color: var(--color-gold);
}

.btn-gold:hover {
  background: var(--color-gold);
  color: var(--bg-primary);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

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

.btn:disabled:hover {
  background: transparent;
  color: var(--color-primary);
  box-shadow: none;
}

/* Glitch text effect */
.glitch {
  position: relative;
}

.glitch:hover {
  animation: glitch 0.3s ease;
}

@keyframes glitch {
  0% { transform: translate(0); }
  20% { transform: translate(-2px, 2px); }
  40% { transform: translate(-2px, -2px); }
  60% { transform: translate(2px, 2px); }
  80% { transform: translate(2px, -2px); }
  100% { transform: translate(0); }
}

/* Neon glow text */
.neon-text {
  text-shadow:
    0 0 5px var(--color-primary),
    0 0 10px var(--color-primary),
    0 0 20px var(--color-primary),
    0 0 40px var(--color-primary);
}

.neon-text-secondary {
  text-shadow:
    0 0 5px var(--color-secondary),
    0 0 10px var(--color-secondary),
    0 0 20px var(--color-secondary);
}

.neon-text-gold {
  text-shadow:
    0 0 5px var(--color-gold),
    0 0 10px var(--color-gold),
    0 0 20px var(--color-gold);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Section */
.section {
  padding: 4rem 0;
}

/* Card */
.card {
  background: var(--bg-secondary);
  border: 1px solid rgba(255, 45, 106, 0.2);
  border-radius: 4px;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 0 20px rgba(255, 45, 106, 0.1);
}

/* Form */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  color: var(--color-secondary);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.form-input {
  width: 100%;
  padding: 0.8rem 1rem;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 45, 106, 0.3);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 10px rgba(255, 45, 106, 0.2);
}

.form-input::placeholder {
  color: var(--text-muted);
}

/* Page header */
.page-header {
  padding: 8rem 0 4rem;
  text-align: center;
}

.page-title {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 900;
  color: var(--color-primary);
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.page-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* Footer */
.footer {
  text-align: center;
  padding: 2rem;
  border-top: 1px solid rgba(255, 45, 106, 0.2);
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer span {
  color: var(--color-gold);
}

/* Loading spinner */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid transparent;
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Toast notifications */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  padding: 1rem 1.5rem;
  background: var(--bg-secondary);
  border: 1px solid var(--color-primary);
  border-radius: 4px;
  color: var(--text-primary);
  font-size: 0.9rem;
  z-index: 10000;
  animation: slideIn 0.3s ease;
}

.toast.success {
  border-color: var(--color-gold);
}

.toast.error {
  border-color: #ff3333;
}

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

/* Responsive */
@media (max-width: 768px) {
  .navbar {
    padding: 0 1rem;
  }

  .container {
    padding: 0 1rem;
  }

  .page-title {
    font-size: 2rem;
  }

  .nav-links {
    gap: 1rem;
  }
}

/* Utility classes */
.text-center { text-align: center; }
.text-primary { color: var(--color-primary); }
.text-secondary { color: var(--color-secondary); }
.text-gold { color: var(--color-gold); }
.text-muted { color: var(--text-muted); }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }