/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --accent-color: #38bdf8;
    --text-color: #ffffff;
    --text-muted: #b8bcc8;
    --background: #181C28;
    --card-background: #1e293b;
    --white: #ffffff;
    --border-color: rgba(102, 126, 234, 0.2);
    --hover-color: rgba(51, 65, 85, 0.5);
    --danger-color: #dc3545;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --dark-bg: #0a0e1a;
    --darker-bg: #1a1f2e;
}

html, body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color) !important;
    background: linear-gradient(-45deg, #0a0e1a, #1a1f2e, #0f1419, #1e2538) !important;
    background-size: 400% 400% !important;
    animation: gradientShift 15s ease infinite !important;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(118, 75, 162, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(56, 189, 248, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

.floating-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.particle {
    position: absolute;
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 50%;
    opacity: 0.6;
    animation: float 20s infinite linear;
    pointer-events: none;
}

@keyframes float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* Layout */
.main-container {
    display: grid;
    grid-template-columns: 250px 1fr 300px;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px 20px;
}

@media (max-width: 1024px) {
    .main-container {
        grid-template-columns: 1fr;
        padding-top: 70px;
    }
    
    .sidebar,
    .right-sidebar {
        display: none;
    }
}

/* Header */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(24, 28, 40, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(102, 126, 234, 0.3) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
    z-index: 1000;
    padding: 0;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
}

.logo {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    text-decoration: none !important;
    border: none !important;
    outline: none !important;
}

.logo:link,
.logo:visited,
.logo:hover,
.logo:active {
    text-decoration: none !important;
    border: none !important;
    outline: none !important;
}

.paw-icon {
    width: 26px !important;
    height: 26px !important;
    fill: white !important;
    transition: all 0.3s ease !important;
    flex-shrink: 0 !important;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3)) !important;
}

.logo:hover .paw-icon {
    transform: rotate(8deg) scale(1.08) !important;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.4)) !important;
}

.logo h2 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 30%, #38bdf8 60%, #667eea 100%) !important;
    background-size: 300% 300% !important;
    animation: heroTextGlow 4s ease infinite !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    text-decoration: none !important;
    font-weight: 900 !important;
    font-size: 1.6rem !important;
    margin: 0 !important;
    line-height: 1 !important;
    border: none !important;
    outline: none !important;
}

.logo h2:link,
.logo h2:visited,
.logo h2:hover,
.logo h2:active {
    text-decoration: none !important;
    border: none !important;
}

@keyframes heroTextGlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.logo a {
    text-decoration: none !important;
    border: none !important;
    outline: none !important;
}

/* Logo Image Styling */
.logo-image {
    height: 45px !important; /* Larger height for more prominence */
    width: auto !important; /* Maintain aspect ratio (will be ~141px wide based on 1145x364 ratio) */
    object-fit: contain !important;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3)) !important;
    transition: all 0.3s ease !important;
}

.logo:hover .logo-image {
    transform: scale(1.05) !important;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.4)) !important;
}

/* Additional underline removal for all logo elements */
.logo *,
.logo *:link,
.logo *:visited,
.logo *:hover,
.logo *:active {
    text-decoration: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
}

.search-container {
    position: relative;
    max-width: 400px;
    width: 100%;
}

.search-container input {
    width: 100%;
    padding: 10px 40px 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    background: var(--background);
    font-size: 14px;
}

.search-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    border-radius: 50%;
    color: var(--text-muted);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    background: var(--hover-color);
    color: var(--primary-color);
}

.nav-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.nav-avatar:hover {
    border-color: rgba(102, 126, 234, 0.6);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
}

/* Sidebar */
.sidebar {
    background: rgba(24, 28, 40, 0.7) !important;
    border: 1px solid rgba(102, 126, 234, 0.2) !important;
    border-radius: 20px !important;
    backdrop-filter: blur(20px) !important;
    padding: 20px;
    height: fit-content;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.sidebar:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

.user-profile-card {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.user-points {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 8px;
    padding: 6px 12px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 15px;
    color: var(--accent-color);
    font-size: 0.85rem;
    font-weight: 500;
}

.profile-avatar-link {
    text-decoration: none;
    display: inline-block;
    border-radius: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
    margin-bottom: 15px;
}

.profile-avatar-link:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.15);
}

.profile-avatar-link .avatar {
    transition: all 0.3s ease;
}

.profile-avatar-link:hover .avatar {
    border: 2px solid rgba(102, 126, 234, 0.3);
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 20px;
    object-fit: cover;
    margin: 0 auto 15px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 48px;
    color: white;
    text-transform: uppercase;
    border: none;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.profile-avatar.initial-avatar {
    background: var(--avatar-bg, #4a5568);
}

.username {
    color: var(--text-muted);
    margin-bottom: 15px;
}

.stats {
    display: flex;
    justify-content: space-around;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-weight: bold;
    font-size: 1.1rem;
    color: var(--text-color);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.sidebar-nav {
    margin-bottom: 20px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 10px;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.2s ease;
    margin-bottom: 5px;
}

.sidebar-link:hover,
.sidebar-link.active {
    background: var(--hover-color);
    color: var(--primary-color);
}

.sidebar-link i {
    width: 20px;
    font-size: 1.1rem;
}

/* Enhanced Sidebar Stats */
.stats-container {
    margin: 15px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-card {
    background: rgba(102, 126, 234, 0.08);
    border: 1px solid rgba(102, 126, 234, 0.15);
    border-radius: 10px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    position: relative;
}

.stat-card:hover {
    background: rgba(102, 126, 234, 0.12);
    border-color: rgba(102, 126, 234, 0.25);
    transform: translateY(-1px);
}

.stat-card.clickable {
    cursor: pointer;
}

.stat-card.clickable:hover {
    background: rgba(102, 126, 234, 0.15);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.stat-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.stat-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.stat-number {
    font-size: 1.1rem;
    font-weight: 700;
    color: #e0e0e0;
    line-height: 1.1;
}

.stat-label {
    font-size: 0.75rem;
    color: #a0aec0;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.stat-arrow {
    color: #667eea;
    font-size: 0.8rem;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.stat-card.clickable:hover .stat-arrow {
    opacity: 1;
    transform: translateX(3px);
}

/* Animation for stat cards */
.stat-card {
    animation: slideInLeft 0.5s ease-out forwards;
    opacity: 0;
    transform: translateX(-20px);
}

.stat-card:nth-child(1) {
    animation-delay: 0.1s;
}

.stat-card:nth-child(2) {
    animation-delay: 0.2s;
}

.stat-card:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive stats */
@media (max-width: 768px) {
    .stats-container {
        margin: 15px 0;
        gap: 10px;
    }
    
    .stat-card {
        padding: 12px;
        gap: 12px;
    }
    
    .stat-icon {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .stat-number {
        font-size: 1.1rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
}

/* Content Area */
.content {
    background: rgba(24, 28, 40, 0.7) !important;
    border: 1px solid rgba(102, 126, 234, 0.2) !important;
    border-radius: 20px !important;
    backdrop-filter: blur(20px) !important;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

.content:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

.feed {
    padding: 20px;
}

/* Create Post Card */
.create-post-card {
    background: rgba(24, 28, 40, 0.7) !important;
    border: 1px solid rgba(102, 126, 234, 0.2) !important;
    border-radius: 20px !important;
    padding: 20px;
    margin-bottom: 20px;
    backdrop-filter: blur(20px) !important;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

.create-post-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    transition: left 0.8s;
    z-index: 1;
}

.create-post-card:hover::before {
    left: 100%;
}

.create-post-card:hover {
    transform: translateY(-8px) scale(1.02) !important;
    border-color: rgba(102, 126, 234, 0.5) !important;
    box-shadow: 
        0 20px 60px rgba(102, 126, 234, 0.2),
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}

.create-post-header {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
}

.avatar {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    object-fit: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 18px;
    color: white;
    text-transform: uppercase;
    border: none;
}

.avatar.initial-avatar {
    background: var(--avatar-bg, #4a5568);
}

.create-post-form {
    flex: 1;
}

.create-post-form textarea {
    width: 100%;
    border: none;
    outline: none;
    resize: vertical;
    font-family: inherit;
    font-size: 16px;
    line-height: 1.4;
    background: transparent;
    color: var(--text-color);
}

.create-post-form textarea::placeholder {
    color: var(--text-muted);
}

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

.post-options {
    display: flex;
    gap: 15px;
}

.btn-icon {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

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

/* Report Button Styling */
.report-btn {
    color: var(--text-muted) !important;
    transition: all 0.3s ease !important;
}

.report-btn:hover {
    color: #dc3545 !important;
    background: rgba(220, 53, 69, 0.1) !important;
    transform: scale(1.05) !important;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    outline: none;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border: none !important;
    border-radius: 15px !important;
    padding: 12px 24px !important;
    font-weight: 600 !important;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    position: relative;
    overflow: hidden;
    color: var(--white) !important;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.05) !important;
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4) !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

.btn-secondary {
    background: var(--text-muted);
    color: var(--white);
}

.btn-secondary:hover {
    background: #555;
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

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

.btn-full {
    width: 100%;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

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

/* Post Items */
.post-item {
    background: rgba(24, 28, 40, 0.7) !important;
    border: 1px solid rgba(102, 126, 234, 0.2) !important;
    border-radius: 20px !important;
    margin-bottom: 20px;
    backdrop-filter: blur(20px) !important;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

.post-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    transition: left 0.8s;
    z-index: 1;
}

.post-item:hover::before {
    left: 100%;
}

.post-item:hover {
    transform: translateY(-8px) scale(1.02) !important;
    border-color: rgba(102, 126, 234, 0.5) !important;
    box-shadow: 
        0 20px 60px rgba(102, 126, 234, 0.2),
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.post-user-info {
    display: flex;
    gap: 12px;
}

.post-avatar {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    object-fit: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 20px;
    color: white;
    text-transform: uppercase;
    border: none;
}

.post-avatar.initial-avatar {
    background: var(--avatar-bg, #4a5568);
}

.post-meta {
    display: flex;
    flex-direction: column;
}

.post-display-name {
    font-weight: 600;
    color: var(--text-color);
    text-decoration: none;
}

.post-username,
.post-time {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.post-content {
    padding: 0 20px 15px;
}

.post-content p {
    margin-bottom: 10px;
    line-height: 1.5;
}

.post-image {
    margin-top: 15px;
    border-radius: 10px;
    overflow: hidden;
}

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

.post-footer {
    padding: 15px 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.post-stats {
    display: flex;
    gap: 20px;
}

.post-metadata {
    display: flex;
    gap: 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.post-timestamp,
.post-file-size {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.post-timestamp:hover,
.post-file-size:hover {
    background: rgba(102, 126, 234, 0.1);
    border-color: rgba(102, 126, 234, 0.2);
    color: var(--primary-color);
}

.post-timestamp i,
.post-file-size i {
    font-size: 0.8rem;
    opacity: 0.8;
}

.engagement-badge {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 8px;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
    animation: pulse 2s infinite;
}

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

.like-btn.liked {
    color: #e74c3c;
}

/* Comments */
.comments-section {
    border-top: 1px solid var(--border-color);
    padding: 15px 20px;
}

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

.comment-reply {
    margin-left: 30px;
    margin-top: 10px;
    padding-left: 15px;
    border-left: 2px solid var(--border-color);
}

.comment-actions {
    margin-top: 5px;
    display: flex;
    gap: 10px;
}

.comment-actions .btn-link {
    color: var(--text-muted);
    font-size: 0.85rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px 0;
    transition: color 0.2s ease;
}

.comment-actions .btn-link:hover {
    color: var(--primary-color);
}

.comment-replies {
    margin-top: 10px;
    margin-left: 20px;
    border-left: 2px solid rgba(102, 126, 234, 0.3);
    padding-left: 15px;
}

.comment-reply {
    margin-top: 10px;
}

/* Nested reply styling - progressively lighter borders for deeper nesting */
.comment-replies .comment-replies {
    border-left-color: rgba(102, 126, 234, 0.2);
    margin-left: 15px;
}

.comment-replies .comment-replies .comment-replies {
    border-left-color: rgba(102, 126, 234, 0.15);
    margin-left: 10px;
}

.comment-replies .comment-replies .comment-replies .comment-replies {
    border-left-color: rgba(102, 126, 234, 0.1);
    margin-left: 8px;
}

.reply-indicator {
    display: block;
    font-size: 0.85rem;
    color: rgba(102, 126, 234, 0.8);
    margin-bottom: 2px;
    font-style: italic;
}

.reply-form {
    margin-top: 10px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.reply-input-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.reply-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 15px;
    background: var(--background);
    color: var(--text-color);
    outline: none;
    font-size: 14px;
}

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

.reply-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.comment-avatar {
    width: 35px;
    height: 35px;
    border-radius: 8px;
    object-fit: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    color: white;
    text-transform: uppercase;
    border: none;
}

.comment-avatar.initial-avatar {
    background: var(--avatar-bg, #4a5568);
}

.comment-content {
    flex: 1;
}

.comment-header {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 2px;
}

.comment-author {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-color);
    text-decoration: none;
}

.comment-time {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.comment-text {
    font-size: 0.9rem;
    line-height: 1.4;
}

.comment-form {
    margin-top: 15px;
}

.comment-input-container {
    display: flex;
    gap: 10px;
    align-items: center;
}

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

/* Right Sidebar */
.right-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 300px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    position: sticky;
    top: 90px;
}

.right-sidebar::-webkit-scrollbar {
    width: 4px;
}

.right-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.right-sidebar::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.3);
    border-radius: 2px;
}

.right-sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(102, 126, 234, 0.5);
}

.suggestions-card,
.trending-card {
    background: rgba(24, 28, 40, 0.7) !important;
    border: 1px solid rgba(102, 126, 234, 0.2) !important;
    border-radius: 20px !important;
    padding: 20px;
    backdrop-filter: blur(20px) !important;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

.suggestions-card:hover,
.trending-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

.trending-card h3 {
    color: #667eea;
    font-size: 1.1rem;
    margin-bottom: 15px;
    text-align: center;
    font-weight: 600;
}

.trending-hashtags,
.trending-users {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hashtag-item,
.user-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.hashtag-item:hover,
.user-item:hover {
    background: rgba(102, 126, 234, 0.2);
    transform: translateX(5px);
}

.hashtag-name,
.user-name {
    color: #e0e0e0;
    font-weight: 500;
    cursor: pointer;
}

.hashtag-count,
.user-stats {
    color: #667eea;
    font-size: 0.9rem;
}

.user-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin-right: 8px;
}

.user-info {
    display: flex;
    align-items: center;
    flex: 1;
}

/* Mention Styling */
.mention-link {
    color: #38bdf8;
    font-weight: 600;
    text-decoration: none;
    background: rgba(56, 189, 248, 0.1);
    padding: 1px 4px;
    border-radius: 3px;
    transition: all 0.2s ease;
}

.mention-link:hover {
    background: rgba(56, 189, 248, 0.2);
    color: #0284c7;
    text-decoration: none;
}

.mention-invalid {
    color: var(--text-muted);
    font-weight: 500;
}

/* Hashtag Styling */
.hashtag-box {
    display: inline-block;
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    padding: 3px 8px;
    margin: 1px 2px;
    border: 2px solid #667eea;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.hashtag-box:hover {
    background: rgba(102, 126, 234, 0.2);
    border-color: #5a67d8;
    color: #5a67d8;
    text-decoration: none;
    transform: translateY(-1px);
}

.suggestions-card h3,
.trending-card h3 {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.suggestion-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.suggestion-info {
    flex: 1;
}

.suggestion-name {
    font-weight: 600;
    color: var(--text-color);
    text-decoration: none;
    display: block;
    margin-bottom: 2px;
}

.suggestion-username,
.suggestion-stats {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.trending-item {
    padding: 8px 0;
}

.trending-topic {
    font-weight: 600;
    margin-bottom: 2px;
}

.trending-count {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Profile Page */
.profile-container {
    background: transparent;
}

.profile-header {
    position: relative;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    backdrop-filter: none !important;
    overflow: visible;
    transition: none !important;
    box-shadow: none !important;
    margin-bottom: 40px;
}

.profile-header:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

.profile-cover {
    height: 0px;
    background: transparent;
    position: relative;
    display: none;
}

.profile-info {
    padding: 20px;
    position: relative;
    margin-top: 20px;
    z-index: 2;
    text-align: center;
}

.profile-avatar-section {
    position: relative;
    display: inline-block;
}

.profile-avatar-large {
    width: 220px;
    height: 220px;
    border-radius: 30px !important;
    object-fit: cover;
    border: none !important;
    background: var(--background);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 88px;
    color: white;
    text-transform: uppercase;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.profile-avatar-large.initial-avatar {
    background: var(--avatar-bg, #4a5568);
}

.edit-profile-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--white);
    border: 2px solid var(--white);
}

.profile-details {
    margin-top: 15px;
}

.profile-names h1 {
    margin-bottom: 5px;
    color: var(--text-color);
}

.username {
    color: var(--text-muted);
}

.profile-bio {
    margin: 15px 0;
    line-height: 1.5;
    color: var(--text-color);
}

.profile-stats {
    display: flex;
    gap: 15px;
    margin: 25px 0;
    justify-content: center;
}

.profile-stats .stat-item {
    background: rgba(102, 126, 234, 0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(102, 126, 234, 0.15);
    border-radius: 16px;
    padding: 20px 25px;
    min-width: 120px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.profile-stats .stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    transition: left 0.6s ease;
}

.profile-stats .stat-item:hover::before {
    left: 100%;
}

.profile-stats .stat-item:hover {
    background: rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.3);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
}

.profile-stats .stat-item.clickable {
    cursor: pointer;
}

.profile-stats .stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #e0e0e0;
    margin-bottom: 5px;
    display: block;
    position: relative;
    z-index: 1;
}

.profile-stats .stat-label {
    font-size: 0.85rem;
    color: #a0aec0;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1;
}

.profile-actions {
    display: flex;
    justify-content: center;
    margin-top: 25px;
}

.profile-actions .btn {
    background: rgba(102, 126, 234, 0.15);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(102, 126, 234, 0.25);
    border-radius: 16px;
    padding: 12px 30px;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    min-width: 150px;
}

.profile-actions .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.2), transparent);
    transition: left 0.6s ease;
}

.profile-actions .btn:hover::before {
    left: 100%;
}

.profile-actions .btn:hover {
    background: rgba(102, 126, 234, 0.25);
    border-color: rgba(102, 126, 234, 0.4);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
}

.profile-actions .btn i {
    margin-right: 8px;
    position: relative;
    z-index: 1;
}

.profile-actions .btn-primary {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
    color: #e0e0e0;
}

.profile-actions .btn-secondary {
    background: rgba(156, 163, 175, 0.15);
    border-color: rgba(156, 163, 175, 0.25);
    color: #a0aec0;
}

.profile-actions .btn-secondary:hover {
    background: rgba(156, 163, 175, 0.25);
    border-color: rgba(156, 163, 175, 0.4);
}

.profile-tabs {
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(18, 21, 31, 0.8);
    border-radius: 20px 20px 0 0;
    padding: 0;
}

.profile-content {
    margin-top: 20px;
    background: rgba(24, 28, 40, 0.7) !important;
    border: 1px solid rgba(102, 126, 234, 0.2) !important;
    border-radius: 20px !important;
    backdrop-filter: blur(20px) !important;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

.profile-content:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

.tab-btn {
    flex: 1;
    padding: 15px 20px;
    border: none;
    background: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
    position: relative;
    border-radius: 15px 15px 0 0;
    font-size: 14px;
    font-weight: 500;
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-color);
}

.tab-btn.active {
    color: var(--text-color);
    border-bottom-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.08);
}

.tab-content {
    display: none;
    padding: 20px;
    background: transparent;
    min-height: 200px;
}

.tab-content.active {
    display: block;
}

.posts-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.no-posts {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.no-posts i {
    color: rgba(102, 126, 234, 0.4);
    margin-bottom: 20px;
}

.no-posts h3 {
    color: var(--text-color);
    margin-bottom: 10px;
}

.no-posts a {
    color: var(--primary-color);
    text-decoration: none;
}

.no-posts a:hover {
    text-decoration: underline;
}

.no-posts i {
    margin-bottom: 15px;
    color: var(--border-color);
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.media-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.media-item:hover {
    transform: translateY(-2px);
    border-color: rgba(102, 126, 234, 0.3);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

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

.media-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    opacity: 0;
    transition: opacity 0.2s ease;
    color: var(--white);
}

.media-item:hover .media-overlay {
    opacity: 1;
}

/* Auth Pages */
.auth-page {
    background: linear-gradient(-45deg, #0a0e1a, #1a1f2e, #0f1419, #1e2538) !important;
    background-size: 400% 400% !important;
    animation: gradientShift 15s ease infinite !important;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow-x: hidden;
}

.auth-page::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(118, 75, 162, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(56, 189, 248, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

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

.auth-card {
    background: rgba(24, 28, 40, 0.9) !important;
    border: 1px solid rgba(102, 126, 234, 0.2) !important;
    backdrop-filter: blur(20px) !important;
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.auth-card:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 25px 70px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

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

.auth-header h1 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 30%, #38bdf8 60%, #667eea 100%);
    background-size: 300% 300%;
    animation: heroTextGlow 4s ease infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    font-size: 2.5rem;
    font-weight: 700;
}

.auth-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.auth-form {
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-size: 16px;
    outline: none;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-color);
    transition: all 0.3s ease;
}

.form-group input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    background: rgba(255, 255, 255, 0.08);
}

.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-size: 16px;
    outline: none;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-color);
    transition: all 0.3s ease;
    resize: vertical;
    font-family: inherit;
}

.form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    background: rgba(255, 255, 255, 0.08);
}

.form-group input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 172, 254, 0.1);
}

.auth-links {
    text-align: center;
}

.auth-links a {
    color: var(--primary-color);
    text-decoration: none;
}

/* Alerts */
.alert {
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.alert-error {
    background: rgba(220, 53, 69, 0.1);
    color: #ff6b6b;
    border-color: rgba(220, 53, 69, 0.2);
}

.alert-success {
    background: rgba(40, 167, 69, 0.1);
    color: #51cf66;
    border-color: rgba(40, 167, 69, 0.2);
}

/* SIMPLE RELIABLE DROPDOWNS */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    color: var(--text-muted);
    font-size: 16px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dropdown-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    min-width: 160px;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    margin-top: 4px;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-item {
    display: block;
    width: 100%;
    padding: 12px 16px;
    margin: 0;
    border: none;
    background: transparent;
    color: var(--text-color);
    text-align: left;
    cursor: pointer;
    font-size: 14px;
    font-family: inherit;
    text-decoration: none;
    line-height: 1.4;
    border-radius: 4px;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.dropdown-item i {
    margin-right: 8px;
    width: 16px;
}

.delete-post {
    color: #dc3545;
}

.delete-post:hover {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

/* Developer Badge */
.user-badges {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 8px;
}

.developer-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.developer-badge i {
    font-size: 10px;
}

.developer-badge:hover {
    transform: scale(1.05);
    transition: transform 0.2s ease;
}

/* Profile page badge styling */
.profile-names h1 .user-badges {
    margin-left: 12px;
}

.profile-names .developer-badge {
    font-size: 12px;
    padding: 3px 10px;
}

/* Post meta badge styling */
.post-meta .user-badges {
    margin-left: 6px;
}

/* Comment author badge styling */
.comment-header .user-badges {
    margin-left: 6px;
}

.comment-header .developer-badge {
    font-size: 10px;
    padding: 2px 6px;
}

.dropdown-item:first-child {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.dropdown-item:last-child {
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: rgba(24, 28, 40, 0.9) !important;
    border: 1px solid rgba(102, 126, 234, 0.2) !important;
    backdrop-filter: blur(20px) !important;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: modalSlideIn 0.3s ease;
}

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

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

.modal-body {
    padding: 20px;
    max-height: 400px;
    overflow-y: auto;
}

.loading, .error, .empty-state {
    text-align: center;
    padding: 20px;
    color: #a0aec0;
}

.user-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.user-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.user-item:last-child {
    border-bottom: none;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    color: white;
    text-transform: uppercase;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.user-avatar.initial-avatar {
    background: var(--avatar-bg, #4a5568);
}

.user-info {
    flex: 1;
}

.user-name {
    font-weight: 600;
    color: var(--text-color);
    text-decoration: none;
    display: block;
    margin-bottom: 2px;
}

.user-username {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Notifications */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    color: var(--white);
    font-weight: 500;
    z-index: 3000;
    transform: translateX(400px);
    transition: transform 0.3s ease;
}

.notification.show {
    transform: translateX(0);
}

.notification-success {
    background: var(--success-color);
}

.notification-error {
    background: var(--danger-color);
}

.notification-info {
    background: var(--accent-color);
}

/* Image Preview */
#image-preview {
    margin-top: 15px;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
}

#preview-img {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
}

#remove-image {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.7);
    color: var(--white);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
}

/* Load More */
.load-more-container {
    text-align: center;
    margin-top: 20px;
}

/* Dashboard-style enhancements */
.main-container {
    background: transparent;
}

.feed {
    position: relative;
}

.feed::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(135deg, rgba(79, 172, 254, 0.1) 0%, rgba(102, 126, 234, 0.1) 100%);
    border-radius: 20px;
    z-index: -1;
}

/* Status indicators like the dashboard */
.stat-number {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

/* Card hover effects */
.sidebar:hover,
.content:hover,
.suggestions-card:hover,
.trending-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

/* Welcome message styling */
.no-posts {
    background: rgba(24, 28, 40, 0.7) !important;
    border: 1px solid rgba(102, 126, 234, 0.2) !important;
    border-radius: 20px !important;
    padding: 40px 20px;
    text-align: center;
    color: var(--text-color);
    backdrop-filter: blur(20px) !important;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

.no-posts h3 {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
}

/* Responsive Design */
@media (max-width: 968px) {
    .right-sidebar {
        display: none;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 10px 15px;
    }
    
    .header-center {
        display: none;
    }
    
    .main-container {
        padding: 70px 10px 20px;
    }
    
    .post-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .post-metadata {
        justify-content: center;
        gap: 10px;
    }
    
    .post-timestamp,
    .post-file-size {
        font-size: 0.8rem;
        padding: 4px 8px;
    }
    
    .profile-stats {
        justify-content: space-around;
    }
    
    .profile-actions {
        flex-direction: column;
    }
    
    .media-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
    }
    
    .auth-card {
        padding: 30px 20px;
    }
    
    .modal-content {
        width: 95%;
    }
}

@media (max-width: 480px) {
    .create-post-actions {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .post-options {
        justify-content: center;
    }
    
    .profile-info {
        text-align: center;
    }
    
    .profile-stats {
        gap: 20px;
    }
    
    .tab-btn {
        font-size: 12px;
        padding: 12px 8px;
    }
}

/* Profile theme update - v1.1 */

/* ========== NOTIFICATION STYLES ========== */

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
    animation: pulse 2s infinite;
}

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

.notification-dropdown {
    position: relative;
}

.notification-link {
    position: relative;
}

.notification-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    width: 350px;
    max-height: 400px;
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: none;
    overflow: hidden;
}

.notification-dropdown.show .notification-dropdown-menu {
    display: block;
    animation: fadeInDown 0.3s ease;
}

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

.notification-dropdown-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.notification-dropdown-content {
    max-height: 300px;
    overflow-y: auto;
}

.notification-dropdown-footer {
    padding: 12px 20px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.notification-item {
    display: flex;
    align-items: flex-start;
    padding: 12px 20px;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.notification-item:hover {
    background: var(--hover-color);
}

.notification-item.unread {
    background: rgba(102, 126, 234, 0.1);
    border-left: 3px solid var(--primary-color);
}

.notification-item.read {
    opacity: 0.7;
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-avatar {
    margin-right: 12px;
    flex-shrink: 0;
}

.notification-avatar img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.notification-content {
    flex-grow: 1;
    min-width: 0;
}

.notification-text {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.notification-type-icon {
    font-size: 12px;
    flex-shrink: 0;
}

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

.notification-actions {
    margin-left: 8px;
    flex-shrink: 0;
}

.mark-read-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 10px;
    transition: all 0.3s ease;
}

.mark-read-btn:hover {
    background: var(--secondary-color);
    transform: scale(1.1);
}

/* Notifications Page Styles */
.notifications-container {
    background: var(--card-background);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    margin-top: 20px;
}

.notifications-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notifications-header h1 {
    margin: 0;
    font-size: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.notifications-filters {
    display: flex;
    padding: 0 20px 20px 20px;
    gap: 2px;
}

.filter-btn {
    background: none;
    border: none;
    padding: 12px 16px;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

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

.filter-btn.active {
    color: var(--primary-color);
}

.filter-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
}

.notifications-list {
    min-height: 200px;
}

.notifications-container .notifications-list {
    border-top: none;
}

.empty-message {
    padding: 40px 20px;
    text-align: center;
    color: var(--text-muted);
    font-style: italic;
}

.loading-spinner {
    padding: 20px;
    text-align: center;
    color: var(--text-muted);
}

.error-message {
    padding: 20px;
    text-align: center;
    color: var(--danger-color);
}

#loadMoreContainer {
    padding: 20px;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

/* Color Classes */
.text-red { color: #dc3545; }
.text-blue { color: #007bff; }
.text-green { color: #28a745; }
.text-purple { color: #6f42c1; }
.text-gray { color: var(--text-muted); }

/* Button Link Style */
.btn-link {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
    padding: 0;
    transition: color 0.3s ease;
}

.btn-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Responsive Notification Styles */
@media (max-width: 768px) {
    .notification-dropdown-menu {
        width: 300px;
        right: -50px;
    }
    
    .notifications-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .notifications-filters {
        overflow-x: auto;
        padding-bottom: 2px;
    }
    
    .filter-btn {
        white-space: nowrap;
        padding: 12px 20px;
    }
    
    .notification-item {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .notification-dropdown-menu {
        width: 280px;
        right: -100px;
    }
    
    .notification-text {
        font-size: 13px;
    }
    
    .notification-avatar img {
        width: 32px;
        height: 32px;
    }
}

/* ========== SETTINGS PAGE STYLES ========== */

.settings-header {
    padding: 20px;
}

.settings-header h1 {
    margin: 0 0 8px 0;
    font-size: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.settings-header p {
    margin: 0;
    color: var(--text-muted);
    font-size: 14px;
}

.settings-container {
    background: var(--card-background);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    margin-top: 20px;
}

.settings-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    background: var(--darker-bg);
}

.tab-btn {
    background: none;
    border: none;
    padding: 16px 24px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    position: relative;
}

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

.tab-btn.active {
    color: var(--primary-color);
    background: var(--card-background);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
}

.tab-content {
    display: none;
    padding: 30px;
}

.tab-content.active {
    display: block;
}

.settings-section {
    max-width: 600px;
}

.settings-section h2 {
    margin: 0 0 8px 0;
    font-size: 20px;
    color: var(--text-color);
}

.section-description {
    margin: 0 0 30px 0;
    color: var(--text-muted);
    font-size: 14px;
}

.settings-form {
    margin-bottom: 40px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--darker-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-color);
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="password"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group input:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: var(--hover-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-text {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: var(--text-muted);
}

.profile-picture-section {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 30px;
    padding: 20px;
    background: var(--darker-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.current-picture img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.picture-controls {
    display: flex;
    gap: 12px;
    align-items: center;
}

.security-info {
    margin-top: 40px;
    padding: 20px;
    background: var(--darker-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

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

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.info-item i {
    font-size: 18px;
    color: var(--primary-color);
    width: 20px;
}

.info-item div {
    display: flex;
    flex-direction: column;
}

.info-item strong {
    font-size: 14px;
    margin-bottom: 2px;
}

.info-item span {
    font-size: 13px;
    color: var(--text-muted);
}

.privacy-option,
.notification-option {
    padding: 20px;
    background: var(--darker-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    margin-bottom: 16px;
}

.option-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.option-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.option-header h3 {
    margin: 0;
    font-size: 16px;
}

.option-description {
    margin: 0;
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
}

.notification-group {
    margin-bottom: 30px;
}

.notification-group h3 {
    margin: 0 0 16px 0;
    font-size: 18px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--hover-color);
    transition: 0.3s;
    border-radius: 26px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: var(--primary-color);
}

input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

/* Alert Styles */
.alert {
    padding: 16px 20px;
    margin: 20px 0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    animation: slideInDown 0.4s ease;
}

.alert-success {
    background: rgba(40, 167, 69, 0.1);
    border: 1px solid rgba(40, 167, 69, 0.3);
    color: #28a745;
}

.alert-error {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.3);
    color: #dc3545;
}

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

/* Responsive Settings */
@media (max-width: 768px) {
    .settings-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
    }
    
    .tab-btn {
        white-space: nowrap;
        padding: 14px 20px;
        font-size: 13px;
    }
    
    .tab-content {
        padding: 20px;
    }
    
    .profile-picture-section {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .picture-controls {
        flex-direction: column;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .settings-header {
        padding: 16px;
    }
    
    .settings-header h1 {
        font-size: 20px;
    }
    
    .tab-content {
        padding: 16px;
    }
    
    .option-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

/* ========== NSFW CONTENT STYLES ========== */

/* NSFW Checkbox in post creation */
.nsfw-checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: rgba(255, 107, 53, 0.1);
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    color: #ff6b35;
    transition: all 0.3s ease;
    user-select: none;
}

.nsfw-checkbox:hover {
    background: rgba(255, 107, 53, 0.15);
    border-color: rgba(255, 107, 53, 0.5);
}

.nsfw-checkbox input[type="checkbox"] {
    margin: 0;
    width: 16px;
    height: 16px;
}

.nsfw-checkbox input[type="checkbox"]:checked + i {
    color: #ff6b35;
}

.nsfw-checkbox i {
    font-size: 14px;
    color: #ff6b35;
}

.nsfw-checkbox span {
    font-weight: 600;
    font-size: 12px;
}

/* NSFW Warning in posts */
.nsfw-warning {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(255, 107, 53, 0.1);
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: 6px;
    margin-bottom: 12px;
    font-size: 12px;
    color: #ff6b35;
    font-weight: 600;
}

.nsfw-warning i {
    font-size: 14px;
}

/* Age verification badge */
.age-verification-info {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
}

.verification-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 6px;
    color: #22c55e;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.verification-badge i {
    font-size: 16px;
}

/* Content option styling */
.content-option {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.content-warning {
    color: #f59e0b !important;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    margin: 8px 0 0 0;
}

.content-warning i {
    font-size: 16px;
}

.option-description {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.option-description ul {
    margin: 8px 0 0 0;
    padding-left: 20px;
}

.option-description li {
    margin-bottom: 6px;
    color: var(--text-secondary);
    font-size: 14px;
}

/* Dark mode adjustments for NSFW content */
.dark-mode .nsfw-checkbox {
    background: rgba(255, 107, 53, 0.15);
    border-color: rgba(255, 107, 53, 0.4);
}

.dark-mode .nsfw-warning {
    background: rgba(255, 107, 53, 0.15);
    border-color: rgba(255, 107, 53, 0.4);
}

.dark-mode .verification-badge {
    background: rgba(34, 197, 94, 0.15);
    border-color: rgba(34, 197, 94, 0.4);
}

/* Responsive NSFW styles */
@media (max-width: 768px) {
    .nsfw-checkbox {
        font-size: 12px;
        padding: 6px 10px;
    }
    
    .nsfw-warning {
        font-size: 11px;
        padding: 6px 10px;
    }
    
    .age-verification-info {
        padding: 12px;
    }
    
    .content-option {
        padding: 16px;
    }
}

/* ========== VIDEO STYLES ========== */
.post-video {
    margin: 16px 0;
    border-radius: 12px;
    overflow: hidden;
    background: var(--card-background);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.post-video video {
    width: 100%;
    height: auto;
    display: block;
    background: #000;
}

.post-video-error {
    padding: 20px;
    text-align: center;
    background: var(--surface);
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    color: var(--text-muted);
    margin: 16px 0;
}

.post-video-error i {
    color: #ffc107;
    margin-right: 8px;
}

.post-media {
    margin: 16px 0;
}

.post-media .post-image + .post-video {
    margin-top: 12px;
}

/* Video preview in post creation */
#video-preview {
    margin: 16px 0;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: var(--card-background);
    border: 2px solid var(--border-color);
}

#video-preview video {
    width: 100%;
    max-height: 400px;
    object-fit: contain;
    background: #000;
}

#remove-video {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.2s ease;
}

#remove-video:hover {
    background: rgba(255, 0, 0, 0.8);
    transform: scale(1.1);
}

.video-info {
    padding: 12px;
    background: var(--surface);
    border-top: 1px solid var(--border-color);
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    gap: 16px;
}

.video-format-info {
    padding: 8px 12px;
    background: rgba(52, 152, 219, 0.1);
    border: 1px solid rgba(52, 152, 219, 0.3);
    border-radius: 6px;
    font-size: 11px;
    color: #3498db;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
}

/* Video thumbnails in media gallery */
.video-thumbnail {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 8px;
}

.video-thumbnail video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 48px;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    pointer-events: none;
    transition: all 0.3s ease;
}

.media-item:hover .video-play-overlay {
    font-size: 52px;
    color: var(--primary-color);
}

.media-type-indicator {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}

/* Video upload button styling - match photo button */
#video-btn {
    background: none;
    border: none;
    color: var(--text-color);
    padding: 8px 12px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

#video-btn:hover {
    background: var(--hover-background);
    color: var(--primary-color);
}

#video-btn i {
    font-size: 16px;
}

/* Compression info styles */
.compression-info {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    padding: 8px;
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 6px;
    margin-top: 8px;
}

.compression-info i {
    color: #ffc107;
    font-size: 12px;
}

/* Dark mode video styles */
.dark-mode .post-video {
    background: var(--card-background);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.dark-mode #video-preview {
    background: var(--card-background);
    border-color: var(--border-color);
}

.dark-mode .video-info {
    background: var(--surface);
    border-color: var(--border-color);
}

.dark-mode .compression-info {
    background: rgba(255, 193, 7, 0.15);
    border-color: rgba(255, 193, 7, 0.4);
}

/* Responsive video styles */
@media (max-width: 768px) {
    .post-video {
        margin: 12px 0;
        border-radius: 8px;
    }
    
    #video-preview {
        margin: 12px 0;
        border-radius: 8px;
    }
    
    #video-preview video {
        max-height: 250px;
    }
    
    .video-play-overlay {
        font-size: 36px;
    }
    
    .media-item:hover .video-play-overlay {
        font-size: 40px;
    }
    
    #video-btn {
        padding: 8px 12px;
        font-size: 14px;
    }
    
    .video-info {
        padding: 8px;
        font-size: 11px;
        gap: 12px;
    }
}

/* Share dropdown styles */
.share-dropdown {
    position: relative;
    display: inline-block;
}

.share-menu {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    z-index: 1000;
    min-width: 180px;
    margin-bottom: 10px;
}

.share-menu button {
    display: block;
    width: 100%;
    padding: 12px 16px;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.3s ease;
    color: var(--text-color);
    font-size: 14px;
}

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

.share-menu button:first-child {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.share-menu button:last-child {
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.share-menu button i {
    margin-right: 10px;
    width: 16px;
}

/* Notification animations */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

/* Contact list styles for forwarding */
.forward-contact-item {
    padding: 10px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.forward-contact-item:hover {
    background: var(--hover-color);
}

.forward-contact-item label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
}

.forward-contact-item input[type="checkbox"] {
    margin-right: 10px;
}

.contact-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    margin-right: 10px;
    object-fit: cover;
}

[data-theme="dark"] .modal-content {
    background: #1a1a1a;
}

/* ========================================= */
/* COSMETIC EFFECTS SYSTEM */
/* ========================================= */

/* User-Specific Hover Effects - These replace default hover animations */


/* Color-specific hover effects */
.red-hover:hover {
    box-shadow: 0 0 25px rgba(255, 67, 54, 0.8) !important;
    transform: scale(1.03) !important;
    border-left: 4px solid #ff4336 !important;
    transition: all 0.3s ease !important;
}

.blue-hover:hover {
    box-shadow: 0 0 20px rgba(33, 150, 243, 0.8) !important;
    transform: scale(1.02) !important;
    border: 2px solid rgba(33, 150, 243, 0.5) !important;
}

.green-hover:hover {
    box-shadow: 0 0 30px rgba(76, 175, 80, 0.9) !important;
    transform: translateY(-3px) !important;
    border: 2px solid #4caf50 !important;
}

.gold-hover:hover {
    box-shadow: 0 0 25px rgba(255, 193, 7, 0.8) !important;
    transform: scale(1.02) translateY(-2px) !important;
    border: 2px solid #ffc107 !important;
}

.purple-storm:hover {
    box-shadow: 0 0 35px rgba(156, 39, 176, 0.9), inset 0 0 20px rgba(156, 39, 176, 0.3) !important;
    transform: scale(1.05) !important;
    border: 3px solid #9c27b0 !important;
}

/* Post Background Effects */
.fire-bg {
    background: linear-gradient(45deg, #ff5722, #ff9800, #ff5722) !important;
    border: 2px solid #ff5722 !important;
}

.ice-bg {
    background: linear-gradient(135deg, #e1f5fe, #b3e5fc, #81d4fa) !important;
    border: 2px solid #03a9f4 !important;
}

.void-bg {
    background: radial-gradient(circle, #1a1a1a, #000000) !important;
    border: 2px solid #333 !important;
    color: #fff !important;
}

/* ========== AUTOMATIC TEXT COLOR ADJUSTMENT FOR POST BACKGROUNDS ========== */

/* Dark text for bright backgrounds */
.post-item.bright-bg-theme,
.post-item.bright-bg-theme .post-display-name,
.post-item.bright-bg-theme .post-username,
.post-item.bright-bg-theme .post-time,
.post-item.bright-bg-theme .post-content,
.post-item.bright-bg-theme .post-content p,
.post-item.bright-bg-theme .post-timestamp span,
.post-item.bright-bg-theme .post-file-size span {
    color: #1a1a1a !important;
    text-shadow: none !important;
}

.post-item.bright-bg-theme .post-username,
.post-item.bright-bg-theme .post-time {
    color: rgba(26, 26, 26, 0.7) !important;
}

.post-item.bright-bg-theme .btn-icon {
    color: #333 !important;
}

.post-item.bright-bg-theme .btn-icon:hover {
    color: #000 !important;
}

.post-item.bright-bg-theme .btn-icon.liked {
    color: #dc3545 !important;
}

/* Light text for dark backgrounds (default theme) */
.post-item.dark-bg-theme,
.post-item.dark-bg-theme .post-display-name,
.post-item.dark-bg-theme .post-username,
.post-item.dark-bg-theme .post-time,
.post-item.dark-bg-theme .post-content,
.post-item.dark-bg-theme .post-content p,
.post-item.dark-bg-theme .post-timestamp span,
.post-item.dark-bg-theme .post-file-size span {
    color: var(--text-color, #ffffff) !important;
}

.post-item.dark-bg-theme .post-username,
.post-item.dark-bg-theme .post-time {
    color: var(--text-muted, rgba(255, 255, 255, 0.7)) !important;
}

/* ========== PATTERN COSMETIC ANIMATIONS ========== */

/* Grid Pattern Effects */
@keyframes matrix-flow {
    0% { background-position: 0 0, 0 0; }
    100% { background-position: 20px 20px, 20px 20px; }
}

/* Zigzag Pattern Effects */
@keyframes zigzag-slide {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0%); }
}

@keyframes electric-pulse {
    0% { opacity: 0.3; filter: drop-shadow(0 0 5px rgba(0,150,255,0.5)); }
    100% { opacity: 0.7; filter: drop-shadow(0 0 15px rgba(0,150,255,0.8)); }
}

/* Particle Effects */
@keyframes float-particles {
    0% { background-position: 0 0, 0 0, 0 0, 0 0, 0 0; }
    25% { background-position: 20px -10px, -15px 10px, 10px -5px, -10px 15px, 25px -20px; }
    50% { background-position: -10px -20px, 30px -5px, -5px -15px, 20px -10px, -15px 10px; }
    75% { background-position: 15px 10px, -20px -15px, 25px 20px, -5px -25px, 10px 5px; }
    100% { background-position: 0 0, 0 0, 0 0, 0 0, 0 0; }
}

@keyframes sparkle-twinkle {
    0%, 100% { opacity: 0.3; transform: scale(0.8); }
    25% { opacity: 0.8; transform: scale(1.2); }
    50% { opacity: 0.5; transform: scale(1.0); }
    75% { opacity: 0.9; transform: scale(1.1); }
}

/* Lightning Effects */
@keyframes lightning-flash {
    0%, 90%, 100% { opacity: 0; }
    5% { opacity: 1; }
    10% { opacity: 0; }
    15% { opacity: 0.8; }
    20% { opacity: 0; }
    25% { opacity: 1; }
    30% { opacity: 0; }
}

@keyframes storm-bolts-1 {
    0% { opacity: 0; transform: translateX(-10px); }
    20% { opacity: 1; transform: translateX(0px); }
    40% { opacity: 0; transform: translateX(10px); }
    60% { opacity: 0.8; transform: translateX(-5px); }
    100% { opacity: 0; transform: translateX(15px); }
}

@keyframes storm-bolts-2 {
    0% { opacity: 0; transform: translateY(-10px) rotate(0deg); }
    30% { opacity: 1; transform: translateY(0px) rotate(2deg); }
    60% { opacity: 0; transform: translateY(10px) rotate(-2deg); }
    100% { opacity: 0.6; transform: translateY(-5px) rotate(1deg); }
}

/* Geometric Pattern Effects */
@keyframes honeycomb-glow {
    0% { opacity: 0.3; filter: brightness(1); }
    100% { opacity: 0.6; filter: brightness(1.3); }
}

@keyframes circuit-flow {
    0% { background-position: 0 0, 0 0, 0 0; }
    25% { background-position: 5px 0, 0 5px, 10px 10px; }
    50% { background-position: 10px 0, 0 10px, 20px 20px; }
    75% { background-position: 15px 0, 0 15px, 30px 30px; }
    100% { background-position: 20px 0, 0 20px, 40px 40px; }
}

/* ========== PATTERN COSMETIC CLASSES ========== */

/* Ensure post content is above patterns */
.post-item .post-header,
.post-item .post-content,
.post-item .post-footer {
    position: relative;
    z-index: 10;
}

/* Ensure dropdowns work properly */
.post-actions {
    position: relative;
    z-index: 20;
}

/* Grid Patterns */
.post-item.grid-pattern {
    position: relative !important;
}
.post-item.grid-pattern:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(255,255,255,0.1) 1px, transparent 1px), 
        linear-gradient(90deg, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
    z-index: -1;
    border-radius: inherit;
}

.post-item.matrix-grid {
    position: relative !important;
}
.post-item.matrix-grid:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(0,255,0,0.2) 1px, transparent 1px), 
        linear-gradient(90deg, rgba(0,255,0,0.2) 1px, transparent 1px);
    background-size: 15px 15px;
    pointer-events: none;
    z-index: -1;
    animation: matrix-flow 4s linear infinite;
    border-radius: inherit;
}

/* Zigzag Patterns */
.post-item.zigzag-waves {
    position: relative !important;
    overflow: hidden !important;
}
.post-item.zigzag-waves:before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background-image: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255,255,255,0.15) 10px, rgba(255,255,255,0.15) 20px);
    pointer-events: none;
    z-index: -1;
    animation: zigzag-slide 6s linear infinite;
    border-radius: inherit;
}

.post-item.electric-zigzag {
    position: relative !important;
}
.post-item.electric-zigzag:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: repeating-linear-gradient(45deg, transparent, transparent 8px, rgba(0,150,255,0.4) 8px, rgba(0,150,255,0.4) 16px);
    pointer-events: none;
    z-index: -1;
    filter: drop-shadow(0 0 5px rgba(0,150,255,0.5));
    animation: electric-pulse 2s ease-in-out infinite alternate;
    border-radius: inherit;
}

/* Particle Effects */
.post-item.floating-particles {
    position: relative !important;
}
.post-item.floating-particles:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255,255,255,0.4) 2px, transparent 2px),
        radial-gradient(circle at 70% 60%, rgba(255,255,255,0.3) 1px, transparent 1px),
        radial-gradient(circle at 90% 20%, rgba(255,255,255,0.5) 1.5px, transparent 1.5px),
        radial-gradient(circle at 30% 80%, rgba(255,255,255,0.3) 1px, transparent 1px),
        radial-gradient(circle at 60% 10%, rgba(255,255,255,0.4) 1.5px, transparent 1.5px);
    background-size: 100px 100px, 150px 150px, 80px 80px, 120px 120px, 200px 200px;
    pointer-events: none;
    z-index: -1;
    animation: float-particles 8s linear infinite;
    border-radius: inherit;
}

.post-item.magic-sparkles {
    position: relative !important;
}
.post-item.magic-sparkles:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 25% 25%, #ff69b4 1px, transparent 1px),
        radial-gradient(circle at 75% 75%, #00bfff 1px, transparent 1px),
        radial-gradient(circle at 50% 10%, #ffff00 1.5px, transparent 1.5px),
        radial-gradient(circle at 10% 60%, #ff1493 1px, transparent 1px),
        radial-gradient(circle at 90% 40%, #00ff7f 1.5px, transparent 1.5px);
    background-size: 60px 60px, 80px 80px, 100px 100px, 70px 70px, 90px 90px;
    pointer-events: none;
    z-index: -1;
    animation: sparkle-twinkle 3s ease-in-out infinite;
    border-radius: inherit;
}

/* Lightning Effects */
.post-item.lightning-bolts {
    position: relative !important;
}
.post-item.lightning-bolts:after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(45deg, transparent 45%, rgba(255,255,0,0.8) 49%, rgba(255,255,0,0.8) 51%, transparent 55%),
        linear-gradient(135deg, transparent 35%, rgba(255,255,255,0.9) 48%, rgba(255,255,255,0.9) 52%, transparent 65%);
    background-size: 200px 200px, 150px 150px;
    background-position: 0 0, 100px 100px;
    pointer-events: none;
    z-index: -1;
    opacity: 0;
    animation: lightning-flash 4s infinite;
    border-radius: inherit;
}

.post-item.electric-storm {
    position: relative !important;
}
.post-item.electric-storm:before,
.post-item.electric-storm:after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: -1;
    border-radius: inherit;
}
.post-item.electric-storm:before {
    background-image: 
        linear-gradient(60deg, transparent 40%, rgba(0,255,255,0.8) 49%, rgba(0,255,255,0.8) 51%, transparent 60%),
        linear-gradient(120deg, transparent 30%, rgba(255,0,255,0.7) 48%, rgba(255,0,255,0.7) 52%, transparent 70%);
    background-size: 100px 100px, 120px 120px;
    animation: storm-bolts-1 2s infinite alternate;
}
.post-item.electric-storm:after {
    background-image: 
        linear-gradient(30deg, transparent 45%, rgba(255,255,0,0.9) 49%, rgba(255,255,0,0.9) 51%, transparent 55%);
    background-size: 80px 80px;
    animation: storm-bolts-2 1.5s infinite alternate-reverse;
}

/* Geometric Patterns */
.post-item.honeycomb-pattern {
    position: relative !important;
}
.post-item.honeycomb-pattern:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 50% 50%, transparent 40%, rgba(255,193,7,0.4) 41%, rgba(255,193,7,0.4) 59%, transparent 60%);
    background-size: 40px 35px;
    background-position: 0 0, 20px 17.5px;
    pointer-events: none;
    z-index: -1;
    animation: honeycomb-glow 4s ease-in-out infinite alternate;
    border-radius: inherit;
}

.post-item.circuit-board {
    position: relative !important;
}
.post-item.circuit-board:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(90deg, rgba(0,255,0,0.3) 1px, transparent 1px),
        linear-gradient(rgba(0,255,0,0.3) 1px, transparent 1px),
        radial-gradient(circle at 20px 20px, rgba(0,255,0,0.5) 2px, transparent 2px);
    background-size: 20px 20px, 20px 20px, 40px 40px;
    pointer-events: none;
    z-index: -1;
    animation: circuit-flow 5s linear infinite;
    border-radius: inherit;
}



