/* CampusOne Support Portal — Professional Purple Theme */

:root {
  --purple-50: #faf5ff;
  --purple-100: #f3e8ff;
  --purple-200: #e9d5ff;
  --purple-300: #d8b4fe;
  --purple-400: #c084fc;
  --purple-500: #a855f7;
  --purple-600: #9333ea;
  --purple-700: #7c3aed;
  --purple-800: #6d28d9;
  --purple-900: #4c1d95;
  --purple-950: #2e1065;

  --primary: #7c3aed;
  --primary-light: #a78bfa;
  --primary-dark: #6d28d9;
  --primary-glow: rgba(124, 58, 237, 0.15);

  --bg: #ffffff;
  --bg-alt: #faf8ff;
  --bg-elevated: #ffffff;
  --surface: #f8f5ff;

  --text: #1a1035;
  --text-secondary: #5b5675;
  --text-muted: #8e89a0;
  --text-on-primary: #ffffff;

  --border: #e8e3f3;
  --border-light: rgba(124, 58, 237, 0.08);
  --border-hover: rgba(124, 58, 237, 0.25);

  --shadow-sm: 0 1px 3px rgba(76, 29, 149, 0.04), 0 1px 2px rgba(76, 29, 149, 0.03);
  --shadow-md: 0 4px 16px rgba(76, 29, 149, 0.06), 0 2px 6px rgba(76, 29, 149, 0.04);
  --shadow-lg: 0 12px 40px rgba(76, 29, 149, 0.08), 0 4px 12px rgba(76, 29, 149, 0.04);
  --shadow-glow: 0 0 0 3px rgba(124, 58, 237, 0.12);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;

  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c0a14;
    --bg-alt: #110e1c;
    --bg-elevated: #16132a;
    --surface: #1a1630;

    --text: #f0ecfa;
    --text-secondary: #a09bb5;
    --text-muted: #6e6988;
    --text-on-primary: #ffffff;

    --border: #231f3a;
    --border-light: rgba(124, 58, 237, 0.12);
    --border-hover: rgba(167, 139, 250, 0.3);

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 0 3px rgba(124, 58, 237, 0.2);

    --primary-glow: rgba(124, 58, 237, 0.2);
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover { color: var(--primary-dark); }

::selection {
  background: var(--purple-200);
  color: var(--purple-900);
}

@media (prefers-color-scheme: dark) {
  ::selection {
    background: var(--purple-800);
    color: var(--purple-100);
  }
}

/* ---- Animations ---- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.animate-fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Navbar ---- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid var(--border);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
}

@media (prefers-color-scheme: dark) {
  .navbar {
    background: rgba(12, 10, 20, 0.85);
  }
}

.navbar-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.navbar-brand img {
  height: 34px;
  width: 34px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.navbar-brand span {
  background: linear-gradient(135deg, var(--purple-600), var(--purple-400));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-links a {
  display: block;
  padding: 0.5rem 0.875rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.nav-links a:hover {
  color: var(--primary);
  background: var(--primary-glow);
}

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 0.4rem;
  color: var(--text);
  transition: all var(--transition);
}

.menu-toggle:hover {
  border-color: var(--border-hover);
  background: var(--primary-glow);
}

.menu-toggle svg {
  width: 22px;
  height: 22px;
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 0.75rem;
    gap: 0.25rem;
    box-shadow: var(--shadow-lg);
  }

  .nav-links.open { display: flex; }

  .nav-links a {
    width: 100%;
    padding: 0.75rem 1rem;
  }

  .menu-toggle { display: block; }
}

/* ---- Hero Section ---- */
.hero {
  position: relative;
  text-align: center;
  padding: 5rem 1.5rem 4.5rem;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 40%, rgba(124, 58, 237, 0.08) 0%, transparent 70%),
    radial-gradient(ellipse 50% 60% at 80% 30%, rgba(168, 85, 247, 0.06) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 50% 80%, rgba(109, 40, 217, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

@media (prefers-color-scheme: dark) {
  .hero::before {
    background:
      radial-gradient(ellipse 60% 50% at 20% 40%, rgba(124, 58, 237, 0.15) 0%, transparent 70%),
      radial-gradient(ellipse 50% 60% at 80% 30%, rgba(168, 85, 247, 0.1) 0%, transparent 70%),
      radial-gradient(ellipse 40% 40% at 50% 80%, rgba(109, 40, 217, 0.08) 0%, transparent 70%);
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 1rem 0.375rem 0.5rem;
  background: var(--primary-glow);
  border: 1px solid var(--border-hover);
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 1.5rem;
  animation: fadeUp 0.6s ease both;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--purple-500);
  box-shadow: 0 0 8px rgba(168, 85, 247, 0.5);
  animation: float 2s ease-in-out infinite;
}

.hero h1 {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  color: var(--text);
  position: relative;
  animation: fadeUp 0.6s ease 0.1s both;
}

.hero h1 span {
  background: linear-gradient(135deg, var(--purple-600), var(--purple-400));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.7;
  position: relative;
  animation: fadeUp 0.6s ease 0.2s both;
}

/* ---- Action Cards ---- */
.action-grid {
  max-width: 680px;
  margin: -2rem auto 0;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.875rem;
  position: relative;
  z-index: 10;
  animation: fadeUp 0.6s ease 0.3s both;
}

.action-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.5rem 0.75rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--text);
  transition: all var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.action-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  opacity: 0;
  transition: opacity var(--transition);
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.04), rgba(168, 85, 247, 0.02));
}

.action-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-hover);
  color: var(--text);
}

.action-card:hover::after { opacity: 1; }

.action-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition);
  position: relative;
  z-index: 1;
}

.action-card:hover .action-card-icon {
  transform: scale(1.08);
}

.action-card-icon.email {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.12), rgba(124, 58, 237, 0.06));
}
.action-card-icon.faq {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(59, 130, 246, 0.06));
}
.action-card-icon.privacy {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.12), rgba(249, 115, 22, 0.06));
}
.action-card-icon.terms {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.12), rgba(239, 68, 68, 0.06));
}

.action-card-title {
  font-size: 0.8125rem;
  font-weight: 600;
  text-align: center;
  position: relative;
  z-index: 1;
}

@media (max-width: 480px) {
  .action-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---- Sections ---- */
.section {
  max-width: 820px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.section-title {
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border), transparent);
}

/* ---- FAQ Accordion ---- */
.faq-item {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 0.5rem;
  overflow: hidden;
  transition: all var(--transition);
}

.faq-item:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-sm);
}

.faq-item.open {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md), var(--shadow-glow);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1.125rem 1.25rem;
  background: none;
  border: none;
  color: var(--text);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  gap: 1rem;
  transition: color var(--transition);
}

.faq-question:hover {
  color: var(--primary);
}

.faq-chevron {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--text-muted);
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.open .faq-answer {
  max-height: 300px;
}

.faq-answer-inner {
  padding: 0 1.25rem 1.125rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.75;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

.faq-answer-inner a {
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: rgba(124, 58, 237, 0.3);
  text-underline-offset: 2px;
}

.faq-answer-inner a:hover {
  text-decoration-color: var(--primary);
}

/* ---- Contact Section ---- */
.contact-section {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  max-width: 100%;
  padding: 4rem 2rem;
}

.contact-section .section-title {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.contact-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 80% at 50% 0%, rgba(124, 58, 237, 0.03), transparent);
  pointer-events: none;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
  }
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  padding: 2.5rem 2rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  transition: all var(--transition);
}

.contact-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.contact-card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(124, 58, 237, 0.05));
  margin-bottom: 0.25rem;
}

.contact-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.contact-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.contact-card p a {
  font-weight: 500;
}

/* ---- Footer ---- */
.footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary-light), transparent);
}

.footer-college {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 2.5rem 1.5rem 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.footer-college-logo {
  height: 48px;
  width: auto;
}

.footer-college-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}

.footer-college-phone {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

.footer-college-phone a {
  color: var(--text);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-college-phone a:hover {
  color: var(--primary);
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.25rem;
  padding: 1.25rem 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.footer-links p {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.footer-links a {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-links-sep {
  color: var(--text-muted);
  margin: 0 0.375rem;
  font-size: 0.8125rem;
}

.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.footer-bottom strong {
  color: var(--primary);
  font-weight: 600;
}

.footer-affiliation {
  font-size: 0.8125rem;
  color: var(--primary);
  font-weight: 500;
  padding-bottom: 0.5rem;
}

.footer-bottom--no-border {
  border-top: none;
}

@media (max-width: 480px) {
  .footer-college {
    flex-direction: column;
    gap: 0.75rem;
  }

  .footer-college-divider {
    width: 40px;
    height: 1px;
  }

  .footer-links {
    flex-direction: column;
    gap: 0.375rem;
  }

  .footer-links-sep { display: none; }
}

/* ---- Legal Pages ---- */
.legal-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 2rem;
  padding: 0.375rem 0.75rem 0.375rem 0.5rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.back-link:hover {
  background: var(--primary-glow);
  color: var(--primary-dark);
}

.back-link svg {
  width: 16px;
  height: 16px;
}

.legal-page h1 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.legal-meta {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.legal-page h2 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-top: 2.25rem;
  margin-bottom: 0.75rem;
  color: var(--text);
  padding-left: 0.875rem;
  border-left: 3px solid var(--purple-500);
}

.legal-page h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.legal-page p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.8;
}

.legal-page ul, .legal-page ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.legal-page li {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

.legal-page li::marker {
  color: var(--primary-light);
}

.legal-page strong {
  color: var(--text);
  font-weight: 600;
}

.legal-page a {
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: rgba(124, 58, 237, 0.3);
  text-underline-offset: 2px;
}

.legal-page a:hover {
  text-decoration-color: var(--primary);
}

/* ---- 404 Page ---- */
.not-found {
  text-align: center;
  padding: 7rem 1.5rem;
  position: relative;
}

.not-found::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.06), transparent 70%);
  pointer-events: none;
}

.not-found h1 {
  font-size: 7rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--purple-600), var(--purple-400));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
  position: relative;
}

.not-found h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.not-found p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-size: 1rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, var(--purple-600), var(--purple-700));
  color: var(--text-on-primary);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition);
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.25);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--purple-700), var(--purple-800));
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.35);
  color: var(--text-on-primary);
}

/* ---- Responsive ---- */
@media (max-width: 480px) {
  .hero { padding: 4rem 1.25rem 3.5rem; }

  .hero h1 {
    font-size: 1.875rem;
    letter-spacing: -0.02em;
  }

  .hero p { font-size: 1rem; }

  .action-card { padding: 1.25rem 0.75rem; }

  .legal-page h1 { font-size: 1.5rem; }

  .not-found h1 { font-size: 5rem; }

  .section { padding: 3rem 1.25rem; }
}
