/* Sohbah - Unique Creative Social Media Platform Design */
:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --accent-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --success-gradient: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    
    --primary-color: #667eea;
    --primary-dark: #5568d3;
    --secondary-color: #f5576c;
    --accent-color: #4facfe;
    
    --bg-gradient: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
    --bg-color: #f8f9ff;
    --card-bg: rgba(255, 255, 255, 0.95);
    --glass-bg: rgba(255, 255, 255, 0.7);
    
    --text-primary: #2d3748;
    --text-secondary: #718096;
    --text-light: #a0aec0;
    
    --border-color: rgba(102, 126, 234, 0.2);
    --shadow: 0 4px 6px rgba(102, 126, 234, 0.1);
    --shadow-lg: 0 10px 25px rgba(102, 126, 234, 0.15);
    --shadow-xl: 0 20px 40px rgba(102, 126, 234, 0.2);
    
    --radius: 16px;
    --radius-sm: 12px;
    --radius-lg: 24px;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-color);
    background-image: 
        radial-gradient(at 0% 0%, rgba(102, 126, 234, 0.1) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(245, 87, 108, 0.1) 0px, transparent 50%);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

/* Header - Glass Morphism */
.main-header {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
    height: 56px;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 20px;
    gap: 16px;
    height: 100%;
}

.logo a {
    font-size: 24px;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    letter-spacing: -0.5px;
    white-space: nowrap;
}

.search-bar {
    flex: 1;
    max-width: 500px;
    position: relative;
}

.search-bar input {
    width: 100%;
    padding: 8px 16px;
    border: 2px solid var(--border-color);
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    font-size: 14px;
    transition: all 0.3s ease;
    height: 36px;
}

.search-bar input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

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

.nav-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    text-decoration: none;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    position: relative;
    transition: all 0.3s ease;
    background: transparent;
    width: 44px;
    height: 44px;
}

.nav-item:hover {
    background: var(--bg-gradient);
    color: var(--primary-color);
    transform: translateY(-1px);
}

.nav-item.active {
    background: var(--primary-gradient);
    color: white;
    box-shadow: var(--shadow);
}

.nav-item svg {
    width: 24px;
    height: 24px;
    display: block;
    stroke-width: 2;
}

.nav-item.active svg {
    stroke-width: 2.5;
}

.nav-label {
    display: none;
}

.badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background: var(--secondary-gradient);
    color: white;
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 10px;
    font-weight: 700;
    box-shadow: var(--shadow);
    animation: pulse 2s infinite;
    min-width: 18px;
    text-align: center;
    line-height: 1.3;
    border: 2px solid var(--card-bg);
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.user-menu {
    position: relative;
}

/* Explicitly prevent hover from showing dropdown - only click works */
.user-menu:hover .dropdown-menu {
    display: none !important;
    opacity: 0 !important;
}

.profile-menu-img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid var(--primary-color);
    transition: all 0.3s ease;
    object-fit: cover;
    display: block;
}

.profile-menu-img:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow);
    border-color: var(--primary-dark);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border-radius: var(--radius);
    box-shadow: var(--shadow-xl);
    min-width: 220px;
    display: none;
    z-index: 1000;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border: 1px solid var(--border-color);
    overflow: hidden;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.user-menu.active .dropdown-menu {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 14px 20px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.2s ease;
    border-bottom: 1px solid var(--border-color);
}

.dropdown-menu a:last-child {
    border-bottom: none;
}

.dropdown-menu a:hover {
    background: var(--bg-gradient);
    padding-left: 24px;
}

/* Main Container */
.main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px;
    display: grid;
    grid-template-columns: 280px 1fr 320px;
    gap: 24px;
}

/* Sidebar - Glass Cards */
.left-sidebar, .right-sidebar {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    padding: 20px;
    height: fit-content;
    position: sticky;
    top: 90px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
}

.sidebar-section {
    margin-bottom: 28px;
}

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

.sidebar-section h3 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-color);
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    text-decoration: none;
    color: var(--text-primary);
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    margin-bottom: 6px;
}

.sidebar-item:hover {
    background: var(--bg-gradient);
    transform: translateX(5px);
    box-shadow: var(--shadow);
}

.sidebar-item img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    object-fit: cover;
    display: block;
    flex-shrink: 0;
    box-shadow: var(--shadow);
}

.sidebar-item > span:not(.badge) {
    font-size: 14px;
    font-weight: 500;
    flex: 1;
    line-height: 1.4;
}

/* For emoji icons in sidebar */
.sidebar-item > span:first-child:not(img) {
    font-size: 20px;
    flex-shrink: 0;
}

/* Feed Container */
.feed-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Create Post Box - Floating Card */
.create-post-box {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.create-post-box:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-2px);
}

.post-input {
    display: flex;
    gap: 16px;
}

.profile-thumb {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
    object-fit: cover;
    display: block;
    flex-shrink: 0;
    box-shadow: var(--shadow);
}

.post-input form {
    flex: 1;
}

.post-input textarea {
    width: 100%;
    border: 2px solid var(--border-color);
    background: var(--bg-color);
    resize: none;
    font-size: 16px;
    padding: 16px;
    font-family: inherit;
    border-radius: var(--radius);
    transition: all 0.3s ease;
    min-height: 100px;
}

.post-input textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    background: white;
}

.post-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 2px solid var(--border-color);
}

.action-btn {
    background: transparent;
    border: 2px solid var(--border-color);
    padding: 10px 20px;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.action-btn:hover {
    background: var(--bg-gradient);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.photo-btn {
    cursor: pointer;
}

.photo-btn input {
    display: none;
}

.media-preview {
    margin-top: 16px;
    border-radius: var(--radius);
    overflow: hidden;
}

.media-preview img,
.media-preview video {
    max-width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* Post Card - Modern Design */
.post-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.post-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
}

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

.post-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
    object-fit: cover;
}

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

.post-user-info strong {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.post-time {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

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

.post-content p {
    margin-bottom: 16px;
    line-height: 1.8;
    font-size: 15px;
    color: var(--text-primary);
}

.post-media {
    width: 100%;
    border-radius: var(--radius);
    margin-top: 16px;
    box-shadow: var(--shadow);
    max-height: 500px;
    object-fit: cover;
}

.post-stats {
    display: flex;
    gap: 24px;
    padding: 16px 0;
    border-top: 2px solid var(--border-color);
    border-bottom: 2px solid var(--border-color);
    margin: 16px 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
}

.post-actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    position: relative;
}

.post-actions .action-btn {
    flex: 1;
    text-align: center;
    justify-content: center;
    position: relative;
}

.post-actions .like-wrapper {
    flex: 1;
    position: relative;
}

.post-actions .action-btn.active {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
}

/* Reaction System */
.like-wrapper {
    position: relative;
    display: inline-block;
}

.like-wrapper .reaction-picker {
    display: none !important;
}

.like-wrapper .reaction-picker.show {
    display: flex !important;
}

.reaction-icon {
    font-size: 18px;
    display: inline-block;
    transition: transform 0.2s ease;
}

.like-btn.active .reaction-icon {
    animation: reactionPop 0.3s ease;
}

.reaction-text {
    font-size: 14px;
}

.reaction-picker {
    position: absolute;
    bottom: calc(100% + 16px);
    left: 50%;
    transform: translateX(-50%) translateY(10px) scale(0.8);
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border-radius: 50px;
    padding: 8px 6px;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
    display: none;
    flex-direction: row;
    gap: 2px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 1000;
    pointer-events: none;
    white-space: nowrap;
}

.reaction-picker.show {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(-50%) translateY(0) scale(1) !important;
    pointer-events: all !important;
}

.reaction-picker::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid var(--card-bg);
}

.reaction-item {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    background: transparent;
    margin: 0 2px;
}

.reaction-item:hover {
    transform: scale(1.4) translateY(-10px);
    z-index: 10;
    background: rgba(255, 255, 255, 0.1);
}

.reaction-item:active {
    transform: scale(1.2) translateY(-5px);
}

.reaction-item:hover .reaction-emoji {
    animation: reactionBounce 0.4s ease;
}

.reaction-emoji {
    font-size: 36px;
    display: block;
    line-height: 1;
    transition: transform 0.2s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.reaction-item[data-reaction="like"]:hover .reaction-emoji {
    transform: rotate(-15deg);
}

.reaction-item[data-reaction="love"]:hover .reaction-emoji {
    animation: heartBeat 0.6s ease;
}

.reaction-item[data-reaction="haha"]:hover .reaction-emoji {
    animation: shake 0.5s ease;
}

.reaction-item[data-reaction="wow"]:hover .reaction-emoji {
    animation: zoomIn 0.3s ease;
}

.reaction-item[data-reaction="sad"]:hover .reaction-emoji {
    animation: fadeDown 0.4s ease;
}

.reaction-item[data-reaction="angry"]:hover .reaction-emoji {
    animation: shake 0.3s ease;
    transform: scale(1.1);
}

/* Reaction Animations */
@keyframes reactionPop {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.4) rotate(10deg);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes reactionBounce {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    25% {
        transform: translateY(-10px) scale(1.2);
    }
    50% {
        transform: translateY(-5px) scale(1.1);
    }
    75% {
        transform: translateY(-8px) scale(1.15);
    }
}

@keyframes heartBeat {
    0%, 100% {
        transform: scale(1);
    }
    10%, 30% {
        transform: scale(1.3);
    }
    20%, 40% {
        transform: scale(1.1);
    }
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0) rotate(0deg);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-3px) rotate(-5deg);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(3px) rotate(5deg);
    }
}

@keyframes zoomIn {
    0% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    100% {
        transform: scale(1.2);
        opacity: 1;
    }
}

@keyframes fadeDown {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    50% {
        transform: translateY(5px);
        opacity: 0.7;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.post-comments {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 2px solid var(--border-color);
}

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

.comment-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    object-fit: cover;
}

.comment-content {
    flex: 1;
    background: var(--bg-gradient);
    padding: 12px 16px;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}

.comment-content strong {
    font-size: 14px;
    font-weight: 700;
    margin-right: 8px;
    color: var(--primary-color);
}

.comment-content p {
    font-size: 14px;
    margin: 6px 0;
    line-height: 1.6;
}

.comment-time {
    font-size: 12px;
    color: var(--text-secondary);
}

.comment-form {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.comment-form input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    background: var(--bg-color);
    border-radius: 30px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.comment-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.comment-form button {
    padding: 12px 24px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.comment-form button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Profile Page */
.profile-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 24px;
}

.profile-header {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
    margin-bottom: 24px;
}

.cover-photo {
    height: 350px;
    background: var(--primary-gradient);
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.cover-photo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.3) 0%, rgba(118, 75, 162, 0.3) 100%);
}

.edit-cover-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    z-index: 10;
}

.edit-cover-btn:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.profile-info {
    padding: 24px;
    display: flex;
    gap: 24px;
}

.profile-picture-large {
    position: relative;
    margin-top: -100px;
    z-index: 5;
    width: 180px;
    height: 180px;
}

.profile-picture-large::before {
    display: none;
}

.profile-picture-large img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 6px solid var(--card-bg);
    background: transparent;
    box-shadow: var(--shadow-xl);
    object-fit: cover;
    display: block;
}

.edit-profile-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    padding: 10px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
}

.edit-profile-btn:hover {
    transform: scale(1.1);
}

.profile-details {
    flex: 1;
    margin-top: 80px;
}

.profile-details h1 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 12px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.verified-badge {
    display: inline-block;
    background: var(--success-gradient);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    margin-left: 12px;
    box-shadow: var(--shadow);
}

.profile-bio {
    color: var(--text-secondary);
    margin: 16px 0;
    font-size: 16px;
    line-height: 1.8;
}

.profile-stats {
    display: flex;
    gap: 32px;
    margin: 20px 0;
    color: var(--text-secondary);
    font-weight: 600;
}

.profile-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    letter-spacing: 0.3px;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--card-bg);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-gradient);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-block {
    width: 100%;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

/* Messages */
.messages-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 24px;
    height: calc(100vh - 100px);
}

.conversations-list {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
}

.messages-header {
    padding: 20px;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-gradient);
}

.messages-header h2 {
    font-size: 20px;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.conversation-item {
    display: flex;
    gap: 16px;
    padding: 16px 20px;
    text-decoration: none;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
}

.conversation-item:hover {
    background: var(--bg-gradient);
    transform: translateX(5px);
}

.conversation-item.active {
    background: var(--primary-gradient);
    color: white;
}

.conversation-item img {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
    object-fit: cover;
}

.conversation-info {
    flex: 1;
}

.conversation-info strong {
    display: block;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}

.conversation-info p {
    font-size: 13px;
    opacity: 0.8;
    margin: 4px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.conversation-time {
    font-size: 11px;
    opacity: 0.7;
    font-weight: 500;
}

.unread-badge {
    position: absolute;
    top: 16px;
    right: 20px;
    background: var(--secondary-gradient);
    color: white;
    border-radius: 12px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    box-shadow: var(--shadow);
}

.messages-chat {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
}

.chat-header {
    padding: 20px;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--bg-gradient);
}

.chat-header img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
    object-fit: cover;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: var(--bg-color);
}

.message-item {
    display: flex;
    gap: 12px;
    max-width: 75%;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-item.sent {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.message-item img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    object-fit: cover;
}

.message-content {
    background: var(--card-bg);
    padding: 12px 16px;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

.message-item.sent .message-content {
    background: var(--primary-gradient);
    color: white;
    border: none;
}

.message-content p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
}

.message-time {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 6px;
    opacity: 0.7;
}

.message-item.sent .message-time {
    color: rgba(255, 255, 255, 0.9);
}

.chat-input-form {
    padding: 20px;
    border-top: 2px solid var(--border-color);
    display: flex;
    gap: 12px;
    background: var(--card-bg);
}

.chat-input-form input {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid var(--border-color);
    background: var(--bg-color);
    border-radius: 30px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.chat-input-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.chat-input-form button {
    padding: 14px 28px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.chat-input-form button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.chat-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-secondary);
    font-size: 18px;
}

/* Notifications */
.notifications-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 24px;
}

.notifications-container h1 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 24px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.notifications-list {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
}

.notification-item {
    display: flex;
    gap: 16px;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.notification-item:hover {
    background: var(--bg-gradient);
    transform: translateX(5px);
}

.notification-item.unread {
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.1) 0%, transparent 100%);
    border-left: 4px solid var(--primary-color);
}

.notification-item img {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
    object-fit: cover;
}

.notification-content {
    flex: 1;
}

.notification-content p {
    margin-bottom: 6px;
    line-height: 1.6;
}

.notification-content a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
}

.notification-content a:hover {
    text-decoration: underline;
}

.notification-time {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

.notification-link {
    padding: 10px 20px;
    background: var(--primary-gradient);
    color: white;
    text-decoration: none;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.notification-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Auth Pages */
.auth-page {
    background: var(--primary-gradient);
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.auth-page::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    top: -250px;
    right: -250px;
    animation: float 20s infinite;
}

.auth-page::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    bottom: -200px;
    left: -200px;
    animation: float 15s infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(30px, 30px) rotate(180deg); }
}

.auth-container {
    width: 100%;
    max-width: 450px;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.auth-box {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-header h1 {
    font-size: 36px;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
}

.auth-header p {
    color: var(--text-secondary);
    font-size: 16px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border-color);
    background: var(--bg-color);
    border-radius: var(--radius);
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    background: white;
}

.auth-footer {
    margin-top: 28px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.auth-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.auth-footer a:hover {
    text-decoration: underline;
    transform: translateX(3px);
}

.alert {
    padding: 16px 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-weight: 500;
    border: 2px solid;
}

.alert-error {
    background: rgba(245, 87, 108, 0.1);
    color: #c53030;
    border-color: rgba(245, 87, 108, 0.3);
}

.alert-success {
    background: rgba(67, 233, 123, 0.1);
    color: #22543d;
    border-color: rgba(67, 233, 123, 0.3);
}

.empty-state {
    text-align: center;
    padding: 60px 40px;
    color: var(--text-secondary);
    font-size: 18px;
}

/* Widgets */
.sidebar-widget {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

.sidebar-widget h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.friend-request-item,
.suggested-item {
    display: flex;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
    align-items: center;
}

.friend-request-item:last-child,
.suggested-item:last-child {
    border-bottom: none;
}

.friend-request-item img,
.suggested-item img {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
    object-fit: cover;
}

.request-info,
.suggested-info {
    flex: 1;
}

.request-info strong,
.suggested-info strong {
    display: block;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.request-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

/* Responsive */
@media (max-width: 1200px) {
    .main-container {
        grid-template-columns: 240px 1fr 280px;
        gap: 20px;
    }
}

@media (max-width: 968px) {
    .main-container {
        grid-template-columns: 1fr;
        padding: 16px;
    }
    
    .left-sidebar,
    .right-sidebar {
        display: none;
    }
    
    .messages-container {
        grid-template-columns: 1fr;
        height: auto;
    }
    
    .conversations-list {
        max-height: 400px;
        margin-bottom: 20px;
    }
    
    .header-container {
        flex-wrap: wrap;
    }
    
    .search-bar {
        order: 3;
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 640px) {
    .main-header {
        height: 50px;
    }
    
    .header-container {
        padding: 4px 12px;
    }
    
    .header-nav {
        gap: 4px;
    }
    
    .nav-item {
        padding: 6px;
        width: 40px;
        height: 40px;
    }
    
    .nav-item svg {
        width: 20px;
        height: 20px;
    }
    
    .logo a {
        font-size: 20px;
    }
    
    .profile-menu-img {
        width: 32px;
        height: 32px;
    }
    
    .profile-info {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-picture-large {
        margin-top: -80px;
        align-self: center;
    }
    
    .profile-details {
        margin-top: 20px;
    }
}

/* Loading Animation */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.loading {
    animation: shimmer 2s infinite;
    background: linear-gradient(to right, #f0f0f0 8%, #e0e0e0 18%, #f0f0f0 33%);
    background-size: 1000px 100%;
}
