/**
 * Scentpro Academy - Main Stylesheet
 * Brand Colors: Primary #3d2c6f, Accent #f310e5
 *
 * INTEGRATED BUILD (lives inside the Scentpro mother site).
 * Global element rules are scoped under .academy-catalog so they cannot leak into
 * the shared Tailwind header/footer shell. Differences from the standalone build:
 *   - dropped `html { font-size: 15px }` (would shrink Tailwind's rem spacing site-wide)
 *   - `.container` renamed to `.academy-container` (Tailwind owns `.container`)
 */

:root {
  --primary: #3d2c6f;
  --primary-hover: #4e388c;
  --primary-light: #f4f2fb;
  --primary-gradient: linear-gradient(135deg, #3d2c6f 0%, #583e9d 100%);
  
  --accent: #f310e5;
  --accent-hover: #d609ca;
  --accent-light: #fef0fd;
  --accent-gradient: linear-gradient(135deg, #f310e5 0%, #ff52d9 100%);
  --accent-glow: 0 0 15px rgba(243, 16, 229, 0.35);

  --secondary: #0072bc;
  --secondary-hover: #005a96;
  
  --dark: #1e293b;
  --dark-light: #334155;
  --gray-900: #0f172a;
  --gray-800: #1e293b;
  --gray-700: #334155;
  --gray-600: #475569;
  --gray-500: #64748b;
  --gray-400: #94a3b8;
  --gray-300: #cbd5e1;
  --gray-200: #e2e8f0;
  --gray-100: #f1f5f9;
  --gray-50: #f8fafc;
  --white: #ffffff;

  --date-red: #e63946;
  --date-gold: #d97706;
  --success: #10b981;
  
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 25px rgba(61, 44, 111, 0.12), 0 4px 10px rgba(0,0,0,0.04);
  --shadow-xl: 0 20px 35px rgba(61, 44, 111, 0.18), 0 8px 16px rgba(0,0,0,0.06);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
  --transition-smooth: 0.35s cubic-bezier(0.4, 0, 0.2, 1);

  --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.academy-catalog *,
.academy-catalog *::before,
.academy-catalog *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.academy-catalog {
  font-family: var(--font-body);
  color: var(--gray-800);
  background-color: #f8fafc;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.academy-catalog a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.academy-catalog button,
.academy-catalog input,
.academy-catalog select,
.academy-catalog textarea {
  font-family: inherit;
  font-size: inherit;
}

.academy-catalog button {
  cursor: pointer;
  border: none;
  background: none;
  transition: all var(--transition-fast);
}

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

.academy-container {
  width: 100%;
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Typography Utility */
.academy-catalog h1,
.academy-catalog h2,
.academy-catalog h3,
.academy-catalog h4,
.academy-catalog h5,
.academy-catalog h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--gray-900);
  line-height: 1.25;
}

/* Badges & Pills */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-full);
}

.badge-primary {
  background: var(--primary-light);
  color: var(--primary);
}

.badge-accent {
  background: var(--accent-light);
  color: var(--accent);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 15px rgba(243, 16, 229, 0.4); }
  50% { box-shadow: 0 0 25px rgba(243, 16, 229, 0.7); }
}

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

/* Breadcrumbs */
.breadcrumb-wrapper {
  background: #ffffff;
  border-bottom: 1px solid var(--gray-200);
  padding: 0.75rem 0;
  font-size: 0.85rem;
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 0.5rem;
  color: var(--gray-500);
}

.breadcrumb-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.breadcrumb-list a:hover {
  color: var(--primary);
}

.breadcrumb-list .separator {
  font-size: 0.75rem;
  color: var(--gray-400);
}

.breadcrumb-list .current {
  color: var(--gray-800);
  font-weight: 600;
}

/* Page Layout */
.main-layout {
  padding: 2rem 0 4rem;
}

.layout-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 1024px) {
  .layout-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Toast System */
.toast-container {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  background: #ffffff;
  color: var(--gray-800);
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-left: 4px solid var(--primary);
  animation: fadeIn 0.3s ease;
  min-width: 280px;
}

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

.toast.toast-accent {
  border-left-color: var(--accent);
}
