:root {
  /* Color Palette - Professional & Modern "Nexus" Blue */
  --primary: #0a66c2;
  --primary-hover: #004182;
  --secondary: #666666;
  --bg-body: #f3f2ef;
  --bg-card: #ffffff;
  --border-color: #e0e0e0;
  --text-main: #191919;
  --text-muted: #666666;
  --accent-success: #057642;
  --accent-error: #cc1016;
  
  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 48px;
  --space-2xl: 64px;
  
  /* Borders & Shadows */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 0 0 1px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.15);
}

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

body {
  margin: 0;
  font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Fira Sans", Ubuntu, Oxygen, "Oxygen Sans", Cantarell, "Droid Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Lucida Grande", Helvetica, Arial, sans-serif;
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.5;
}

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

/* Navigation */
.navbar {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 52px;
  display: flex;
  align-items: center;
}

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

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

.nav-logo {
  color: var(--primary);
  font-weight: 800;
  font-size: 24px;
  text-decoration: none;
  display: flex;
  align-items: center;
}

.search-bar {
  background: #edf3f8;
  border-radius: var(--radius-sm);
  padding: 0 var(--space-sm);
  display: flex;
  align-items: center;
  height: 34px;
  width: 280px;
}

.search-bar input {
  background: transparent;
  border: none;
  padding: 8px;
  width: 100%;
  font-size: 14px;
}

.search-bar input:focus {
  outline: none;
  width: 380px;
  transition: width 0.3s ease;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  height: 100%;
}

.nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--secondary);
  font-size: 12px;
  position: relative;
  transition: color 0.2s;
  cursor: pointer;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-main);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--text-main);
}

/* Main Grid */
.main-grid {
  display: grid;
  grid-template-columns: 225px 1fr 300px;
  gap: var(--space-lg);
  margin-top: var(--space-lg);
  align-items: start;
}

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

/* Sidebar Profile */
.profile-card-header {
  height: 56px;
  background: linear-gradient(to right, #a0b4b7, #dbe7e9);
}

.profile-card-avatar-wrap {
  margin-top: -30px;
  padding: 0 var(--space-md);
  text-align: center;
}

.avatar-large {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2px solid white;
  background: #eee;
  margin: 0 auto;
}

.profile-card-info {
  padding: var(--space-md);
  text-align: center;
  border-bottom: 1px solid var(--border-color);
}

.profile-card-info h3 {
  margin: 0;
  font-size: 16px;
}

.profile-card-info p {
  margin: var(--space-xs) 0 0;
  font-size: 12px;
  color: var(--text-muted);
}

.profile-stats {
  padding: var(--space-sm) 0;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  padding: var(--space-sm) var(--space-md);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.stat-row:hover {
  background: rgba(0,0,0,0.03);
}

.stat-label { color: var(--text-muted); }
.stat-value { color: var(--primary); }

/* Create Post */
.create-post {
  padding: var(--space-md);
}

.post-input-wrap {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.avatar-sm {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #eee;
  flex-shrink: 0;
}

.post-trigger {
  flex-grow: 1;
  border: 1px solid var(--border-color);
  border-radius: 35px;
  padding: 10px 16px;
  color: var(--text-muted);
  font-weight: 600;
  text-align: left;
  background: transparent;
  cursor: pointer;
  transition: background 0.2s;
}

.post-trigger:hover {
  background: rgba(0,0,0,0.05);
}

.post-actions {
  display: flex;
  justify-content: space-between;
}

.action-btn {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  border: none;
  background: transparent;
  color: var(--secondary);
  font-weight: 600;
  cursor: pointer;
}

.action-btn:hover {
  background: rgba(0,0,0,0.05);
}

/* Feed Post */
.feed-post {
  padding-top: var(--space-md);
}

.post-header {
  display: flex;
  gap: var(--space-sm);
  padding: 0 var(--space-md);
  margin-bottom: var(--space-sm);
}

.post-meta h4 {
  margin: 0;
  font-size: 14px;
}

.post-meta p {
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
}

.post-content {
  padding: 0 var(--space-md);
  font-size: 14px;
  margin-bottom: var(--space-md);
}

.post-image {
  width: 100%;
  height: auto;
  min-height: 200px;
  background: #f0f0f0;
}

.post-stats {
  display: flex;
  justify-content: space-between;
  padding: var(--space-sm) var(--space-md);
  border-bottom: 1px solid var(--border-color);
  font-size: 12px;
  color: var(--text-muted);
}

.post-interact {
  display: flex;
  padding: var(--space-xs) var(--space-md);
}

/* Right Sidebar */
.news-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md);
}

.news-header h4 { margin: 0; font-size: 16px; }

.news-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.news-item {
  padding: var(--space-sm) var(--space-md);
  cursor: pointer;
}

.news-item:hover {
  background: rgba(0,0,0,0.03);
}

.news-title {
  display: block;
  font-size: 14px;
  font-weight: 600;
}

.news-meta {
  font-size: 12px;
  color: var(--text-muted);
}

/* Buttons */
.btn-primary {
  background: var(--primary);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 600;
  cursor: pointer;
}

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

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 600;
  cursor: pointer;
}

.btn-outline:hover {
  background: rgba(10, 102, 194, 0.1);
  border-width: 2px;
  padding: 7px 15px;
}

/* Utilities */
.placeholder-image {
  background: #e9e9e9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 12px;
  position: relative;
}

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

.placeholder-avatar {
  background: #d0d0d0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Badges */
.badge {
  background: var(--accent-error);
  color: white;
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 10px;
  position: absolute;
  top: -2px;
  right: -8px;
}

/* Job Page Specific */
.job-sidebar-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  color: var(--secondary);
  font-weight: 600;
  font-size: 14px;
}

.job-sidebar-item:hover {
  background: rgba(0,0,0,0.05);
}

.job-card {
  padding: var(--space-md);
  display: flex;
  gap: var(--space-md);
}

.job-logo {
  width: 56px;
  height: 56px;
  background: #eee;
  flex-shrink: 0;
}

.job-info h4 {
  margin: 0;
  color: var(--primary);
  font-size: 16px;
}

.job-info p {
  margin: 2px 0;
  font-size: 14px;
}

.job-info .company { font-weight: 600; }
.job-info .location { color: var(--text-muted); font-size: 12px; }
.job-info .posted { color: var(--accent-success); font-size: 12px; font-weight: 600; }

/* Profile Page Specific */
.profile-header-card {
  position: relative;
}

.profile-cover {
  height: 200px;
  background: linear-gradient(135deg, #0a66c2 0%, #004182 100%);
}

.profile-header-content {
  padding: 0 var(--space-lg) var(--space-lg);
  margin-top: -60px;
}

.profile-avatar-main {
  width: 152px;
  height: 152px;
  border-radius: 50%;
  border: 4px solid white;
  background: #eee;
  margin-bottom: var(--space-md);
}

.profile-actions-row {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.profile-section {
  padding: var(--space-lg);
}

.profile-section h2 {
  margin-top: 0;
  font-size: 20px;
}

.profile-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: var(--space-lg);
}

.profile-intro-row {
  display: flex; 
  justify-content: space-between; 
  align-items: flex-start;
}

.profile-name {
  margin: 0; 
  font-size: 24px;
}

.profile-headline {
  margin: 4px 0; 
  font-size: 16px;
}

.profile-location {
  margin: 0; 
  font-size: 14px; 
  color: var(--text-muted);
}

.contact-link {
  color: var(--primary); 
  font-weight: 600; 
  text-decoration: none;
}

.connections-count {
  margin: var(--space-sm) 0; 
  font-size: 14px; 
  color: var(--primary); 
  font-weight: 600;
}

.profile-education-info {
  text-align: right; 
  font-size: 14px; 
  font-weight: 600;
}

.exp-item {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.exp-logo {
  width: 48px;
  height: 48px;
  background: #eee;
}

.exp-details h4 { margin: 0; font-size: 16px; }
.exp-details p { margin: 2px 0; font-size: 14px; }

.skill-tag {
  padding: 8px 16px; 
  background: #f3f2ef; 
  border-radius: 20px; 
  font-size: 14px; 
  font-weight: 600;
}

/* Responsive */
@media (max-width: 1024px) {
  .main-grid {
    grid-template-columns: 225px 1fr;
  }
  .right-sidebar {
    display: none;
  }
}

@media (max-width: 768px) {
  .main-grid {
    grid-template-columns: 1fr;
  }
  .left-sidebar {
    display: none;
  }
  .search-bar {
    width: 40px;
    padding: 0;
    justify-content: center;
  }
  .search-bar input {
    display: none;
  }

  /* Profile Grid Responsive */
  .profile-grid {
    grid-template-columns: 1fr !important;
  }
  
  .nav-label {
    display: none;
  }
}

@media (max-width: 480px) {
  .navbar {
    height: auto;
    padding: var(--space-sm) 0;
  }
  
  .nav-content {
    flex-direction: column;
    gap: var(--space-md);
  }

  .nav-right {
    gap: var(--space-md);
    width: 100%;
    justify-content: space-between;
    overflow-x: auto;
    padding-bottom: var(--space-xs);
  }

  .nav-link {
    flex-shrink: 0;
    font-size: 10px;
  }

  .profile-header-content {
    padding: 0 var(--space-md) var(--space-md);
    margin-top: -40px;
  }

  .profile-avatar-main {
    width: 100px;
    height: 100px;
  }

  .profile-intro-row {
    flex-direction: column;
    gap: var(--space-md);
  }

  .profile-education-info {
    text-align: left !important;
  }

  .profile-actions-row {
    flex-wrap: wrap;
  }

  .profile-actions-row button {
    flex: 1;
    min-width: 120px;
    font-size: 14px;
    padding: 6px 12px;
  }

  .profile-name {
    font-size: 20px !important;
  }

  .profile-headline {
    font-size: 14px !important;
  }

  .exp-item {
    flex-direction: column;
    gap: var(--space-sm);
  }

  .exp-logo {
    width: 40px;
    height: 40px;
  }
}
