:root {
  /* 1. Color Palette */
  /* Primary Colors */
  --google-blue: #1a73e8;
  --google-red: #d93025;
  --google-yellow: #f9ab00;
  --google-green: #1e8e3e;

  /* Surface Colors */
  --surface-light: #FFFFFF;
  --surface-dim: #F8F9FA;
  --surface-border: #DADCE0;

  /* Text Colors */
  --text-primary: #202124;
  --text-secondary: #5F6368;
  --text-tertiary: #80868B;

  /* 2. Typography */
  --font-family-base: 'Google Sans', 'Roboto', 'Inter', sans-serif;

  --font-size-display: 3.5rem;
  --font-weight-display: 400;
  --line-height-display: 1.1;

  --font-size-h1: 2.5rem;
  --font-weight-h1: 400;
  --line-height-h1: 1.2;

  --font-size-h2: 2rem;
  --font-weight-h2: 400;
  --line-height-h2: 1.3;

  --font-size-h3: 1.5rem;
  --font-weight-h3: 400;
  --line-height-h3: 1.4;

  --font-size-body-lg: 1.125rem;
  --font-weight-body: 400;
  --line-height-body: 1.5;

  --font-size-body-md: 1rem;

  --font-size-btn: 0.875rem;
  --font-weight-btn: 500;
  --line-height-btn: 1.25;

  /* 3. Elevation & Shadows */
  --shadow-1: 0 1px 2px 0 rgba(60, 64, 67, 0.3), 0 1px 3px 1px rgba(60, 64, 67, 0.15);
  --shadow-2: 0 1px 2px 0 rgba(60, 64, 67, 0.3), 0 2px 6px 2px rgba(60, 64, 67, 0.15);
  --shadow-3: 0 4px 8px 3px rgba(60, 64, 67, 0.15);

  /* 4. Spacing */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-2xl: 64px;
}

/* Global Reset & Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family-base);
  background-color: var(--surface-light);
  color: var(--text-primary);
  line-height: var(--line-height-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  margin-bottom: var(--spacing-md);
}

h1 { font-size: var(--font-size-h1); line-height: var(--line-height-h1); font-weight: var(--font-weight-h1); }
h2 { font-size: var(--font-size-h2); line-height: var(--line-height-h2); font-weight: var(--font-weight-h2); }
h3 { font-size: var(--font-size-h3); line-height: var(--line-height-h3); font-weight: var(--font-weight-h3); }

p { margin-bottom: var(--spacing-md); font-size: var(--font-size-body-md); }

a { text-decoration: none; color: var(--google-blue); transition: all 0.2s ease-in-out; }
ul { list-style: none; }

/* Utilities */
.container { max-width: 1200px; margin: 0 auto; padding: 0 var(--spacing-lg); }
.text-center { text-align: center; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.grid { display: grid; }
.gap-md { gap: var(--spacing-md); }
.gap-lg { gap: var(--spacing-lg); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border-radius: 4px;
  font-weight: 500;
  font-size: var(--font-size-btn);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s;
}

.btn-primary { background: var(--google-blue); color: white; }
.btn-primary:hover { background: #1557b0; box-shadow: var(--shadow-1); }

.btn-outline { border-color: var(--surface-border); background: white; color: var(--text-secondary); }
.btn-outline:hover { background: var(--surface-dim); border-color: #d2e3fc; color: var(--google-blue); }

/* Google Auth Button (Modified for general use) */
.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: white;
  color: #3c4043;
  border: 1px solid #dadce0;
  border-radius: 4px;
  padding: 10px 15px;
  font-family: 'Google Sans', 'Roboto', arial, sans-serif;
  font-weight: 500;
  font-size: 0.875rem;
  text-decoration: none;
  transition: background-color 0.2s, border-color 0.2s;
}

.btn-google:hover { background-color: #f8f9fa; border-color: #d2e3fc; cursor: pointer; }
.btn-google img { height: 18px; width: 18px; margin-right: 12px; }

/* Header Redesign */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--surface-border);
  padding: 12px 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

.logo-accent { color: var(--google-blue); }

.nav-list { display: flex; align-items: center; gap: var(--spacing-xl); }
.nav-link { 
  font-size: 0.9375rem; 
  color: var(--text-secondary); 
  font-weight: 500;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}
.nav-link:hover { color: var(--google-blue); }
.btn-post {
  background: #e8f0fe;
  color: var(--google-blue);
  padding: 6px 16px !important;
  border-radius: 20px !important;
}

.user-menu {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface-dim);
  padding: 6px 12px;
  border-radius: 30px;
  border: 1px solid var(--surface-border);
}

.avatar {
  width: 28px;
  height: 28px;
  background: var(--google-blue);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

.user-name { font-size: 0.875rem; font-weight: 500; }

.dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  background: white;
  min-width: 160px;
  box-shadow: var(--shadow-2);
  border-radius: 8px;
  margin-top: 8px;
  overflow: hidden;
  border: 1px solid var(--surface-border);
}

.user-menu:hover .dropdown-content { display: block; }

.dropdown-content a {
  padding: 12px 16px;
  display: block;
  font-size: 0.875rem;
  color: var(--text-primary);
}
.dropdown-content a:hover { background: var(--surface-dim); }
.logout-link { color: var(--google-red) !important; }

/* Footer Redesign */
.site-footer {
  background: #f8f9fa;
  border-top: 1px solid var(--surface-border);
  padding: 80px 0 40px;
  margin-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-brand .logo { font-size: 1.5rem; margin-bottom: 16px; display: inline-block; }
.footer-brand p { color: var(--text-secondary); font-size: 0.9375rem; line-height: 1.6; max-width: 300px; }

.footer-links h4 { font-size: 0.875rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 24px; color: var(--text-primary); }
.footer-links ul li { margin-bottom: 12px; }
.footer-links a { color: var(--text-secondary); font-size: 0.9375rem; }
.footer-links a:hover { color: var(--google-blue); }

.footer-bottom {
  text-align: center;
  padding-top: 40px;
  border-top: 1px solid var(--surface-border);
  color: var(--text-tertiary);
  font-size: 0.875rem;
}

.social-links { display: flex; gap: 12px; margin-top: 20px; }
.social-icon {
  width: 36px;
  height: 36px;
  border: 1px solid var(--surface-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--text-secondary);
}
.social-icon:hover { background: var(--google-blue); color: white; border-color: var(--google-blue); }

/* Layout Improvements */
.job-header-v2 { padding: 60px 0; background: white; border-bottom: 1px solid var(--surface-border); }
.job-view-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 60px; margin-top: 40px; }

/* Responsive Adjustments */
@media (max-width: 768px) {
  :root {
    --font-size-display: 2.5rem;
    --font-size-h1: 2rem;
    --spacing-2xl: 32px;
  }
  
  .header-inner { flex-direction: column; gap: var(--spacing-md); }
  .nav-list { gap: var(--spacing-md); flex-wrap: wrap; justify-content: center; }
  
  .grid { grid-template-columns: 1fr !important; }
  .stats-row { grid-template-columns: 1fr; }
  
  .data-table { display: block; overflow-x: auto; white-space: nowrap; }
}

@media (max-width: 480px) {
  .hero { padding: var(--spacing-xl) 0; }
  .btn { width: 100%; margin-bottom: 8px; }
  .header-actions { width: 100%; display: flex; flex-direction: column; align-items: center; }
  .header-actions span { margin-right: 0; margin-bottom: 8px; }
}
