/* Zenverse - Shared styles. Dark premium theme, navbar, footer, typography */

:root {
  --bg-dark: #0f0f14;
  --bg-card: #16161d;
  --bg-elevated: #1c1c26;
  --text-primary: #f4f4f6;
  --text-secondary: #a0a0b0;
  --text-muted: #6b6b7b;
  --accent-start: #ec4899;
  --accent-mid: #8b5cf6;
  --accent-end: #6366f1;
  --gradient-primary: linear-gradient(135deg, var(--accent-start), var(--accent-mid));
  --gradient-premium: linear-gradient(135deg, #f59e0b, var(--accent-start), var(--accent-mid));
  --border-subtle: rgba(255, 255, 255, 0.08);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
  --radius: 12px;
  --radius-lg: 20px;
  --font-sans: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-dark);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Navbar */
.zenv-nav {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.75rem 1rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.zenv-nav .zenv-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.zenv-nav .zenv-logo {
  height: 48px;
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.25rem;
}

.zenv-nav .zenv-logo img {
  height: 100%;
  width: auto;
  max-height: 48px;
  object-fit: contain;
}

.zenv-nav-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.zenv-nav .zenv-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(236, 72, 153, 0.35);
}

.zenv-nav .zenv-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(236, 72, 153, 0.45);
}

.zenv-nav .zenv-btn-secondary {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  box-shadow: none;
}

.zenv-nav .zenv-btn-secondary:hover {
  background: var(--bg-elevated);
  border-color: var(--accent-mid);
  box-shadow: 0 0 0 1px var(--accent-mid);
}

.zenv-user-menu {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.zenv-user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-subtle);
}

/* Footer */
.zenv-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border-subtle);
  padding: 2rem 1rem;
  margin-top: auto;
}

.zenv-footer .zenv-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  text-align: center;
}

.zenv-footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.zenv-footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
}

.zenv-footer-links a:hover {
  color: var(--accent-start);
}

.zenv-footer p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Container */
.zenv-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Typography */
.zenv-h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.zenv-lead {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

/* Buttons - premium gradient, hover animation */
.zenv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  background: var(--gradient-premium);
  color: #fff;
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.35);
}

.zenv-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(139, 92, 246, 0.45);
}

.zenv-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.zenv-btn-secondary {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  box-shadow: none;
}

.zenv-btn-secondary:hover:not(:disabled) {
  border-color: var(--accent-mid);
  box-shadow: 0 0 0 1px var(--accent-mid);
}

/* Forms - floating labels, error states */
.zenv-form-group {
  margin-bottom: 1.25rem;
  position: relative;
}

.zenv-form-group label {
  display: block;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.zenv-form-control {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius);
  font-size: 1rem;
  background: var(--bg-elevated);
  color: var(--text-primary);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.zenv-form-control::placeholder {
  color: var(--text-muted);
}

.zenv-form-control:focus {
  outline: none;
  border-color: var(--accent-mid);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

.zenv-form-control.zenv-error {
  border-color: #ef4444;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
}

.zenv-form-error {
  color: #f87171;
  font-size: 0.85rem;
  margin-top: 0.35rem;
  display: none;
}

.zenv-form-error.zenv-visible {
  display: block;
}

/* Loading spinner */
.zenv-spinner {
  width: 24px;
  height: 24px;
  border: 3px solid var(--border-subtle);
  border-top-color: var(--accent-start);
  border-radius: 50%;
  animation: zenv-spin 0.8s linear infinite;
  margin: 0 auto;
}

@keyframes zenv-spin {
  to { transform: rotate(360deg); }
}

/* Message / alert */
.zenv-alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.zenv-alert-error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}

.zenv-alert-success {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #86efac;
}

/* Cards */
.zenv-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
}

/* Back button */
.zenv-back {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
  margin-bottom: 1rem;
}

.zenv-back:hover {
  color: var(--accent-start);
  background: var(--bg-elevated);
}

/* Mobile */
@media (max-width: 768px) {
  .zenv-nav .zenv-container { padding: 0 0.75rem; }
  .zenv-nav-links { width: 100%; justify-content: flex-end; }
  .zenv-footer-links { gap: 1rem; }
}
