/* ==========================================================================
   MINIMALIST ACADEMIC PORTAL — DR. RAGINI GUPTA, ITM GORAKHPUR
   Fast, Lightweight, Responsive
   ========================================================================== */

:root {
  /* Clean Light Theme (Default) */
  --bg-body: #fafafa;
  --bg-surface: #ffffff;
  --bg-subtle: #f3f4f6;
  --bg-hover: #f9fafb;

  --border-color: #e5e7eb;
  --border-strong: #d1d5db;

  --text-main: #111827;
  --text-muted: #6b7280;
  --text-faint: #9ca3af;

  --accent: #1e3a8a;
  --accent-light: #eff6ff;
  --accent-text: #1d4ed8;

  --success: #15803d;
  --success-bg: #f0fdf4;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Newsreader', Georgia, serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius: 6px;
  --radius-lg: 10px;
}

[data-theme="dark"] {
  --bg-body: #0d1117;
  --bg-surface: #161b22;
  --bg-subtle: #21262d;
  --bg-hover: #1f242c;

  --border-color: #30363d;
  --border-strong: #484f58;

  --text-main: #f0f6fc;
  --text-muted: #8b949e;
  --text-faint: #6e7681;

  --accent: #58a6ff;
  --accent-light: rgba(56, 139, 253, 0.1);
  --accent-text: #58a6ff;

  --success: #3fb950;
  --success-bg: rgba(46, 160, 67, 0.12);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.site-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  padding: 28px 0 20px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 36px;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.header-top-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--text-main);
  text-decoration: none;
  display: block;
  line-height: 1.2;
}

.brand-desc {
  font-size: 0.813rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.84rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--radius);
  background: transparent;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.nav a:hover {
  color: var(--text-main);
  background: var(--bg-subtle);
}

/* Theme Toggle Button */
.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-size: 0.813rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 20px;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: all 0.15s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.theme-toggle-btn:hover {
  background: var(--bg-hover);
  border-color: var(--border-strong);
}

.theme-icon {
  font-size: 0.9rem;
  line-height: 1;
}

.theme-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-main);
}

/* Hero Section */
.hero-section {
  margin-bottom: 48px;
}

.hero-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  margin-bottom: 16px;
}

.hero-card .term-badge {
  color: var(--accent-text);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.hero-card .page-headline {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--text-main);
  margin-bottom: 10px;
}

.hero-card .intro-text {
  font-size: 0.938rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 520px;
  margin-bottom: 20px;
}

.hero-card .quick-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 9px 18px;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  border: none;
  background: var(--text-main);
  color: var(--bg-body);
  transition: opacity 0.15s ease;
}

.btn-hero:hover { opacity: 0.9; }

.btn-hero-outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 9px 18px;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  background: var(--bg-surface);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  transition: all 0.15s ease;
}

.btn-hero-outline:hover {
  background: var(--bg-hover);
  border-color: var(--border-strong);
}

/* Notice Box */
.notice-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  padding: 12px 16px;
  border-radius: var(--radius-lg);
  display: flex;
  gap: 12px;
  align-items: baseline;
  font-size: 0.875rem;
}

.notice-dot {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 5px;
}

.notice-box p {
  color: var(--text-main);
  line-height: 1.5;
}

/* Main Sections */
.section {
  padding: 36px 0;
  border-top: 1px solid var(--border-color);
}

.section-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.section-subtitle {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Accordion Grid / Cards (Syllabus, Notes, Assignments) */
.syllabus-grid,
.notes-list,
.assignment-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.syllabus-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.15s ease;
}

.syllabus-card:hover {
  border-color: var(--border-strong);
}

.syllabus-card--pending {
  opacity: 0.85;
}

.syllabus-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  cursor: pointer;
  user-select: none;
  gap: 12px;
}

.syllabus-card-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.syllabus-icon {
  font-size: 1.4rem;
  line-height: 1;
  flex-shrink: 0;
}

.syllabus-branch {
  font-size: 0.938rem;
  font-weight: 600;
  line-height: 1.3;
}

.syllabus-code {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-muted);
}

.syllabus-card-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.syllabus-status {
  font-size: 0.688rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.syllabus-status--available {
  background: var(--success-bg);
  color: var(--success);
}

.syllabus-status--pending {
  background: var(--bg-subtle);
  color: var(--text-faint);
}

.syllabus-chevron {
  color: var(--text-muted);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.syllabus-card--open .syllabus-chevron {
  transform: rotate(180deg);
}

/* Accordion body */
.syllabus-card-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease, padding 0.25s ease;
  padding: 0 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.syllabus-card--open .syllabus-card-body {
  max-height: 400px;
  padding: 4px 18px 16px;
}

.syllabus-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--accent-text);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: var(--radius);
  background: var(--accent-light);
  transition: background 0.15s ease, opacity 0.15s ease;
}

.syllabus-link:hover {
  opacity: 0.85;
}

.syllabus-link--disabled {
  background: var(--bg-subtle);
  color: var(--text-faint);
  cursor: default;
  font-size: 0.813rem;
}

.syllabus-link--disabled:hover {
  opacity: 1;
}

.syllabus-link .drive-icon {
  flex-shrink: 0;
}

.syllabus-link .ext-icon {
  margin-left: auto;
  opacity: 0.5;
}

/* Contact Grid */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
}

.info-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.info-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.card-desc {
  font-size: 0.813rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.schedule-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.875rem;
}

.schedule-list li {
  display: flex;
  flex-direction: column;
}

.schedule-list strong {
  font-size: 0.813rem;
  color: var(--text-main);
}

.schedule-list span {
  font-size: 0.813rem;
  color: var(--text-muted);
}

.email-row {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
  font-size: 0.813rem;
  color: var(--text-muted);
  display: flex;
  gap: 6px;
}

.email-link {
  color: var(--accent-text);
  text-decoration: none;
  font-weight: 500;
}

.dept-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.813rem;
}

.detail-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.detail-label {
  font-weight: 600;
  color: var(--text-main);
}

.detail-value {
  color: var(--text-muted);
  line-height: 1.5;
}

/* Footer */
.site-footer {
  margin-top: 60px;
  padding: 32px 0;
  border-top: 1px solid var(--border-color);
  font-size: 0.813rem;
  color: var(--text-faint);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

/* Responsive */
@media (max-width: 768px) {
  .site-wrap {
    padding: 0 16px;
  }

  .site-header {
    padding: 18px 0 14px;
    margin-bottom: 22px;
  }

  .header-content {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .header-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  .nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    width: 100%;
  }

  .nav a {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    font-size: 0.813rem;
    border-radius: var(--radius);
    color: var(--text-main);
  }

  .nav a:hover,
  .nav a:active {
    background: var(--bg-hover);
    border-color: var(--border-strong);
  }

  .theme-toggle-btn {
    font-size: 0.78rem;
    padding: 5px 10px;
  }

  .hero-card {
    padding: 24px 18px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}
