/* ==========================================================================
   TOLDER - DESIGN SYSTEM V7 (SUBTLE OBSIDIAN NAVBAR, DISCORD BADGE & REFINED LOGO)
   Inspirado en Obsidian navbar y Moltorino aesthetic
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

:root {
  /* Obsidian Base & Warm Radial Backdrop */
  --bg-obsidian: #050403;
  --bg-warm-radial: radial-gradient(circle at 50% 25%, #16110a 0%, #0c0906 45%, #050403 100%);
  --bg-surface: #0e0a07;
  --bg-card: rgba(15, 12, 9, 0.78);
  --bg-card-hover: rgba(24, 18, 13, 0.9);
  --bg-glass-input: rgba(12, 9, 6, 0.7);

  /* Gold & Warm Amber-Orange Accents */
  --amber-light: #fef08a;
  --amber-300: #fde047;
  --amber-400: #facc15;
  --amber-500: #eab308;
  --amber-600: #d97706;
  --orange-500: #f97316;

  /* Subtle Glows & Borders */
  --gold-glow: rgba(234, 179, 8, 0.16);
  --gold-glow-strong: rgba(234, 179, 8, 0.35);
  --border-amber: rgba(234, 179, 8, 0.14);
  --border-amber-bright: rgba(234, 179, 8, 0.35);

  /* Typography */
  --text-primary: #f8fafc;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;

  /* Fonts */
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-serif: 'Instrument Serif', Georgia, serif;

  /* Motion & Radii */
  --radius-full: 9999px;
  --radius-xl: 20px;
  --radius-lg: 12px;
  --radius-md: 8px;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 0.18s ease-out;
}

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

a, a:visited, a:hover, a:active {
  text-decoration: none;
  color: inherit;
}

html {
  width: 100%;
  height: 100%;
}

body {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-obsidian);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

#app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  width: 100%;
  flex: 1 0 auto;
}

main {
  flex: 1 0 auto;
  width: 100%;
}

/* Blur-In Entrance Animation (Slower 1.85s for luxury atmosphere) */
.page-blur-entrance {
  animation: blurEntranceSlow 1.85s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes blurEntranceSlow {
  0% {
    filter: blur(24px);
    opacity: 0;
  }
  100% {
    filter: blur(0px);
    opacity: 1;
  }
}

/* Parallax Ambient Background (Fixed Viewport Layer - Zero Seams) */
.ambient-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  background: var(--bg-warm-radial);
}

.ambient-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(234, 179, 8, 0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.35;
}

.ambient-orb-warm {
  position: absolute;
  top: -15%;
  left: 25%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.12) 0%, rgba(234, 179, 8, 0.04) 45%, transparent 70%);
  filter: blur(110px);
  transition: transform 0.15s ease-out;
}

.moving-wave-svg {
  position: absolute;
  width: 120%;
  height: 120%;
  top: -10%;
  left: -10%;
  opacity: 0.32;
  stroke: rgba(245, 158, 11, 0.2);
  transition: transform 0.2s ease-out;
}

/* Clean Header (Brand Left, Center Discord SVG Badge, Right Bubble Nav Links) */
.top-header-clean {
  position: fixed;
  top: 24px;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.top-header-clean * {
  pointer-events: auto;
}

/* Original Brand tolder.me with Fine Underline Stroke */
.brand-tolder-original {
  display: inline-flex;
  align-items: center;
  position: relative;
  text-decoration: none;
}

.navbar-brand-logo {
  height: 38px;
  width: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 0 6px rgba(234, 179, 8, 0.25));
  transition: transform var(--transition-fast), filter var(--transition-fast);
}

.navbar-brand-logo-full {
  height: 54px;
  width: auto;
  max-width: 230px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 0 10px rgba(234, 179, 8, 0.28));
  transition: transform var(--transition-fast), filter var(--transition-fast);
}

.brand-tolder-original:hover .navbar-brand-logo,
.brand-tolder-original:hover .navbar-brand-logo-full {
  transform: scale(1.05);
  filter: drop-shadow(0 0 14px rgba(234, 179, 8, 0.45));
}

.brand-tolder-text {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.fine-amber-stroke {
  height: 1.5px;
  width: 100%;
  background: linear-gradient(90deg, var(--amber-400), var(--orange-500));
  border-radius: var(--radius-full);
  margin-top: 1px;
}

/* Discord SVG Badge Centered on Top */
.discord-center-badge {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(16, 12, 8, 0.8);
  border: 1px solid rgba(88, 101, 242, 0.32);
  color: #a5b4fc;
  font-size: 0.8rem;
  font-weight: 700;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
  transition: all var(--transition-fast);
}

.discord-center-badge:hover {
  background: rgba(88, 101, 242, 0.22);
  color: #ffffff;
  border-color: #5865f2;
  box-shadow: 0 8px 25px rgba(88, 101, 242, 0.35);
  transform: translateX(-50%) translateY(-1px);
}

.discord-center-badge svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Top-Right Navigation Links Pill/Bubble */
.nav-links-bubble {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 16px;
  background: rgba(12, 9, 6, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(234, 179, 8, 0.18);
  border-radius: var(--radius-full);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.7);
  transition: all var(--transition-smooth);
}

.nav-links-bubble:hover {
  border-color: rgba(234, 179, 8, 0.35);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.9), 0 0 20px var(--gold-glow);
}

.nav-item-clean {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.88rem;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.nav-item-clean:hover {
  color: var(--text-primary);
}

.nav-item-clean.active {
  color: var(--amber-400);
  font-weight: 700;
  background: rgba(234, 179, 8, 0.1);
}

/* Glass Card */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-amber);
  border-radius: var(--radius-xl);
  box-shadow: 0 16px 40px -15px rgba(0, 0, 0, 0.75);
  transition: all var(--transition-smooth);
}

.glass-card:hover {
  border-color: var(--border-amber-bright);
  box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.95), 0 0 25px var(--gold-glow);
}

/* Buttons */
.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: var(--radius-full);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition-smooth);
  white-space: nowrap;
}

.btn-primary-darktext {
  background: linear-gradient(135deg, var(--amber-400) 0%, var(--orange-500) 100%);
  color: #050403 !important;
  font-weight: 800;
  box-shadow: 0 4px 20px var(--gold-glow), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.btn-primary-darktext:hover {
  background: linear-gradient(135deg, var(--amber-300) 0%, var(--amber-500) 100%);
  box-shadow: 0 6px 28px var(--gold-glow-strong);
  transform: translateY(-1px);
}

.btn-secondary-greyish {
  background: rgba(32, 27, 21, 0.85);
  color: #ffffff !important;
  border: 1px solid var(--border-amber);
}

.btn-secondary-greyish:hover {
  background: rgba(45, 38, 30, 0.95);
  border-color: var(--amber-500);
  color: var(--amber-300) !important;
}

/* Form Inputs */
.input-glass {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-glass-input);
  border: 1px solid var(--border-amber);
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  outline: none;
  transition: all var(--transition-smooth);
}

.input-glass:focus {
  border-color: var(--amber-500);
  box-shadow: 0 0 20px var(--gold-glow);
}

textarea.input-glass {
  resize: none;
}

/* Minimalist Footer (Moltorino Style) */
.footer-minimalist {
  position: relative;
  z-index: 10;
  margin-top: auto;
  padding: 32px 48px;
  background: rgba(5, 4, 3, 0.96);
  border-top: 1px solid rgba(234, 179, 8, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
  color: var(--text-subtle);
}

.footer-left-brand {
  display: flex;
  align-items: center;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-primary);
}

.footer-brand-logo {
  height: 52px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  display: block;
  opacity: 0.95;
  filter: drop-shadow(0 0 6px rgba(234, 179, 8, 0.2));
  transition: opacity var(--transition-fast), transform var(--transition-fast), filter var(--transition-fast);
}

.footer-brand-logo:hover {
  opacity: 1;
  transform: scale(1.04);
  filter: drop-shadow(0 0 8px rgba(234, 179, 8, 0.35));
}

.footer-center-support {
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.footer-center-support:hover {
  color: var(--amber-400);
}

.footer-right-legal {
  display: flex;
  gap: 20px;
}

.footer-right-legal a {
  color: var(--text-subtle);
  transition: color var(--transition-fast);
}

.footer-right-legal a:hover {
  color: var(--text-primary);
}

/* Toast Container */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  padding: 12px 18px;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-amber-bright);
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  font-size: 0.88rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  gap: 10px;
}

@media (max-width: 768px) {
  .navbar-brand-logo-full {
    height: 42px;
  }
}
