/* ConnectSphere Styles */
:root {
    --primary-color: #0A66C2;
    --secondary-color: #057642;
    --text-color: #333;
    --light-text: #666;
    --lighter-text: #999;
    --background-color: #f3f2ef;
    --card-background: #fff;
    --border-color: #e0e0e0;
    --hover-color: #f7f9fa;
    --shadow: 0 0 0 1px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.05);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.5;
    color: var(--text-color);
    background-color: var(--background-color);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    background-color: var(--card-background);
    box-shadow: var(--shadow);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    align-items: center;
    padding: 8px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo h1 {
    color: var(--primary-color);
    font-size: 24px;
    font-weight: bold;
}

.search-bar {
    display: flex;
    margin: 0 20px;
    flex: 1;
    max-width: 280px;
    background-color: #eef3f8;
    border-radius: 4px;
    padding: 4px 8px;
}

.search-bar input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 4px;
    font-size: 14px;
}

.search-bar input:focus {
    outline: none;
}

.search-bar button {
    background: transparent;
    border: none;
    color: var(--light-text);
    cursor: pointer;
}

.main-nav ul {
    display: flex;
}

.main-nav li {
    margin: 0 12px;
}

.main-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--light-text);
    font-size: 12px;
    padding: 0 8px;
}

.main-nav a i {
    font-size: 18px;
    margin-bottom: 4px;
}

.main-nav a.active {
    color: var(--text-color);
}

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

.user-profile {
    display: flex;
    align-items: center;
    margin-left: 16px;
    cursor: pointer;
    padding: 0 8px;
    border-left: 1px solid var(--border-color);
}

.profile-img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin-right: 4px;
}

.profile-img-large {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 2px solid var(--card-background);
    position: relative;
    top: -36px;
    margin-bottom: -36px;
}

/* Main Content */
main {
    padding: 24px 0;
}

.main-grid {
    display: grid;
    grid-template-columns: 225px 1fr 300px;
    gap: 24px;
}

/* Sidebar Styles */
.profile-sidebar, .news-sidebar {
    position: sticky;
    top: 76px;
    align-self: start;
}

.card, .sidebar-card {
    background-color: var(--card-background);
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-bottom: 16px;
    overflow: hidden;
}

.profile-card {
    text-align: center;
    padding-bottom: 16px;
}

.profile-background {
    height: 60px;
    background: linear-gradient(to right, #0077b5, #00a0dc);
}

.profile-info {
    padding: 0 16px;
}

.profile-headline {
    color: var(--light-text);
    font-size: 14px;
    margin-bottom: 16px;
}

.profile-stats {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 16px;
}

.stat {
    flex: 1;
    text-align: left;
}

.stat-number {
    display: block;
    font-weight: bold;
    color: var(--primary-color);
}

.stat-label {
    font-size: 12px;
    color: var(--light-text);
}

.premium-cta {
    font-size: 14px;
    color: var(--light-text);
}

.premium-cta i {
    color: #e7a33e;
}

.sidebar-card {
    padding: 16px;
}

.sidebar-card h3 {
    font-size: 16px;
    margin-bottom: 12px;
}

.recent-groups ul li {
    margin-bottom: 8px;
}

.recent-groups ul li a {
    font-size: 14px;
    color: var(--light-text);
}

.recent-groups ul li a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.see-all {
    display: inline-block;
    margin-top: 8px;
    color: var(--light-text);
    font-size: 14px;
}

.see-all:hover {
    color: var(--primary-color);
}

.news-list li {
    margin-bottom: 12px;
}

.news-list a {
    display: flex;
    font-size: 14px;
}

.news-bullet {
    margin-right: 8px;
    color: var(--primary-color);
}

.news-time {
    display: block;
    font-size: 12px;
    color: var(--lighter-text);
    margin-left: 16px;
}

.people-suggestions li {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.suggestion-profile {
    display: flex;
    flex: 1;
}

.suggestion-info {
    margin-left: 12px;
}

.suggestion-name {
    font-weight: bold;
    font-size: 14px;
}

.suggestion-headline {
    font-size: 12px;
    color: var(--light-text);
    margin-bottom: 4px;
}

.connect-btn {
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
    padding: 4px 12px;
    border-radius: 16px;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.connect-btn:hover {
    background-color: rgba(10, 102, 194, 0.1);
}

.sidebar-footer {
    padding: 16px;
    font-size: 12px;
    color: var(--lighter-text);
}

.sidebar-footer ul {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.sidebar-footer li {
    margin-right: 8px;
    margin-bottom: 4px;
}

.sidebar-footer a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Feed Styles */
.post-composer {
    padding: 16px;
    margin-bottom: 16px;
}

.composer-input {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.composer-input button {
    flex: 1;
    text-align: left;
    margin-left: 8px;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 35px;
    background-color: var(--card-background);
    color: var(--light-text);
    cursor: pointer;
}

.composer-input button:hover {
    background-color: var(--hover-color);
}

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

.composer-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border: none;
    background: transparent;
    color: var(--light-text);
    font-size: 14px;
    cursor: pointer;
    border-radius: 4px;
}

.composer-btn i {
margin-right: 4px;
}

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

.post {
background-color: var(--card-background);
border-radius: 8px;
box-shadow: var(--shadow);
margin-bottom: 16px;
padding: 16px;
transition: opacity 0.3s ease;
}

.post.highlight {
animation: highlight-pulse 2s 1;
}

@keyframes highlight-pulse {
0% { box-shadow: 0 0 0 0 rgba(10, 102, 194, 0.7); }
70% { box-shadow: 0 0 0 10px rgba(10, 102, 194, 0); }
100% { box-shadow: 0 0 0 0 rgba(10, 102, 194, 0); }
}

.post-header {
display: flex;
align-items: center;
margin-bottom: 12px;
}

.post-author-img {
width: 48px;
height: 48px;
border-radius: 50%;
margin-right: 12px;
cursor: pointer;
}

.post-author-info {
flex: 1;
}

.post-author-name {
font-weight: 600;
font-size: 16px;
cursor: pointer;
}

.post-author-name:hover {
text-decoration: underline;
color: var(--primary-color);
}

.post-author-headline {
font-size: 14px;
color: var(--light-text);
margin-bottom: 2px;
}

.post-timestamp {
font-size: 12px;
color: var(--lighter-text);
}

.post-menu-dropdown {
position: relative;
}

.post-menu-btn {
background: transparent;
border: none;
color: var(--light-text);
cursor: pointer;
width: 32px;
height: 32px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
}

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

.post-menu-content {
display: none;
position: absolute;
right: 0;
top: 100%;
background-color: var(--card-background);
min-width: 160px;
box-shadow: var(--shadow);
border-radius: 4px;
z-index: 10;
}

.post-menu-content.show {
display: block;
}

.post-menu-content a {
color: var(--text-color);
padding: 12px 16px;
text-decoration: none;
display: block;
font-size: 14px;
}

.post-menu-content a:hover {
background-color: var(--hover-color);
}

.post-content {
margin-bottom: 12px;
}

.post-content p {
margin-bottom: 12px;
font-size: 14px;
line-height: 1.5;
}

.post-image {
width: 100%;
max-height: 400px;
object-fit: cover;
border-radius: 4px;
margin-bottom: 12px;
}

.post-stats {
display: flex;
justify-content: space-between;
padding: 8px 0;
border-top: 1px solid var(--border-color);
border-bottom: 1px solid var(--border-color);
margin-bottom: 8px;
font-size: 12px;
color: var(--light-text);
}

.post-actions {
display: flex;
justify-content: space-between;
margin-bottom: 12px;
}

.post-action-btn {
flex: 1;
background: transparent;
border: none;
padding: 8px;
font-size: 14px;
color: var(--light-text);
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
border-radius: 4px;
transition: background-color 0.2s ease;
}

.post-action-btn i {
margin-right: 4px;
}

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

.post-action-btn.active {
color: var(--primary-color);
font-weight: 600;
}

.post-comments-section {
margin-top: 8px;
}

.comment-form {
display: flex;
align-items: center;
margin-bottom: 12px;
}

.comment-user-img {
width: 32px;
height: 32px;
border-radius: 50%;
margin-right: 8px;
}

.comment-input {
flex: 1;
border: 1px solid var(--border-color);
border-radius: 20px;
padding: 8px 16px;
font-size: 14px;
}

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

.comments-list {
margin-top: 8px;
}

.comment {
display: flex;
margin-bottom: 12px;
}

.comment-author-img {
width: 32px;
height: 32px;
border-radius: 50%;
margin-right: 8px;
}

.comment-content {
flex: 1;
background-color: var(--hover-color);
border-radius: 0 8px 8px 8px;
padding: 8px 12px;
}

.comment-author-name {
font-weight: 600;
font-size: 14px;
margin-bottom: 2px;
}

.comment-text {
font-size: 14px;
margin-bottom: 4px;
}

.comment-actions {
display: flex;
font-size: 12px;
color: var(--light-text);
}

.comment-like-btn, .comment-reply-btn {
background: transparent;
border: none;
color: var(--light-text);
margin-right: 8px;
cursor: pointer;
font-size: 12px;
padding: 0;
}

.comment-like-btn:hover, .comment-reply-btn:hover {
color: var(--primary-color);
text-decoration: underline;
}

.comment-timestamp {
margin-left: auto;
}

.no-comments {
font-size: 14px;
color: var(--light-text);
font-style: italic;
margin: 8px 0;
}

/* Modal Styles */
.modal {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.5);
z-index: 1000;
overflow-y: auto;
}

.modal-content {
background-color: var(--card-background);
margin: 60px auto;
width: 100%;
max-width: 552px;
border-radius: 8px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
position: relative;
}

.modal-header {
padding: 16px;
border-bottom: 1px solid var(--border-color);
display: flex;
justify-content: space-between;
align-items: center;
}

.modal-header h3 {
font-size: 18px;
font-weight: 600;
}

.close {
color: var(--light-text);
font-size: 24px;
cursor: pointer;
background: transparent;
border: none;
}

.modal-body {
padding: 16px;
}

.post-textarea {
width: 100%;
min-height: 120px;
border: none;
resize: none;
font-family: inherit;
font-size: 16px;
margin-bottom: 16px;
}

.post-textarea:focus {
outline: none;
}

.modal-footer {
padding: 16px;
border-top: 1px solid var(--border-color);
display: flex;
justify-content: flex-end;
}

/* Message Interface */
.message-box {
position: fixed;
bottom: 20px;
right: 20px;
width: 320px;
background-color: var(--card-background);
border-radius: 8px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
z-index: 1000;
overflow: hidden;
transition: all 0.3s ease;
animation: slide-up 0.3s ease;
}

@keyframes slide-up {
from { transform: translateY(100%); opacity: 0; }
to { transform: translateY(0); opacity: 1; }
}

.message-header {
padding: 12px 16px;
background-color: var(--primary-color);
color: white;
display: flex;
justify-content: space-between;
align-items: center;
}

.message-header h3 {
font-size: 16px;
font-weight: 600;
}

.close-message {
background: transparent;
border: none;
color: white;
cursor: pointer;
font-size: 16px;
}

.message-body {
padding: 16px;
}

.message-info {
font-size: 14px;
color: var(--light-text);
margin-bottom: 12px;
}

.message-body textarea {
width: 100%;
height: 80px;
border: 1px solid var(--border-color);
border-radius: 4px;
padding: 8px;
font-family: inherit;
font-size: 14px;
margin-bottom: 12px;
resize: none;
}

.message-body textarea:focus {
outline: none;
border-color: var(--primary-color);
}

.send-message-btn {
background-color: var(--primary-color);
color: white;
border: none;
border-radius: 16px;
padding: 6px 16px;
font-size: 14px;
font-weight: 600;
cursor: pointer;
float: right;
}

.send-message-btn:hover {
background-color: #0d5db9;
}

.message-sent {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 20px 0;
text-align: center;
}

.message-sent i {
font-size: 48px;
color: var(--primary-color);
margin-bottom: 12px;
}

.message-sent p {
font-size: 16px;
font-weight: 600;
}

/* Share Dialog */
.share-dialog {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.5);
z-index: 1000;
display: flex;
align-items: center;
justify-content: center;
animation: fade-in 0.2s ease;
}

@keyframes fade-in {
from { opacity: 0; }
to { opacity: 1; }
}

.share-dialog-content {
background-color: var(--card-background);
width: 100%;
max-width: 400px;
border-radius: 8px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
overflow: hidden;
}

.share-dialog-header {
padding: 16px;
border-bottom: 1px solid var(--border-color);
display: flex;
justify-content: space-between;
align-items: center;
}

.share-dialog-header h3 {
font-size: 18px;
font-weight: 600;
}

.close-share-dialog {
background: transparent;
border: none;
color: var(--light-text);
cursor: pointer;
font-size: 16px;
}

.share-options {
padding: 16px;
}

.share-option {
display: flex;
align-items: center;
width: 100%;
background-color: transparent;
border: none;
border-radius: 4px;
padding: 12px 16px;
margin-bottom: 8px;
font-size: 16px;
text-align: left;
cursor: pointer;
transition: background-color 0.2s ease;
}

.share-option:hover {
background-color: var(--hover-color);
}

.share-option i {
margin-right: 12px;
color: var(--primary-color);
font-size: 20px;
}

.share-success {
display: none;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 32px 16px;
text-align: center;
}

.share-success i {
font-size: 48px;
color: var(--primary-color);
margin-bottom: 16px;
}

.share-success p {
font-size: 18px;
font-weight: 600;
}

.composer-body {
margin-bottom: 16px;
}

.experience-date, .education-date {
font-size: 14px;
color: var(--lighter-text);
}

/* Notification Styles */
.notification {
position: fixed;
bottom: 20px;
left: 50%;
transform: translateX(-50%) translateY(100px);
background-color: var(--card-background);
color: var(--text-color);
padding: 12px 20px;
border-radius: 4px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
display: flex;
align-items: center;
font-size: 14px;
z-index: 1000;
transition: transform 0.3s ease;
}

.notification.show {
transform: translateX(-50%) translateY(0);
}

.notification i {
color: var(--primary-color);
margin-right: 8px;
font-size: 16px;
}

/* Connection Confirmation */
.connection-confirmation {
position: fixed;
top: 20px;
left: 50%;
transform: translateX(-50%) translateY(-100px);
background-color: var(--card-background);
color: var(--text-color);
padding: 12px 20px;
border-radius: 4px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
display: flex;
align-items: center;
font-size: 14px;
z-index: 1000;
transition: transform 0.3s ease;
}

.connection-confirmation.show {
transform: translateX(-50%) translateY(0);
}

.connection-confirmation i {
color: var(--primary-color);
margin-right: 8px;
font-size: 16px;
}

/* Search Results Styles */
.search-results {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.5);
z-index: 1000;
display: flex;
align-items: center;
justify-content: center;
animation: fade-in 0.2s ease;
}

.search-results-header {
padding: 16px;
border-bottom: 1px solid var(--border-color);
display: flex;
justify-content: space-between;
align-items: center;
}

.search-results-header h3 {
font-size: 18px;
font-weight: 600;
}

.close-search {
background: transparent;
border: none;
color: var(--light-text);
cursor: pointer;
font-size: 16px;
}

.search-results-body {
background-color: var(--card-background);
width: 100%;
max-width: 600px;
max-height: 80vh;
border-radius: 8px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
overflow: hidden;
overflow-y: auto;
}

.search-section {
padding: 16px;
border-bottom: 1px solid var(--border-color);
}

.search-section h4 {
font-size: 16px;
font-weight: 600;
margin-bottom: 12px;
}

.search-user-item, .search-post-item {
display: flex;
align-items: center;
padding: 12px;
border-radius: 4px;
cursor: pointer;
transition: background-color 0.2s ease;
margin-bottom: 8px;
}

.search-user-item:hover, .search-post-item:hover {
background-color: var(--hover-color);
}

.search-user-img, .search-author-img {
width: 40px;
height: 40px;
border-radius: 50%;
margin-right: 12px;
}

.search-user-info {
flex: 1;
}

.search-user-name {
font-weight: 600;
font-size: 14px;
}

.search-user-headline {
font-size: 12px;
color: var(--light-text);
}

.search-post-author {
display: flex;
align-items: center;
margin-bottom: 8px;
}

.search-post-author img {
width: 24px;
height: 24px;
border-radius: 50%;
margin-right: 8px;
}

.search-post-content {
font-size: 14px;
color: var(--text-color);
line-height: 1.4;
}

.no-results, .no-suggestions {
font-size: 14px;
color: var(--light-text);
font-style: italic;
padding: 12px 0;
}

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

@media (max-width: 768px) {
    .main-grid {
        grid-template-columns: 1fr;
    }
    
    .profile-sidebar {
        display: none;
    }
    
    .header-container {
        padding: 8px 12px;
    }
    
    .search-bar {
        max-width: 200px;
    }
    
    .main-nav span {
        display: none;
    }
    
    .main-nav li {
        margin: 0;
    }
}
}
