/* ==========================================================================
   CollegeSikta — Figma Design System & Universal UI Component Library
   Source of Truth: https://www.figma.com/design/eCYN3lacMLbpDDbEFyoaDh
   ========================================================================== */

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

:root {
  /* --- Primary Brand Colors --- */
  --cs-primary: #2563eb;          /* Electric Royal Blue */
  --cs-primary-hover: #1d4ed8;    /* Dark Navy Blue */
  --cs-primary-soft: #eff6ff;     /* Soft Blue Tint */
  --cs-primary-border: #bfdbfe;   /* Soft Blue Border */
  --cs-primary-glow: rgba(37, 99, 235, 0.25);

  /* --- Canvas, Surfaces & Cards --- */
  --cs-bg-page: #f8fafc;          /* Crisp clean canvas background */
  --cs-card-bg: #ffffff;          /* Pure Card White */
  --cs-card-bg-elevated: #ffffff;
  --cs-border: #e2e8f0;           /* Subtle Border */
  --cs-border-secondary: #cbd5e1; /* Secondary input border */
  --cs-border-hover: #94a3b8;

  /* --- Dark Contrast Surfaces --- */
  --cs-dark-surface: #0f172a;     /* Deep slate surface for hero & dark cards */
  --cs-dark-card: #1e293b;        /* Elevated dark card */
  --cs-dark-cta: #111c33;         /* Deep navy CTA card */

  /* --- Typography Colors --- */
  --cs-text-main: #0f172a;        /* High-contrast dark typography */
  --cs-text-muted: #475569;       /* Slate body text */
  --cs-text-light: #94a3b8;       /* Subtle caption text */
  --cs-text-white: #ffffff;

  /* --- Accents --- */
  --cs-cyan: #06b6d4;             /* Cyan CTA accent */
  --cs-cyan-hover: #0891b2;
  --cs-purple: #a855f7;           /* Purple highlight */
  --cs-purple-soft: #faf5ff;
  --cs-purple-border: #e9d5ff;

  /* --- Prediction Probability Badges --- */
  --cs-safe: #10b981;             /* Safe (High Likelihood) */
  --cs-safe-bg: #ecfdf5;
  --cs-safe-border: #a7f3d0;
  --cs-safe-text: #047857;

  --cs-moderate: #0284c7;         /* Moderate Likelihood */
  --cs-moderate-bg: #eff6ff;
  --cs-moderate-border: #bfdbfe;
  --cs-moderate-text: #0369a1;

  --cs-competitive: #f59e0b;      /* Competitive */
  --cs-competitive-bg: #fffbeb;
  --cs-competitive-border: #fde68a;
  --cs-competitive-text: #b45309;

  --cs-reach: #ef4444;            /* Reach (Difficult) */
  --cs-reach-bg: #fef2f2;
  --cs-reach-border: #fecaca;
  --cs-reach-text: #b91c1c;

  /* --- Typography Stacks --- */
  --cs-font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --cs-font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* --- Radii --- */
  --cs-radius-sm: 8px;
  --cs-radius-md: 12px;
  --cs-radius-lg: 16px;
  --cs-radius-xl: 20px;
  --cs-radius-2xl: 24px;
  --cs-radius-pill: 9999px;

  /* --- Elevation Shadows --- */
  --cs-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --cs-shadow-md: 0 4px 14px rgba(15, 23, 42, 0.06);
  --cs-shadow-lg: 0 10px 30px -10px rgba(15, 23, 42, 0.08);
  --cs-shadow-card: 0 2px 10px rgba(15, 23, 42, 0.04);
  --cs-shadow-glow: 0 0 24px var(--cs-primary-glow);
}

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

html {
  font-size: 16px;
  background-color: var(--cs-bg-page, #f8fafc);
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--cs-font-body);
  background-color: var(--cs-bg-page, #f8fafc);
  color: var(--cs-text-main);
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--cs-font-heading);
  color: var(--cs-text-main);
  line-height: 1.25;
}

/* ==========================================================================
   Universal Component Classes
   ========================================================================== */

/* Buttons */
.cs-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--cs-primary);
  color: #ffffff !important;
  font-family: var(--cs-font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--cs-radius-md);
  border: none;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 14px var(--cs-primary-glow);
  transition: all 0.2s ease;
}

.cs-btn-primary:hover {
  background: var(--cs-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35);
}

.cs-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #ffffff;
  color: var(--cs-text-main) !important;
  font-family: var(--cs-font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--cs-radius-md);
  border: 1px solid var(--cs-border-secondary);
  cursor: pointer;
  text-decoration: none;
  box-shadow: var(--cs-shadow-sm);
  transition: all 0.2s ease;
}

.cs-btn-secondary:hover {
  background: var(--cs-bg-page);
  border-color: var(--cs-border-hover);
  transform: translateY(-1px);
}

.cs-btn-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--cs-dark-surface);
  color: #ffffff !important;
  font-family: var(--cs-font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.5rem;
  border-radius: var(--cs-radius-md);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

.cs-btn-dark:hover {
  background: #020617;
  transform: translateY(-1px);
}

.cs-btn-teal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--cs-cyan);
  color: var(--cs-dark-surface) !important;
  font-family: var(--cs-font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--cs-radius-md);
  border: none;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(6, 182, 212, 0.3);
  transition: all 0.2s ease;
}

.cs-btn-teal:hover {
  background: var(--cs-cyan-hover);
  color: #ffffff !important;
  transform: translateY(-1px);
}

/* Badges & Pills */
.cs-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--cs-radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cs-badge-blue {
  background: var(--cs-primary-soft);
  border: 1px solid var(--cs-primary-border);
  color: var(--cs-primary);
}

.cs-badge-safe {
  background: var(--cs-safe-bg);
  border: 1px solid var(--cs-safe-border);
  color: var(--cs-safe-text);
}

.cs-badge-moderate {
  background: var(--cs-moderate-bg);
  border: 1px solid var(--cs-moderate-border);
  color: var(--cs-moderate-text);
}

.cs-badge-competitive {
  background: var(--cs-competitive-bg);
  border: 1px solid var(--cs-competitive-border);
  color: var(--cs-competitive-text);
}

.cs-badge-reach {
  background: var(--cs-reach-bg);
  border: 1px solid var(--cs-reach-border);
  color: var(--cs-reach-text);
}

/* Cards */
.cs-card {
  background: var(--cs-card-bg);
  border: 1px solid var(--cs-border);
  border-radius: var(--cs-radius-xl);
  padding: 1.75rem;
  box-shadow: var(--cs-shadow-card);
  transition: all 0.2s ease;
}

.cs-card:hover {
  border-color: var(--cs-border-secondary);
  box-shadow: var(--cs-shadow-md);
}

/* Forms & Inputs */
.cs-input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 1.15rem;
}

.cs-label {
  font-size: 0.84rem;
  font-weight: 600;
  color: #334155;
}

.cs-input,
.cs-select {
  width: 100%;
  padding: 0.75rem 1rem;
  background: #ffffff;
  border: 1px solid var(--cs-border-secondary);
  border-radius: var(--cs-radius-md);
  font-family: var(--cs-font-body);
  font-size: 0.95rem;
  color: var(--cs-text-main);
  transition: all 0.15s ease;
}

.cs-select {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 14px;
  padding-right: 2.25rem;
}

.cs-input:focus,
.cs-select:focus {
  outline: none;
  border-color: var(--cs-primary);
  box-shadow: 0 0 0 3px var(--cs-primary-glow);
}

/* ==========================================================================
   Logged-In Student Mobile Bottom Navigation (5 Tabs)
   1. Home  2. Predict  3. Colleges  4. Tests  5. Profile
   ========================================================================== */
.cs-student-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 65px;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--cs-border);
  z-index: 950;
  justify-content: space-around;
  align-items: center;
  padding: 0 0.5rem;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.05);
}

.cs-student-tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--cs-text-light);
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: var(--cs-radius-sm);
  transition: all 0.15s ease;
}

.cs-student-tab-item svg {
  width: 20px;
  height: 20px;
}

.cs-student-tab-item.active,
.cs-student-tab-item:hover {
  color: var(--cs-primary);
}

/* Light Figma bottom bar support */
.landing-body .cs-student-bottom-nav,
.dark-surface .cs-student-bottom-nav {
  background: rgba(255, 255, 255, 0.98);
  border-top: 1px solid var(--cs-border, #e2e8f0);
  box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.06);
}

.landing-body .cs-student-tab-item,
.dark-surface .cs-student-tab-item {
  color: #64748b;
}

.landing-body .cs-student-tab-item.active,
.landing-body .cs-student-tab-item:hover,
.dark-surface .cs-student-tab-item.active,
.dark-surface .cs-student-tab-item:hover {
  color: var(--cs-primary, #2563eb);
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 767px) {
  body.has-bottom-nav {
    padding-bottom: 75px !important;
  }
  .cs-student-bottom-nav {
    display: flex;
  }
}

/* Prevent keyframe animation opacity-0 artifact on static headers */
.settings-header,
.sub-header-section,
.article-hero-section,
.dashboard-topbar-wrapper,
header.settings-header,
header.article-hero-section,
.sub-title,
.settings-title {
  animation: none !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* ==========================================================================
   Figma 4-Column SaaS Footer (Unified Across All Pages)
   ========================================================================== */
.cs-footer {
  background: #ffffff !important;
  border-top: 1px solid #e2e8f0 !important;
  padding: 4.5rem 0 2rem 0 !important;
  margin-top: 4rem;
  color: #475569 !important;
  position: relative;
  z-index: 10;
}

.cs-footer::before {
  display: none !important;
}

.cs-footer-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.cs-footer-top-grid {
  display: grid !important;
  grid-template-columns: 1.4fr 1fr 1fr 1fr !important;
  gap: 3rem !important;
  margin-bottom: 3.5rem !important;
}

.cs-footer-brand-col {
  max-width: 320px;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
}

.cs-footer .cs-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}

.cs-footer .cs-logo-icon {
  width: 32px;
  height: 32px;
  background: #2563eb;
  color: #ffffff;
  font-weight: 800;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.cs-footer .cs-logo-text {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
}

.cs-footer-tagline {
  font-size: 0.9rem !important;
  color: #64748b !important;
  line-height: 1.6 !important;
  margin: 0.85rem 0 1.25rem 0 !important;
}

.cs-footer-socials {
  display: flex !important;
  align-items: center !important;
  gap: 0.75rem !important;
}

.cs-social-link {
  width: 38px !important;
  height: 38px !important;
  border-radius: 8px !important;
  background: #f1f5f9 !important;
  border: 1px solid #e2e8f0 !important;
  color: #475569 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
}

.cs-social-link:hover {
  background: #eff6ff !important;
  border-color: #2563eb !important;
  color: #2563eb !important;
  transform: translateY(-2px);
}

.cs-footer-heading {
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  margin-bottom: 1.25rem !important;
}

.cs-footer-links {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0.75rem !important;
}

.cs-footer-links li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.cs-footer-links a {
  font-size: 0.9rem !important;
  color: #64748b !important;
  text-decoration: none !important;
  font-weight: 500 !important;
  transition: all 0.2s ease !important;
}

.cs-footer-links a:hover {
  color: #2563eb !important;
  transform: translateX(2px);
}

.cs-footer-bottom {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding-top: 2rem !important;
  border-top: 1px solid #e2e8f0 !important;
  font-size: 0.85rem !important;
  color: #64748b !important;
  flex-wrap: wrap !important;
  gap: 1rem !important;
}

@media (max-width: 900px) {
  .cs-footer-top-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 2rem !important;
  }
}

@media (max-width: 600px) {
  .cs-footer-top-grid {
    grid-template-columns: 1fr !important;
  }
  .cs-footer-bottom {
    flex-direction: column !important;
    align-items: flex-start !important;
    text-align: left !important;
  }
}

