* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

body {
    background: #0f172a;
    color: #e5e7eb;
}

/* === LAYOUT === */
.container {
    display: grid;
    grid-template-columns: 250px 1fr 250px;
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* === SIDEBARS === */
.left-sidebar,
.right-sidebar {
    background: #020617;
    padding: 20px;
    border-radius: 12px;
    height: fit-content;
}

.left-sidebar h2 {
    margin-bottom: 20px;
}

.left-sidebar ul {
    list-style: none;
}

.left-sidebar li {
    padding: 10px 0;
    cursor: pointer;
}

/* === MAIN FEED === */
.main-content {
    background: #020617;
    padding: 20px;
    border-radius: 12px;
}

/* === POST BOX === */
.post-box textarea {
    width: 100%;
    min-height: 80px;
    padding: 10px;
    background: #020617;
    color: #e5e7eb;
    border: 1px solid #1e293b;
    border-radius: 8px;
    margin-bottom: 10px;
}

.post-box button {
    padding: 8px 16px;
    border: none;
    background: #2563eb;
    color: #fff;
    border-radius: 6px;
    cursor: pointer;
}

/* === POSTS === */
.post-card {
    background: #020617;
    border: 1px solid #1e293b;
    border-radius: 12px;
    padding: 15px;
    margin-top: 15px;
}

.post-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
    opacity: 0.8;
}

.post-image img {
    max-width: 100%;
    border-radius: 10px;
    margin-top: 10px;
}

.post-actions {
    margin-top: 10px;
    font-size: 14px;
    opacity: 0.7;
}
/* 🔒 HARD LAYOUT LOCK */
.container {
    max-width: 1400px;
    overflow-x: hidden;
}

/* 🖼️ PREVENT IMAGES FROM BREAKING LAYOUT */
.post-card img,
.post-image img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 🧱 FORCE SIDEBARS TO STAY VISIBLE */
.left-sidebar,
.right-sidebar {
    min-width: 220px;
    max-width: 260px;
}

/* 🧭 CENTER COLUMN MUST NOT EXPAND */
.main-content {
    min-width: 0;
}
/* ===== TOP BAR ===== */
.top-bar {
    width: 100%;
    background: #020617;
    padding: 10px 20px;
    display: flex;
    justify-content: flex-end;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-bar-right {
    position: relative;
}

.user-menu-btn {
    background: none;
    border: none;
    color: #e5e7eb;
    font-size: 14px;
    cursor: pointer;
}

/* DROPDOWN */
.user-dropdown {
    display: none;          /* 🔒 HARD DEFAULT HIDDEN */
    position: absolute;
    right: 0;
    top: 44px;
    background: #020617;
    border: 1px solid #1e293b;
    border-radius: 12px;
    min-width: 180px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.45);
    z-index: 9999;
}


.user-dropdown a {
    display: block;
    padding: 10px;
    color: #e5e7eb;
    text-decoration: none;
    font-size: 14px;
}

.user-dropdown a:hover {
    background: #1e293b;
}

.user-dropdown hr {
    border: none;
    border-top: 1px solid #1e293b;
    margin: 5px 0;
}
/* ===== USER CHIP BUTTON ===== */
.user-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: linear-gradient(135deg, #2563eb, #1e40af);
    color: #fff;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    font-size: 14px;
    box-shadow: 0 0 0 rgba(37,99,235,0.6);
    transition: all 0.25s ease;
}

.user-chip:hover {
    box-shadow: 0 0 15px rgba(37,99,235,0.7);
    transform: translateY(-1px);
}

.user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.user-caret {
    font-size: 12px;
    opacity: 0.9;
}

/* Animate dropdown */
.user-dropdown {
    animation: fadeSlide 0.2s ease forwards;
}

@keyframes fadeSlide {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* ===== TOP BAR LAYOUT ===== */
.top-bar {
    width: 100%;
    background: #020617;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* ===== NEON BRAND ===== */
.brand-neon {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #38bdf8;
    text-shadow:
        0 0 5px rgba(56,189,248,0.6),
        0 0 15px rgba(56,189,248,0.4),
        0 0 30px rgba(56,189,248,0.2);
}

/* ===== USER CHIP ===== */
.user-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: linear-gradient(135deg, #2563eb, #1e40af);
    color: #fff;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    font-size: 14px;
    box-shadow: 0 0 0 rgba(37,99,235,0.6);
    transition: all 0.25s ease;
}

.user-chip:hover {
    box-shadow: 0 0 15px rgba(37,99,235,0.7);
    transform: translateY(-1px);
}

/* ===== AVATAR + ONLINE DOT ===== */
.user-avatar {
    position: relative;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

/* 🟢 ONLINE DOT */
.online-dot {
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 9px;
    height: 9px;
    background: #22c55e;
    border: 2px solid #020617;
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(34,197,94,0.9);
    animation: pulse 1.8s infinite;
}

/* subtle pulse */
@keyframes pulse {
    0% { box-shadow: 0 0 0 rgba(34,197,94,0.6); }
    70% { box-shadow: 0 0 8px rgba(34,197,94,0.9); }
    100% { box-shadow: 0 0 0 rgba(34,197,94,0.6); }
}

/* ===== DROPDOWN ===== */
.user-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 44px;
    background: #020617;
    border: 1px solid #1e293b;
    border-radius: 12px;
    min-width: 180px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.45);
    z-index: 9999;
    animation: fadeSlide 0.2s ease forwards;
}

.user-dropdown a {
    display: block;
    padding: 10px;
    color: #e5e7eb;
    text-decoration: none;
    font-size: 14px;
}

.user-dropdown a:hover {
    background: #1e293b;
}

.user-dropdown hr {
    border: none;
    border-top: 1px solid #1e293b;
    margin: 5px 0;
}

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