/* ==========================================================================
   TEMP MAIL - CORE DESIGN SYSTEM & TOKENS
   Inspired by Temp-Mail.org Premium UI
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
  /* Color Palette - Directly matched with our App Logo (Deep Sapphire & Neon Lime) */
  --bg-dark-base: #0a0f1d;
  --bg-dark-hero: #0f1c3d;
  --bg-dark-surface: #14244d;
  --bg-dark-input: #1a2c5a;
  --bg-light-body: #ffffff;
  --bg-light-alt: #f8fafc;
  --bg-card: #ffffff;

  /* Logo Core Accents */
  --brand-blue: #0066ff;
  --brand-blue-dark: #0047e1;
  --brand-blue-hover: #0052cc;
  --brand-blue-light: rgba(0, 102, 255, 0.12);
  --brand-blue-glow: rgba(0, 102, 255, 0.35);

  --brand-lime: #a3e635;
  --brand-lime-hover: #84cc16;
  --brand-lime-light: rgba(163, 230, 53, 0.15);
  --brand-lime-glow: rgba(163, 230, 53, 0.4);

  /* Compatibility alias for existing components */
  --brand-teal: #a3e635;
  --brand-teal-hover: #84cc16;
  --brand-teal-light: rgba(163, 230, 53, 0.15);
  --brand-teal-glow: rgba(163, 230, 53, 0.4);

  --brand-yellow: #ffd600;
  --brand-yellow-hover: #e6c200;
  --brand-yellow-light: rgba(255, 214, 0, 0.15);

  --brand-red: #ef4444;

  /* Text Colors */
  --text-white: #ffffff;
  --text-muted-dark: #94a3b8;
  --text-dark-primary: #0f172a;
  --text-dark-secondary: #475569;
  --text-dark-tertiary: #94a3b8;

  /* Borders & Shadows */
  --border-dark: rgba(255, 255, 255, 0.1);
  --border-light: #e2e8f0;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-glow: 0 0 24px var(--brand-blue-glow);
  --shadow-lime-glow: 0 0 20px var(--brand-lime-glow);
  --shadow-pop: 0 20px 40px -10px rgba(0, 0, 0, 0.2);

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', Consolas, "Courier New", monospace;

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 9999px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-light-body);
  color: var(--text-dark-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  outline: none;
}

img, svg {
  display: block;
  max-width: 100%;
}

/* Container */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Typography Utilities */
.mono-title {
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Toast Notifications */
#toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.4rem;
  background: #1e293b;
  color: #fff;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
  font-size: 0.95rem;
  font-weight: 500;
  border-left: 4px solid var(--brand-lime);
  animation: slideInUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transition: all 0.3s ease;
}

.toast.toast-error {
  border-left-color: var(--brand-red);
}

.toast.toast-warning {
  border-left-color: var(--brand-yellow);
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.badge-new {
  background: #ec4899;
  color: #fff;
  margin-left: 0.4rem;
}

.badge-popular {
  background: var(--brand-blue);
  color: #fff;
}

.badge-yellow {
  background: var(--brand-yellow);
  color: #000;
}
