/* modern_style.css - Comprehensive Design System & Job Platform Styles */

:root {
  /* SCHOOL BRAND & JOB PLATFORM COLOR PALETTE */
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #60a5fa;
  --navy: #0f172a;
  --surface: #ffffff;
  --bg-main: #f8fafc;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --success: #16a34a;
  --warning: #f59e0b;
  --danger: #dc2626;
  --info: #0284c7;
  --purple: #8b5cf6;
  --indigo: #6366f1;

  /* STATUS PILL GRADIENTS & COLORS */
  --status-submitted: #2563eb;
  --status-review: #f59e0b;
  --status-shortlisted: #8b5cf6;
  --status-interview: #6366f1;
  --status-accepted: #16a34a;
  --status-rejected: #dc2626;

  /* ELEVATION & SHADOWS */
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 10px 30px rgba(15, 23, 42, 0.12);

  /* BORDER RADIUS */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
}

/* TOPBAR */
.topbar {
  background: var(--navy);
  color: #f1f5f9;
  padding: 8px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.top-info {
  display: flex;
  gap: 20px;
}
.top-info-item {
  display: flex;
  align-items: center;
  gap: 6px;
}
.alert-wrapper {
  max-width: 400px;
  overflow: hidden;
}
.alert-content {
  display: flex;
  align-items: center;
  gap: 8px;
}
.alert-badge {
  background: rgba(37, 99, 235, 0.3);
  color: #93c5fd;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

/* SITE HEADER & NAVBAR */
.site-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 12px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}
.logo-card {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo-card img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}
.logo-text h1 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--navy);
  margin: 0;
}
.logo-text h3 {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 0;
  font-weight: 500;
}

#navbar {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-link {
  color: var(--navy);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all 0.2s ease;
}
.nav-link:hover, .nav-link.active {
  background: rgba(37, 99, 235, 0.08);
  color: var(--primary);
}
.hamburger {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* HERO SECTION */
.job-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #1e293b 100%);
  color: white;
  padding: 60px 24px;
  text-align: center;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  margin-bottom: 40px;
}
.job-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 12px;
}
.job-hero p {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 650px;
  margin: 0 auto;
}

/* SEARCH & FILTER TOOLBAR */
.job-search-card {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  margin-top: -60px;
  margin-bottom: 40px;
}

/* JOB CARD ITEM */
.job-card-item {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.job-card-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

/* BADGES & PILLS */
.job-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}
.job-badge.full-time { background: #dbeafe; color: #1e40af; }
.job-badge.part-time { background: #fef3c7; color: #92400e; }
.job-badge.contract { background: #f3e8ff; color: #6b21a8; }
.job-badge.remote { background: #dcfce7; color: #166534; }
.job-badge.on-site { background: #e0f2fe; color: #075985; }

/* STATUS PILLS */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
}
.status-submitted { background: rgba(37, 99, 235, 0.12); color: var(--status-submitted); }
.status-under-review { background: rgba(245, 158, 11, 0.15); color: #b45309; }
.status-shortlisted { background: rgba(139, 92, 246, 0.15); color: var(--status-shortlisted); }
.status-interview { background: rgba(99, 102, 241, 0.15); color: var(--status-interview); }
.status-accepted { background: rgba(22, 163, 74, 0.15); color: var(--status-accepted); }
.status-rejected { background: rgba(220, 38, 38, 0.15); color: var(--status-rejected); }

/* FILE UPLOAD DROP AREA */
.file-upload-box {
  border: 2px dashed var(--primary-light);
  background: #f0f9ff;
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}
.file-upload-box:hover {
  background: #e0f2fe;
  border-color: var(--primary);
}

/* METRIC CARD PRIMITIVES */
.metric-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 20px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 16px;
  transition: transform 0.2s ease;
}
.metric-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.metric-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

/* JOB ANNOUNCEMENT IMAGE STYLES */
.job-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  background-color: #f1f5f9;
}
.job-detail-banner {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: var(--radius-xl);
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}
.announcement-thumb {
  width: 120px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

/* FOOTER */
.site-footer {
  background: var(--navy);
  color: white;
  padding: 50px 24px 20px;
  margin-top: 60px;
}
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px;
}
.footer-section h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-light);
  margin-bottom: 20px;
}
.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-section ul li {
  margin-bottom: 10px;
}
.f-link {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.2s;
}
.f-link:hover {
  color: white;
}
.social-btns {
  display: flex;
  gap: 12px;
}
.social-btn img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}
.footer-bottom {
  text-align: center;
  padding-top: 30px;
  margin-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  font-size: 0.85rem;
}

/* MOBILE RESPONSIVE MEDIA QUERIES (320px - 768px) */
@media (max-width: 768px) {
  .topbar {
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }
  .hamburger {
    display: block;
  }
  #navbar {
    display: none;
    flex-direction: column;
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    padding: 16px;
    box-shadow: var(--shadow-lg);
    border-bottom: 1px solid var(--border-color);
  }
  #navbar.show {
    display: flex;
  }
  .job-search-card {
    padding: 20px;
    margin-top: -30px;
  }
  
  /* STACK TABLES INTO CARDS FOR MOBILE USABILITY */
  .mobile-card-table {
    display: block;
  }
  .mobile-card-table thead {
    display: none;
  }
  .mobile-card-table tbody, 
  .mobile-card-table tr, 
  .mobile-card-table td {
    display: block;
    width: 100%;
  }
  .mobile-card-table tr {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
  }
  .mobile-card-table td {
    padding: 8px 0;
    border: none;
  }
}
