/* LinkedIn Exact Clone Styles */
:root {
    --bg-color: #F4F2EE;
    --card-bg: #ffffff;
    --text-primary: rgba(0, 0, 0, 0.9);
    --text-secondary: rgba(0, 0, 0, 0.6);
    --border-color: #E4E4E4;
    --li-blue: #0a66c2;
    --li-blue-hover: #004182;
    --btn-hover: rgba(0, 0, 0, 0.08);
    --card-shadow: 0px 0px 1px 0px rgba(140, 140, 140, 0.2), 0px 3px 9px 0px rgba(0, 0, 0, 0.16);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    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-color);
    color: var(--text-primary);
    line-height: 1.5;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
}

/* Navbar */
.navbar {
    background-color: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    height: 52px;
}

.nav-container {
    max-width: 1440px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 48px;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.nav-brand {
    background-color: var(--li-blue);
    color: white;
    font-weight: bold;
    font-size: 20px;
    padding: 2px 6px;
    border-radius: 4px;
    text-decoration: none;
}

.nav-search {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 12px;
    color: var(--text-secondary);
    pointer-events: none;
}

.nav-search input {
    background-color: #eef3f8;
    border: none;
    padding: 0 8px 0 40px;
    height: 34px;
    border-radius: 4px;
    width: 280px;
    font-size: 14px;
    outline: none;
    transition: width 0.2s ease;
}

.nav-links {
    list-style: none;
    display: flex;
    justify-content: center;
    flex: 2;
    height: 100%;
}

.nav-links li {
    display: flex;
    align-items: center;
}

.nav-links a, .nav-right a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 16px;
    height: 100%;
    justify-content: center;
}

.nav-links a svg, .nav-right a svg {
    margin-bottom: 2px;
}

.nav-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
    flex: 1;
}

.nav-divider {
    width: 1px;
    height: 36px;
    background-color: var(--border-color);
    margin: 0 8px;
}

.nav-right a:hover {
    color: var(--text-primary);
}

.nav-links a.active {
    color: var(--text-primary);
    border-bottom: 2px solid var(--text-primary);
}

.nav-links a:hover {
    color: var(--text-primary);
}

/* Main Layout */
.main-container {
    max-width: 1200px;
    margin: 24px auto;
    display: grid;
    grid-template-columns: 225px 1fr 315px;
    gap: 24px;
    padding: 0 24px;
}

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

/* Profile Card */
.profile-background {
    height: 56px;
    background-image: url('/banner.png');
    background-size: cover;
    background-position: center;
}

.profile-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background-image: url('/profile.jpg');
    background-size: cover;
    background-position: center;
    border: 2px solid white;
    margin: -38px auto 12px;
}

.profile-info {
    text-align: center;
    padding: 0 12px 16px;
    border-bottom: 1px solid var(--border-color);
}

.profile-info h1 {
    font-size: 16px;
    font-weight: 600;
}

.profile-info p {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.profile-stats {
    padding: 12px 0;
}

.stat {
    display: flex;
    justify-content: space-between;
    padding: 4px 12px;
    font-size: 12px;
    color: var(--text-secondary);
    cursor: pointer;
}

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

.stat-num {
    color: var(--li-blue);
    font-weight: 600;
}

/* Positions Card */
.positions-card {
    padding: 16px;
}

.positions-card h2 {
    font-size: 16px;
    margin-bottom: 12px;
}

.position-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: #f9fafb;
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    margin-bottom: 8px;
}

.position-box:last-child {
    margin-bottom: 0;
}

.position-icon {
    width: 36px;
    height: 36px;
    border-radius: 4px;
    background-color: #cbd5e1;
    flex-shrink: 0;
}

.position-info h3 {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.position-info p {
    font-size: 12px;
    color: var(--text-secondary);
}

.social-link {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.social-link:hover {
    background-color: #eef3f8;
}

/* Feed & Create Post */
.create-post-card {
    padding: 12px 16px;
}

.create-input {
    display: flex;
    gap: 8px;
}

.mini-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-image: url('/profile.jpg');
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.start-post-btn {
    flex-grow: 1;
    border: 1px solid var(--text-secondary);
    background: none;
    border-radius: 35px;
    text-align: left;
    padding: 0 16px;
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s;
}

.start-post-btn:hover {
    background-color: var(--btn-hover);
}

/* Post Card */
.post-card {
    padding: 12px 16px 0;
}

.post-header {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.post-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-image: url('/profile.jpg');
    background-size: cover;
    background-position: center;
}

.post-author-info h2 {
    font-size: 14px;
    font-weight: 600;
}

.post-author-info p {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.3;
}

.post-content {
    font-size: 14px;
    margin-bottom: 8px;
}

.mention {
    color: var(--li-blue);
    font-weight: 600;
}

.post-image {
    width: 100%;
    border-radius: 8px;
    margin-top: 12px;
    border: 1px solid var(--border-color);
}

.post-actions {
    display: flex;
    border-top: 1px solid var(--border-color);
    padding: 4px 0;
}

.post-actions button {
    flex: 1;
    background: none;
    border: none;
    padding: 10px 8px;
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.post-actions button:hover {
    background-color: var(--btn-hover);
}

/* Status Card (Right Sidebar) */
.status-card {
    padding: 16px;
}

.status-card h2 {
    font-size: 16px;
    margin-bottom: 12px;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.pulse-dot {
    width: 10px;
    height: 10px;
    background-color: #057642;
    border-radius: 50%;
}

.pulse-dot.offline {
    background-color: #cc1016;
}

.pulse-dot.idle {
    background-color: #f5c26b;
}

.activity-box {
    background-color: #f9fafb;
    padding: 12px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

.activity-box h3 {
    font-size: 14px;
    color: var(--text-primary);
}

.activity-box p {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Forms (Inside feed to mimic posts) */
#contact-form-container {
    margin-top: 16px;
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
}

.li-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    margin-bottom: 12px;
    font-family: inherit;
    font-size: 14px;
    outline: none;
}

.li-input:focus {
    border-color: var(--text-primary);
}

.li-textarea {
    resize: vertical;
    min-height: 80px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
}

.li-btn-primary {
    background-color: var(--li-blue);
    color: white;
    border: none;
    padding: 6px 16px;
    border-radius: 16px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.15s;
}

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

.form-status {
    margin-top: 8px;
    font-size: 12px;
    text-align: right;
}

.form-status.success {
    color: #057642;
}

.form-status.error {
    color: #cc1016;
}
