/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    touch-action: manipulation;
}

:root {
    /* Rouge classique unique - RGB(200, 16, 46) = #c8102e - Distinctif et élégant */
    --primary-50: #fef2f2;
    --primary-100: #fee2e2;
    --primary-200: #fecaca;
    --primary-300: #fca5a5;
    --primary-400: #f87171;
    --primary-500: #c8102e; /* RGB(200, 16, 46) - Rouge classique unique */
    --primary-600: #a00d26; /* RGB(160, 13, 38) */
    --primary-700: #780a1e; /* RGB(120, 10, 30) */
    --primary-800: #500714; /* RGB(80, 7, 20) */
    --primary-900: #28050a; /* RGB(40, 5, 10) */
    /* Orange doré (secondaire) */
    --secondary-50: #fff7ed;
    --secondary-100: #ffedd5;
    --secondary-200: #fed7aa;
    --secondary-300: #fdba74;
    --secondary-400: #fb923c;
    --secondary-500: #d97706;
    --secondary-600: #b45309;
    --secondary-700: #92400e;
    --secondary-800: #78350f;
    --secondary-900: #451a03;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background-color: var(--gray-50);
    color: var(--gray-900);
    line-height: 1.6;
}

/* Background color for home page */
body.home-page {
    background-color: #fff8f9;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--primary-600);
    border-bottom: 1px solid var(--primary-700);
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: opacity 0.2s;
}

.logo:hover {
    opacity: 0.9;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-600), var(--primary-800));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.25rem;
}

.logo-image-header {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: bold;
    color: white;
}

.search-container {
    flex: 1;
    max-width: 600px;
    margin: 0 2rem;
    position: relative;
    display: none;
}

@media (min-width: 768px) {
    .search-container {
        display: block;
    }
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    width: 20px;
    height: 20px;
}

.search-input {
    width: 100%;
    padding: 8px 16px 8px 40px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 9999px;
    font-size: 0.875rem;
    color: white;
    transition: all 0.2s;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

.search-icon {
    color: rgba(255, 255, 255, 0.8);
}

.nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 16px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.2s;
    position: relative;
    font-size: 0.75rem;
    gap: 4px;
    border-radius: 8px;
}

.nav-item:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.nav-item.active {
    color: white;
    background: rgba(255, 255, 255, 0.15);
}

.nav-item svg {
    width: 24px;
    height: 24px;
}

.nav-item .badge::after {
    content: '';
    position: absolute;
    top: 0;
    right: 8px;
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
}

/* Navigation Badge for Notifications */
.nav-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    background: #f97316; /* Orange */
    color: white;
    border-radius: 9px;
    font-size: 0.65rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    border: 2px solid var(--primary-600);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.nav-badge.notification-badge {
    background: #f97316; /* Orange */
}

.nav-item {
    position: relative;
}

.profile-nav {
    flex-direction: row;
    gap: 0;
    padding: 4px;
    border-radius: 50%;
    width: auto;
    height: auto;
}

.profile-nav:hover {
    background: rgba(255, 255, 255, 0.1);
}

.profile-nav .avatar-small {
    margin: 0;
}

/* Avatars */
.avatar-small {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary-600), var(--primary-800));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
}

.avatar-medium {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary-600), var(--primary-800));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1.5rem;
}

.avatar-large {
    width: 128px;
    height: 128px;
    background: linear-gradient(135deg, var(--primary-600), var(--primary-800));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 3rem;
    border: 4px solid white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Main Container */
.main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 80px 1rem 2rem;
    min-height: calc(100vh - 64px);
    width: 100%;
    box-sizing: border-box;
}

/* Only apply grid layout for home page */
body.home-page .main-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    body.home-page .main-container {
        grid-template-columns: 300px 1fr 300px;
    }
}

/* All other pages use full width */
body:not(.home-page) .main-container {
    display: block !important;
    grid-template-columns: none !important;
}

/* Sidebars */
.sidebar-left,
.sidebar-right {
    display: none;
}

@media (min-width: 1024px) {
    .sidebar-left,
    .sidebar-right {
        display: block;
    }
}

/* Cards */
.card {
    background: white;
    border-radius: 8px;
    border: 1px solid var(--gray-200);
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.card-highlight {
    background: linear-gradient(135deg, var(--secondary-50), var(--secondary-100));
    border-color: var(--secondary-200);
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-title svg {
    color: var(--primary-600);
}

.card-highlight .card-title svg {
    color: var(--secondary-600);
}

.card-description {
    font-size: 0.875rem;
    color: var(--gray-700);
    margin-bottom: 1rem;
}

/* Profile Preview */
.profile-preview {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.profile-preview h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.profile-preview p {
    font-size: 0.875rem;
    color: var(--gray-500);
}

.stats {
    display: flex;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-200);
}

.stat-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-900);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--gray-500);
}

/* Quick Links */
.quick-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.quick-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    border-radius: 8px;
    color: var(--gray-700);
    text-decoration: none;
    transition: background 0.2s;
    font-size: 0.875rem;
}

.quick-link:hover {
    background: var(--gray-50);
}

.quick-link svg {
    color: var(--gray-600);
}

/* Activity List */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.activity-item {
    font-size: 0.875rem;
}

.activity-item p {
    color: var(--gray-700);
    margin-bottom: 0.25rem;
}

.activity-time {
    font-size: 0.75rem;
    color: var(--gray-500);
}

/* Create Post */
.create-post-card {
    margin-bottom: 1rem;
}

.create-post-form {
    display: flex;
    flex-direction: column;
}

.create-post-header {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.post-textarea {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    font-size: 0.875rem;
    resize: none;
    font-family: inherit;
    transition: all 0.2s;
}

.post-textarea:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.create-post-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.post-tools {
    display: flex;
    gap: 0.5rem;
}

.tool-btn {
    padding: 0.5rem;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: var(--gray-600);
    cursor: pointer;
    transition: background 0.2s;
}

.tool-btn:hover {
    background: var(--gray-100);
}

.post-buttons {
    display: flex;
    gap: 0.5rem;
}

/* Buttons */
.btn-primary {
    padding: 0.5rem 1.5rem;
    background: var(--primary-600);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 0.875rem;
}

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

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-secondary {
    padding: 0.5rem 1rem;
    background: transparent;
    color: var(--gray-600);
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 0.875rem;
}

.btn-secondary:hover {
    background: var(--gray-100);
}

.btn-block {
    width: 100%;
}

.btn-follow {
    padding: 0.375rem 1rem;
    background: transparent;
    color: var(--primary-600);
    border: 1px solid var(--primary-600);
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

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

.btn-link {
    width: 100%;
    margin-top: 0.75rem;
    padding: 0.5rem;
    background: transparent;
    color: var(--primary-600);
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

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

/* Post Card */
.post-card {
    background: white;
    border-radius: 8px;
    border: 1px solid var(--gray-200);
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.post-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.post-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.post-author-info h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.post-author-info p {
    font-size: 0.875rem;
    color: var(--gray-500);
}

.post-time {
    font-size: 0.75rem;
    color: var(--gray-400);
    margin-top: 0.25rem;
}

.post-more {
    padding: 0.5rem;
    background: transparent;
    border: none;
    border-radius: 50%;
    color: var(--gray-600);
    cursor: pointer;
    transition: background 0.2s;
}

.post-more:hover {
    background: var(--gray-100);
}

.post-content {
    margin-bottom: 1rem;
    color: var(--gray-700);
    line-height: 1.6;
}

.post-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-200);
    flex-wrap: wrap;
}

.suitcase-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.suitcase-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    color: var(--gray-600);
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.875rem;
    font-weight: 500;
}

.suitcase-btn:hover {
    background: var(--gray-50);
    border-color: var(--gray-400);
}

.suitcase-btn.active.good {
    background: var(--red-50);
    border-color: var(--red-500);
    color: var(--red-600);
}

.suitcase-btn.active.good svg {
    fill: var(--red-600);
    stroke: var(--red-600);
}

.suitcase-btn.active.bad {
    background: var(--gray-100);
    border-color: var(--gray-500);
    color: var(--gray-700);
}

.suitcase-btn.active.bad svg {
    fill: var(--gray-700);
    stroke: var(--gray-700);
}

.suitcase-btn svg {
    width: 20px;
    height: 20px;
}

.suitcase-bad-icon {
    transform: rotate(180deg);
    transform-origin: center;
    display: block;
}

.post-action {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: var(--gray-600);
    cursor: pointer;
    transition: background 0.2s;
    font-size: 0.875rem;
    font-weight: 500;
}

.post-action:hover {
    background: var(--gray-50);
}

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

.post-action.liked svg {
    fill: var(--primary-500);
    stroke: var(--primary-500);
}

.post-action svg {
    width: 20px;
    height: 20px;
}

/* Comments Section */
.post-comments {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-200);
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
    max-height: 400px;
    overflow-y: auto;
}

.comment-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
    margin-bottom: 0.75rem;
    background: var(--gray-50);
    border-radius: 8px;
    border: 1px solid var(--gray-200);
    transition: background 0.2s, border-color 0.2s;
}

.comment-item:hover {
    background: var(--gray-100);
    border-color: var(--gray-300);
}

.comment-item.comment-reply {
    margin-left: 2.5rem;
    margin-top: 0.5rem;
    padding: 0.75rem;
    background: white;
    border-left: 3px solid var(--primary-300);
}

.comment-content {
    flex: 1;
}

.comment-header {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.comment-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.comment-author-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.comment-author {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-900);
}

.comment-time {
    font-size: 0.75rem;
    color: var(--gray-500);
}

.comment-parent-reference {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: var(--gray-600);
    margin-top: 0.125rem;
}

.comment-parent-reference svg {
    width: 12px;
    height: 12px;
    color: var(--gray-400);
}

.comment-text {
    font-size: 0.875rem;
    color: var(--gray-800);
    line-height: 1.6;
    margin: 0;
    padding: 0.5rem 0;
    word-wrap: break-word;
}

.comment-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.comment-reply-btn {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    background: transparent;
    border: none;
    color: var(--gray-600);
    font-size: 0.75rem;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
}

.comment-reply-btn:hover {
    background: var(--gray-100);
    color: var(--primary-600);
}

.comment-reply-btn svg {
    width: 14px;
    height: 14px;
}

.comment-replies {
    margin-top: 0.5rem;
    padding-left: 0.5rem;
    border-left: 2px solid var(--gray-200);
}

.comment-reply-input {
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: white;
    border-radius: 6px;
    border: 1px solid var(--gray-300);
}

.comment-reply-input-field {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--gray-300);
    border-radius: 4px;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    outline: none;
    transition: border-color 0.2s;
}

.comment-reply-input-field:focus {
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.1);
}

.comment-reply-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.comments-list {
    max-height: 500px;
    overflow-y: auto;
    padding: 0.5rem 0;
}

.comments-list::-webkit-scrollbar {
    width: 6px;
}

.comments-list::-webkit-scrollbar-track {
    background: var(--gray-100);
    border-radius: 3px;
}

.comments-list::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 3px;
}

.comments-list::-webkit-scrollbar-thumb:hover {
    background: var(--gray-400);
}

.comment-input-area {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    padding: 0.75rem;
    background: var(--gray-50);
    border-radius: 8px;
}

.comment-input {
    flex: 1;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    font-size: 0.875rem;
    outline: none;
    transition: border-color 0.2s;
}

.comment-input:focus {
    border-color: var(--primary-500);
}

.btn-send-comment {
    padding: 0.5rem 1rem;
    background: var(--primary-600);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

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

/* Suitcase Actions Vertical */
.suitcase-actions-vertical {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.suitcase-actions-vertical .suitcase-btn {
    width: 100%;
    justify-content: center;
}

/* Trending */
.trending-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.trending-item {
    padding: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.trending-item:hover {
    background: var(--gray-50);
}

.trending-tag {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.trending-count {
    font-size: 0.75rem;
    color: var(--gray-500);
}

/* Suggestions */
.suggestions-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.suggestion-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.suggestion-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.suggestion-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.suggestion-role {
    font-size: 0.75rem;
    color: var(--gray-500);
}

/* Jobs */
.jobs-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.job-item {
    padding: 0.75rem;
    background: var(--gray-50);
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.job-item:hover {
    background: var(--gray-100);
}

.job-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.job-company {
    font-size: 0.75rem;
    color: var(--gray-500);
}

/* Feed */
.feed {
    min-width: 0;
}

/* Post Media */
.post-media {
    margin: 1rem -1.5rem; /* Negative margin to remove horizontal padding */
    border-radius: 0; /* Remove border radius for full width */
    overflow: hidden;
}

.post-media img,
.post-media video {
    width: 100%;
    height: auto;
    display: block;
}

.post-image {
    margin: 1rem -1.5rem; /* Negative margin to remove horizontal padding */
    border-radius: 0; /* Remove border radius for full width */
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: auto;
    display: block;
}

.post-video {
    margin: 1rem -1.5rem; /* Negative margin to remove horizontal padding */
    border-radius: 0; /* Remove border radius for full width */
    overflow: hidden;
}

.post-video video,
.post-reel video {
    width: 100%;
    height: auto;
    display: block;
}

.post-youtube {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    margin: 1rem -1.5rem; /* Negative margin to remove horizontal padding */
    border-radius: 0; /* Remove border radius for full width */
}

.post-youtube iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.post-reel {
    max-width: 400px;
    margin: 0 auto;
}

.media-preview {
    margin-top: 1rem;
}

.opportunities-preview {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.opportunity-preview-item {
    padding: 0.75rem;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.opportunity-preview-item:hover {
    background: var(--gray-50);
}

.opportunity-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.opportunity-company {
    font-size: 0.75rem;
    color: var(--gray-500);
}

/* Services List */
.services-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.service-item {
    padding: 1rem;
    background: var(--gray-50);
    border-radius: 8px;
}

.service-item h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.service-item p {
    font-size: 0.875rem;
    color: var(--gray-600);
}

/* Publications List */
.publications-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.publication-item {
    padding: 1rem;
    background: var(--gray-50);
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.publication-item:hover {
    background: var(--gray-100);
}

.publication-item h3 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.publication-date {
    font-size: 0.75rem;
    color: var(--gray-500);
}

/* Opportunities List */
.opportunities-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.opportunity-item {
    padding: 0.75rem;
    background: var(--gray-50);
    border-radius: 8px;
}

.opportunity-item h3 {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.opportunity-status {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.opportunity-status.active {
    background: #d1fae5;
    color: #065f46;
}

/* Team Preview */
.team-preview {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.team-member {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.member-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.member-role {
    font-size: 0.75rem;
    color: var(--gray-500);
}

/* Filters Section */
.filters-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-700);
}

.filter-select {
    padding: 0.5rem;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    font-size: 0.875rem;
}

.my-opportunities {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.my-opp-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: var(--gray-50);
    border-radius: 8px;
}

.my-opp-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-900);
}

.my-opp-status {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.my-opp-status.active {
    background: #d1fae5;
    color: #065f46;
}

/* Network Page */
.network-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 80px 1rem 2rem;
}

.network-header {
    margin-bottom: 1.5rem;
}

.network-header h1 {
    font-size: 2rem;
    font-weight: bold;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.network-header p {
    color: var(--gray-600);
}

.network-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.filter-btn {
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    color: var(--gray-700);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn:hover {
    background: var(--gray-50);
}

.filter-btn.active {
    background: var(--primary-600);
    color: white;
    border-color: var(--primary-600);
}

.connections-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .connections-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .connections-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.connection-card {
    background: white;
    border-radius: 8px;
    border: 1px solid var(--gray-200);
    padding: 1.5rem;
    transition: box-shadow 0.2s;
}

.connection-card:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.connection-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.connection-info h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.connection-info p {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin: 0;
}

.connection-description {
    font-size: 0.875rem;
    color: var(--gray-700);
    line-height: 1.5;
    margin: 0.75rem 0;
}

.connection-status {
    margin-top: 0.5rem;
}

.connection-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: var(--gray-500);
}

.connection-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.connection-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.connection-actions .btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 6px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.connection-actions .btn-primary.btn-small {
    background: var(--primary-500);
    color: #fff;
}

.connection-actions .btn-primary.btn-small:hover {
    background: var(--primary-600);
}

.connection-actions .btn-secondary.btn-small {
    background: #fff;
    color: var(--gray-700);
    border: 1px solid var(--gray-300);
}

.connection-actions .btn-secondary.btn-small:hover {
    background: var(--gray-50);
    border-color: var(--gray-400);
}

.btn-connected {
    flex: 1;
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    color: var(--gray-700);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: background 0.2s;
}

.btn-connected:hover {
    background: var(--gray-50);
}

.btn-remove {
    padding: 0.5rem;
    background: transparent;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    color: var(--gray-600);
    cursor: pointer;
    transition: background 0.2s;
}

.btn-remove:hover {
    background: var(--gray-100);
}

/* Jobs Page */
.jobs-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 80px 1rem 2rem;
}

.jobs-header {
    margin-bottom: 1.5rem;
}

.jobs-header h1 {
    font-size: 2rem;
    font-weight: bold;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.jobs-header p {
    color: var(--gray-600);
}

.jobs-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    .jobs-layout {
        grid-template-columns: 2fr 1fr;
    }
}

.jobs-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.job-card {
    background: white;
    border-radius: 8px;
    border: 1px solid var(--gray-200);
    padding: 1.5rem;
    transition: box-shadow 0.2s;
    cursor: pointer;
}

.job-card:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.job-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.job-company-logo {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-600), var(--primary-800));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.25rem;
}

.job-info h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.job-company-name {
    font-size: 0.875rem;
    color: var(--gray-600);
}

.job-details {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: var(--gray-500);
}

.job-details span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.job-description {
    color: var(--gray-700);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.job-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.job-skill-tag {
    padding: 0.25rem 0.75rem;
    background: var(--gray-100);
    color: var(--gray-700);
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.job-actions {
    display: flex;
    gap: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-200);
}

.btn-icon {
    padding: 0.5rem;
    background: transparent;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    color: var(--gray-600);
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon:hover {
    background: var(--gray-50);
}

.jobs-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.skills-demand {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.skill-demand-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.skill-demand-item:hover {
    background: var(--gray-50);
}

.skill-demand-item span:first-child {
    font-size: 0.875rem;
    color: var(--gray-700);
}

.demand-count {
    font-size: 0.75rem;
    color: var(--gray-500);
}

/* Responsive */
@media (max-width: 1023px) {
    .sidebar-left,
    .sidebar-right {
        display: none;
    }
    
    .main-container {
        grid-template-columns: 1fr;
    }
    
    .jobs-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 0 0.5rem;
    }
    
    .logo-text {
        display: none;
    }
    
    .nav-item span {
        display: none;
    }
    
    .nav-item {
        padding: 8px;
    }
    
    .network-filters {
        flex-wrap: wrap;
    }
}

/* Search Results Dropdown */
.search-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    max-height: 500px;
    overflow-y: auto;
    z-index: 1000;
    border: 1px solid var(--gray-200);
}

.search-results-content {
    padding: 8px;
}

.search-section {
    margin-bottom: 16px;
}

.search-section:last-child {
    margin-bottom: 0;
}

.search-section h4 {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 12px;
    margin: 0;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--gray-900);
    transition: background 0.2s;
}

.search-result-item:hover {
    background: var(--gray-50);
}

.search-result-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-600), var(--primary-800));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.search-result-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.search-result-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.search-result-info {
    flex: 1;
    min-width: 0;
}

.search-result-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-900);
    margin: 0 0 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-subtitle {
    font-size: 0.75rem;
    color: var(--gray-500);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-no-results {
    padding: 24px;
    text-align: center;
    color: var(--gray-500);
    font-size: 0.875rem;
}

/* Page Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.page-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0;
}

/* Data Table */
.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    text-align: left;
    padding: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--gray-200);
}

.data-table td {
    padding: 12px;
    border-bottom: 1px solid var(--gray-100);
    font-size: 0.875rem;
    color: var(--gray-700);
}

.data-table tr:hover {
    background: var(--gray-50);
}

/* Media Grid */
.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.media-item {
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    overflow: hidden;
    background: white;
    transition: transform 0.2s, box-shadow 0.2s;
}

.media-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.media-item img,
.media-item video {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.media-document {
    width: 100%;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-50);
    color: var(--gray-400);
}

.media-info {
    padding: 12px;
}

.media-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-900);
    margin: 0 0 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.media-size {
    font-size: 0.75rem;
    color: var(--gray-500);
    margin: 0 0 4px 0;
}

.media-description {
    font-size: 0.75rem;
    color: var(--gray-600);
    margin: 0;
}

.media-actions {
    display: flex;
    gap: 8px;
    padding: 8px 12px;
    border-top: 1px solid var(--gray-100);
    justify-content: flex-end;
}

.media-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.media-filters .search-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--gray-300);
    border-radius: 6px;
    background: white;
    color: var(--gray-900);
}

.media-filters .form-select {
    padding: 8px 12px;
    border: 1px solid var(--gray-300);
    border-radius: 6px;
    background: white;
    color: var(--gray-900);
}

/* Button Icon */
.btn-icon {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: var(--gray-500);
    transition: color 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-icon:hover {
    color: var(--primary-600);
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--gray-500);
}

/* Opportunities Filters */
.opportunities-filters-bar {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.opportunities-filters-bar .search-input {
    flex: 1;
    min-width: 200px;
    padding: 8px 12px;
    border: 1px solid var(--gray-300);
    border-radius: 6px;
}

.opportunities-filters-bar .filter-select {
    padding: 8px 12px;
    border: 1px solid var(--gray-300);
    border-radius: 6px;
    background: white;
}

/* Notifications */
.notifications-filters {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 16px;
    border: 1px solid var(--gray-300);
    background: white;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.875rem;
}

.filter-btn:hover {
    background: var(--gray-50);
}

.filter-btn.active {
    background: var(--primary-600);
    color: white;
    border-color: var(--primary-600);
}

.notifications-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.notification-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    background: white;
    transition: all 0.2s;
}

.notification-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.notification-item.unread {
    background: var(--primary-50);
    border-color: var(--primary-200);
}

.notification-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    border-radius: 50%;
    color: var(--primary-600);
    flex-shrink: 0;
}

.notification-content {
    flex: 1;
}

.notification-content h4 {
    margin: 0 0 4px 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-900);
}

.notification-content p {
    margin: 0 0 4px 0;
    font-size: 0.875rem;
    color: var(--gray-600);
}

.notification-time {
    font-size: 0.75rem;
    color: var(--gray-500);
}

.notification-actions {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
}

