:root {
  /* Color Palette - Elegant, Academic, Trustworthy */
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #dbeafe;
  --accent: #f59e0b;
  --success: #10b981;
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  
  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 48px;
  --space-2xl: 64px;
  
  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
}

* {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.5;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Layout Containers */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

main {
  width: 100%;
  padding-top: 80px; /* Space for fixed navbar */
}

.layout-grid {
  display: grid;
  grid-template-columns: 280px 1fr 320px;
  gap: var(--space-lg);
  margin-top: var(--space-lg);
  align-items: start;
}

@media (max-width: 1100px) {
  .layout-grid {
    grid-template-columns: 240px 1fr;
  }
  .sidebar-right {
    display: none;
  }
}

@media (max-width: 768px) {
  .layout-grid {
    grid-template-columns: 1fr;
  }
  .sidebar-left {
    display: none;
  }
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 70px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
}

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

.nav-brand {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.nav-links {
  display: flex;
  gap: var(--space-lg);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  padding: var(--space-sm) 0;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

.nav-link.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.nav-link:hover {
  color: var(--primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

/* Components */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow: hidden;
  margin-bottom: var(--space-lg);
}

.card-header {
  padding: var(--space-md);
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.card-body {
  padding: var(--space-md);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  border: none;
  font-size: 0.9rem;
  gap: var(--space-sm);
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
}

.btn-ghost:hover {
  background: var(--bg-main);
  color: var(--primary);
}

/* Feed & Posts */
.create-post {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.post-input-wrapper {
  display: flex;
  gap: var(--space-md);
}

.post-input {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-full);
  background: var(--bg-main);
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  text-align: left;
}

.post-actions {
  display: flex;
  gap: var(--space-md);
  border-top: 1px solid var(--border);
  padding-top: var(--space-md);
}

.post-action {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
}

.post-action:hover {
  color: var(--primary);
}

/* Sidebar Nav */
.sidebar-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-menu-item {
  margin-bottom: var(--space-xs);
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  text-decoration: none;
  color: var(--text-main);
  border-radius: var(--radius-sm);
  transition: background 0.2s;
  font-size: 0.9rem;
}

.sidebar-link:hover {
  background: var(--primary-light);
  color: var(--primary-dark);
}

.sidebar-link.active {
  background: var(--primary-light);
  color: var(--primary-dark);
  font-weight: 600;
}

.sidebar-section-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin: var(--space-lg) var(--space-md) var(--space-sm);
  font-weight: 700;
}

/* Placeholders */
.placeholder-image {
  width: 100%;
  aspect-ratio: 16/9;
  background: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 0.8rem;
  position: relative;
}

.placeholder-image::after {
  content: attr(data-label);
}

.placeholder-image.square { aspect-ratio: 1/1; }
.placeholder-image.portrait { aspect-ratio: 3/4; }

.placeholder-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: #cbd5e1;
  flex-shrink: 0;
}

.placeholder-avatar.lg {
  width: 80px;
  height: 80px;
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
}

.badge-primary { background: var(--primary-light); color: var(--primary); }
.badge-accent { background: #fef3c7; color: #92400e; }

/* Utilities */
.text-sm { font-size: 0.875rem; }
.text-muted { color: var(--text-muted); }
.mt-sm { margin-top: var(--space-sm); }
.mb-lg { margin-bottom: var(--space-lg); }
.flex { display: flex; }
.items-center { align-items: center; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.w-full { width: 100%; }

/* Specific components for My Uni */
.uni-banner {
  height: 120px;
  background: linear-gradient(135deg, var(--primary) 0%, #1e40af 100%);
  position: relative;
}

.uni-profile-info {
  margin-top: -40px;
  padding: 0 var(--space-md) var(--space-md);
  text-align: center;
}

.list-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--border);
}

.list-item:last-child { border-bottom: none; }

.event-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: var(--primary-light);
  border-radius: var(--radius-sm);
  color: var(--primary);
  font-weight: 700;
  line-height: 1.2;
}

.event-date span { font-size: 0.7rem; text-transform: uppercase; }

/* Form Styles */
.form-group {
  margin-bottom: var(--space-md);
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.form-select, .form-input {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: white;
  font-size: 0.95rem;
}

.step-indicator {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--space-xl);
  position: relative;
}

.step-indicator::before {
  content: '';
  position: absolute;
  top: 15px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--border);
  z-index: 1;
}

.step {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  z-index: 2;
  position: relative;
  font-size: 0.8rem;
}

.step.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.step.completed {
  background: var(--success);
  border-color: var(--success);
  color: white;
}
