/* Middle page content */
.search-bar {
    background: rgba(30, 33, 40, 0.8);
    border-radius: 50px;
    padding: 15px 25px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    border: 1px solid #2f3336;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
}




.search-bar i {
    color: #6c5ce7;
    font-size: 1.2rem;
    margin-right: 15px;
}

.search-bar input {
    flex-grow: 1;
    background: transparent;
    border: none;
    color: #e7e9ea;
    font-size: 1.1rem;
    outline: none;
}

.search-bar input::placeholder {
    color: #71767b;
}

.search-actions {
    display: flex;
}

.search-filter {
    background: rgba(108, 92, 231, 0.2);
    color: #a29bfe;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    margin-left: 15px;
    cursor: pointer;
    transition: all 0.3s;
}

.search-filter:hover {
    background: rgba(108, 92, 231, 0.3);
}

/* Post Composer */
.post-composer {
    background: rgba(30, 33, 40, 0.9);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 25px;
    border: 1px solid #2f3336;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.post-composer:focus-within {
    border-color: #6c5ce7;
    box-shadow: 0 0 0 1px #6c5ce7;
}

.composer-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 16px;
}

.composer-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    margin-right: 10px;
}

.composer-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.composer-avatar .avatar-initial {
    color: #fff;
    font-size: 16px;
}


.composer-input {
    flex-grow: 1;
    padding-top: 8px;
}

.composer-input textarea {
    width: 100%;
    background: transparent;
    border: none;
    color: #e7e9ea;
    font-size: 1.25rem;
    resize: none;
    min-height: 100px;
    max-height: 300px;
    padding: 0;
    line-height: 1.5;
    font-weight: 400;
    overflow-y: auto;
    transition: height 0.2s;
}

.composer-input textarea:focus {
    outline: none;
}

.composer-input textarea::placeholder {
    color: #71767b;
    font-weight: 400;
}

.composer-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    margin-top: 12px;
    border-top: 1px solid #2f3336;
}

.composer-action-buttons {
    display: flex;
    align-items: center;
    gap: 4px;
    position: relative;
}

.composer-action-btn {
    background: none;
    border: none;
    color: #6c5ce7;
    font-size: 1.15rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.composer-action-btn:hover {
    background: rgba(108, 92, 231, 0.15);
    color: #a29bfe;
}

.composer-submit {
    background: linear-gradient(to right, #6c5ce7, #a29bfe);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.95rem;
    opacity: 0.8;
}

.composer-submit.active {
    opacity: 1;
}

.composer-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(108, 92, 231, 0.4);
}

/* Media Preview */
.media-preview {
    margin: 10px 0 0 60px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.media-preview-item {
    position: relative;
    max-width: 300px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.media-preview img {
    max-width: 100%;
    max-height: 300px;
    display: block;
    object-fit: cover;
}

.media-preview video {
    max-width: 100%;
    max-height: 300px;
    display: block;
}

.remove-media {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.2s;
}

.remove-media:hover {
    background: rgba(255, 0, 0, 0.7);
    transform: scale(1.1);
}

/* Emoji Picker */
.emoji-picker {
    display: none;
    position: relative;
    background: rgba(47, 51, 54, 0.95);
    border-radius: 16px;
    padding: 12px;
    flex-wrap: wrap;
    width: 240px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 9999;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    top: 100%;
    left: 0;
    margin-top: 8px;
    gap: 6px;
}

.emoji-picker::before {
    content: "";
    position: absolute;
    top: -8px;
    left: 20px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid rgba(47, 51, 54, 0.95);
}

.emoji-option {
    font-size: 1.6rem;
    padding: 4px;
    cursor: pointer;
    transition: all 0.2s;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.emoji-option:hover {
    transform: scale(1.2);
    background: rgba(108, 92, 231, 0.2);
}

/* Character counter */
.char-counter {
    color: #71767b;
    font-size: 0.9rem;
    margin-right: 15px;
    font-weight: 500;
}

/* Tags input */
.tags-container {
    display: flex;
    align-items: center;
    margin-left: 60px;
    margin-top: 10px;
    gap: 8px;
    flex-wrap: wrap;
}

.tag {
    background: rgba(108, 92, 231, 0.2);
    color: #a29bfe;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.tag-remove {
    cursor: pointer;
    font-size: 0.8rem;
}


/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        width: 90%;
    }
    
    .media-preview {
        margin-left: 0;
    }
    
    .tags-container {
        margin-left: 0;
    }
}


/* Trending Banner */
.trending-banner {
    background: linear-gradient(to right, #6c5ce7, #4a3fbb);
    border-radius: 12px;
    padding: 20px 25px;
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 20px;
    z-index: 10;
    box-shadow: 0 5px 20px rgba(108, 92, 231, 0.4);
}

.banner-content {
    display: flex;
    align-items: center;
}

.banner-icon {
    font-size: 1.8rem;
    margin-right: 15px;
    color: white;
}

.banner-text h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
    color: white;
}

.banner-text p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

.banner-button {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.banner-button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* post card */
.post-feed {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 100%;
    margin: 0 auto;
}

.post-card {
    background: rgba(30, 33, 40, 0.8);
    border-radius: 16px;
    padding: 25px;
    border: 1px solid #2f3336;
    transition: all 0.3s;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    position: relative;
    overflow: hidden;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-color: #6c5ce7;
}

/* post header */
.post-header {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Spread left and right sides */
    margin-bottom: 20px;
    flex-wrap: wrap; /* Wrap on smaller screens */
}

.post-header-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 12px;
}

/* post header right */
.post-header-right {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}


.user-titles-preview {
  display: flex;
  gap: 8px;
  margin: 0 15px;
  flex-wrap: wrap;
}

.user-title {
  background: rgba(108, 92, 231, 0.2);
  color: #a29bfe;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

.post-header-more {
  position: relative; 
  flex-shrink: 0; /* Prevent shrinking */
  z-index: 9999;
}

.more-button {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 5px;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.more-button:hover {
  background: rgba(108, 92, 231, 0.1);
  color: #a29bfe;
}

.more-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  background: rgba(30, 33, 40, 0.95);
  border: 1px solid #2f3336;
  border-radius: 12px;
  padding: 10px 0;
  min-width: 180px;
  z-index: 9999;
  box-shadow: 0 5px 20px rgba(0,0,0,0.4);
  backdrop-filter: blur(10px);
}

.more-dropdown.show {
  display: block;
}

.dropdown-item {
  display: block;
  padding: 10px 20px;
  color: #e7e9ea;
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.2s;
}

.dropdown-item:hover {
  background: rgba(108, 92, 231, 0.2);
  color: #a29bfe;
}

.post-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
    margin-right: 15px;
}

.post-user-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.post-user-name {
    font-weight: bold;
    font-size: 1.1rem;
    color: #e7e9ea;
    margin-bottom: 3px;
}

.post-user-handle {
    color: #71767b;
    font-size: 0.9rem;
}

.post-content {
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.6;
}

.post-tags {
    display: flex;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.post-tag {
    background: rgba(108, 92, 231, 0.2);
    color: #a29bfe;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
    cursor: pointer;
}

.post-tag:hover {
    background: rgba(108, 92, 231, 0.3);
    transform: translateY(-2px);
}



@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.3); }
    70% { box-shadow: 0 0 0 8px rgba(249, 115, 22, 0); }
    100% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0); }
}


/* new post banner */
#new-posts-banner {
    position: sticky;
    top: 10px;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    background: #1d9bf0;
    color: white;
    border-radius: 9999px;
    font-size: 14px;
    cursor: pointer;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    margin: 0 auto;
    width: max-content;
    transition: all 0.3s ease;
    border: 5px solid red;
}

#new-posts-banner:hover {
    background: #1a8cd8;
    transform: translateY(-2px);
}

#new-posts-banner .count {
    font-weight: bold;
}



/* Responsive design */
@media (max-width: 768px) {
    .middle-page-container {
        width: 100%;
        min-width: unset;
    }
    
    .trending-banner {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    
    .banner-content {
        justify-content: center;
    }

    .post-actions {
        gap: 0px;
    }

    .post-action {
        font-size: 0.90rem;
    }



    .post-action i {
        font-size: 0.90rem;
    }
    
    .post-media {
        max-height: 300px;
    }
    
    .search-bar {
        flex-direction: column;
        gap: 15px;
        padding: 20px;
    }
    
    .search-actions {
        width: 100%;
        justify-content: space-between;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.post-card, .post-composer, .trending-banner, .search-bar {
    animation: fadeIn 0.6s ease-out;
}

/* Comment Avatar */
.comment-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #444; /* fallback background if inline style fails */
    position: relative;
}

.comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.comment-avatar .avatar-initial {
    width: 100%;
    height: 100%;
    font-size: 14px;
    font-weight: bold;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
}


/* parent comment */
/* Parent Comment Avatar (reply modal) */
.parent-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #444;
}

.parent-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%;
}

.parent-avatar .avatar-initial {
    width: 100%;
    height: 100%;
    font-size: 15px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-transform: uppercase;
}

/* Mobile Header - Hide on scroll */
.mobile-header {
    display: none;
    background: #121212;
    padding: 12px 15px;
    border-bottom: 1px solid #2f3336;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: transform 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
    transform: translateY(0);
    will-change: transform;
}

.mobile-header a {
    text-decoration: none;
}

.mobile-header.hidden {
    transform: translateY(-100%);
}

.mobile-header.visible {
    transform: translateY(0);
}

.mobile-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* Menu Button Styling */
.menu-btn {
    background: rgba(108, 92, 231, 0.2);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a29bfe;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s;
    margin-right: 10px;
}

.menu-btn:hover {
    background: rgba(108, 92, 231, 0.3);
    transform: scale(1.05);
}

.menu-btn:active {
    transform: scale(0.95);
}

.mobile-logo {
    flex-grow: 1;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    background: linear-gradient(to right, #6c5ce7, #fd79a8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}

/* Profile Button */
.profile-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(108, 92, 231, 0.2);
    transition: all 0.2s;
}

.profile-btn:hover {
    transform: scale(1.05);
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-initial {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #6c5ce7, #fd79a8);
    color: white;
    font-weight: bold;
    font-size: 1rem;
}

    .profile-image{width:36px;height:36px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;font-weight:700;border:2px solid var(--accent-violet);background:var(--bg-light);}
    .profile-image img{width:100%;height:100%;border-radius:50%;object-fit:cover}
    .profile-image:hover{transform:scale(1.05)}


/* Responsive adjustments */
@media (max-width: 768px) {
    .mobile-header {
        display: flex;
    }
    
    .middle-page {
        padding-top: 60px;
    }
    
    .desktop-search-container,
    .desktop-composer-container {
        display: none;
    }
    
    .post-card {
        border-radius: 0;
        border-left: none;
        border-right: none;
        margin-top: 10px;
    }
}

@media (min-width: 769px) {
    .mobile-header {
        display: none !important;
    }
    
    .desktop-search-container,
    .desktop-composer-container {
        display: block;
    }
}


/* =========================
   Vawulence Mobile Sidebar (Dark + Violet)
   ========================= */
.mobile-sidebar-menu{
  /* theme */
  --v-bg-top:#0f0e17;
  --v-bg-bot:#0a0814;
  --v-accent:#6c5ce7;   /* primary */
  --v-accent-d:#4b3bd1; /* depth */
  --v-accent-h:#a29bfe; /* highlight */
  --v-gold:#ffd700;
  --v-text:#f5f5f5;
  --v-muted:#b8b8b8;
  --v-hover:rgba(108,92,231,0.16);

  position:fixed; top:0; left:-100%;
  width:85%; max-width:320px; height:100vh;
  background:linear-gradient(to bottom,var(--v-bg-top),var(--v-bg-bot));
  z-index:1100; transition:left .3s ease; overflow-y:auto; color:var(--v-text);
  box-shadow:5px 0 25px rgba(0,0,0,.5);
  border-right:1px solid rgba(108,92,231,.35);
  padding-bottom:env(safe-area-inset-bottom,0);
}
.mobile-sidebar-menu.open{ left:0; }

.sidebar-menu-content{ padding:28px 18px 18px; height:100%; display:flex; flex-direction:column; }

/* Header + injected VAWULENCE text logo */
.sidebar-menu-header{
  display:flex; align-items:center; gap:12px;
  padding:0 0 22px; border-bottom:1px solid rgba(108,92,231,.28);
  margin-bottom:16px; position:relative;
}
.sidebar-menu-header::before{
  content:"VAWULENCE";
  font-weight:800; letter-spacing:.06em; font-size:1.1rem; margin-right:auto;
  background:linear-gradient(90deg,var(--v-accent),var(--v-accent-h));
  -webkit-background-clip:text; background-clip:text; color:transparent;
}

/* Close button */
.close-menu-btn{
  background:rgba(108,92,231,.22); border:none; color:var(--v-text);
  width:40px; height:40px; border-radius:50%; font-size:1.15rem; cursor:pointer;
  display:inline-flex; align-items:center; justify-content:center;
  transition:transform .25s ease, background .25s ease, box-shadow .25s ease;
}
.close-menu-btn:hover{ background:rgba(108,92,231,.32); transform:rotate(90deg); }
.close-menu-btn:focus-visible{ outline:none; box-shadow:0 0 0 2px var(--v-accent); }

/* Nav */
.sidebar-menu-nav{ display:flex; flex-direction:column; gap:8px; flex:1; }

/* Items */
.menu-item{
  position:relative; display:flex; align-items:center; gap:16px;
  padding:14px 16px; border-radius:12px; color:var(--v-text);
  text-decoration:none; transition:background .25s, transform .25s, box-shadow .25s;
  overflow:hidden; outline:none;
}
.menu-item i{
  width:24px; text-align:center; font-size:1.2rem;
  transition:transform .25s, color .25s, opacity .25s; opacity:.95;
}
/* shimmer sweep */
.menu-item::before{
  content:""; position:absolute; inset:0; left:-120%;
  background:linear-gradient(90deg,transparent,rgba(108,92,231,.10),transparent);
  transition:left .6s ease;
}
/* hover/active */
.menu-item:hover{ background:var(--v-hover); transform:translateX(5px); }
.menu-item:hover::before{ left:120%; }
.menu-item:hover i{ color:var(--v-accent); transform:scale(1.08); }
.menu-item:active{ transform:translateX(2px); }

/* optional active route */
.menu-item.active{
  background:rgba(108,92,231,.22);
  box-shadow:0 0 0 1px rgba(108,92,231,.35) inset;
}

/* label */
.menu-item span{ font-weight:500; font-size:1.05rem; }

/* divider */
.menu-divider{
  height:1px; margin:18px 0;
  background:linear-gradient(to right,transparent,var(--v-accent),transparent);
  opacity:.55; border:0;
}

/* Premium highlight + badge host */
.premium-item{
  background:linear-gradient(to right, rgba(108,92,231,.16), transparent);
  border:1px solid rgba(108,92,231,.35);
  position:relative;
}
.premium-item i{ color:var(--v-gold); }
.premium-item::after{
  content:""; position:absolute; top:0; right:0; width:4px; height:100%;
  background:var(--v-gold); border-radius:0 12px 12px 0;
}
.premium-item:hover{
  background:linear-gradient(to right, rgba(108,92,231,.26), transparent);
}

/* Animated badge (injected by JS) */
.premium-badge{
  position:absolute; top:10px; right:12px;
  display:inline-flex; align-items:center; gap:6px;
  padding:4px 8px; border-radius:999px; font-size:.72rem; font-weight:700;
  color:#0c0a1a; background:linear-gradient(90deg,var(--v-gold),#ffe88a);
  box-shadow:0 2px 10px rgba(255,215,0,.35), inset 0 1px 0 rgba(255,255,255,.6);
  text-transform:uppercase; letter-spacing:.04em; pointer-events:none;
  overflow:hidden;
}
/* moving shine across the badge */
.premium-badge::after{
  content:""; position:absolute; top:0; left:-120%; width:40%; height:100%;
  background:linear-gradient(90deg, transparent, rgba(255,255,255,.65), transparent);
  transform:skewX(-20deg); filter:blur(1px); animation:badge-shine 2.2s linear infinite;
}
@keyframes badge-shine{
  0%{ left:-120%; } 100%{ left:140%; }
}
/* pulse ring */
.premium-badge::before{
  content:""; position:absolute; inset:-6px; border-radius:999px;
  border:2px solid rgba(255,215,0,.45); animation:badge-pulse 1.8s ease-out infinite;
}
@keyframes badge-pulse{
  0%{ transform:scale(.85); opacity:.8; }
  70%{ transform:scale(1.15); opacity:0; }
  100%{ transform:scale(1.15); opacity:0; }
}

/* spark particles */
.premium-spark{
  position:absolute; width:6px; height:6px; border-radius:50%;
  background: radial-gradient(circle at 30% 30%, #fff, #ffe27a 60%, #f6b100 100%);
  pointer-events:none; opacity:0; transform:translate(-50%,-50%) scale(.6);
  animation:sparkle 900ms ease-out forwards;
  filter:drop-shadow(0 0 6px rgba(255,215,0,.7));
}
@keyframes sparkle{
  0%{ opacity:0; transform:translate(-50%,-50%) scale(.4); }
  25%{ opacity:1; }
  100%{ opacity:0; transform:translate(var(--dx,12px), var(--dy,-18px)) scale(1.1); }
}

/* Logout emphasis */
.logout-item, .logout-item i{ color:#ff6b6b; }
.logout-item:hover{ background:rgba(255,107,107,.12); }

/* Overlay */
.menu-overlay{
  position:fixed; inset:0; background:rgba(0,0,0,.72);
  backdrop-filter:blur(5px); z-index:1099; opacity:0; pointer-events:none;
  transition:opacity .3s ease;
}
.menu-overlay.visible{ opacity:1; pointer-events:all; }

/* Scrollbar polish */
.mobile-sidebar-menu::-webkit-scrollbar{ width:8px; }
.mobile-sidebar-menu::-webkit-scrollbar-track{ background:transparent; }
.mobile-sidebar-menu::-webkit-scrollbar-thumb{ background:rgba(108,92,231,.35); border-radius:8px; }

/* Desktop hide */
@media (min-width:768px){
  .mobile-sidebar-menu, .menu-overlay{ display:none; }
}

/* Reduced motion */
@media (prefers-reduced-motion:reduce){
  .mobile-sidebar-menu, .menu-item, .menu-overlay, .close-menu-btn,
  .premium-badge, .premium-badge::after, .premium-badge::before { animation:none !important; transition:none !important; }
}

/* ==========================================================
   Vawulence Mobile Sidebar — Aurora Re-Appearance Refresh
   (keeps existing HTML; lighter, on-brand, animated)
   ========================================================== */

/* Palette refresh (violet → magenta + soft midnight) */
.mobile-sidebar-menu{
  --v-bg-1:#141629;
  --v-bg-2:#0e1021;
  --v-violet:#6c5ce7;
  --v-magenta:#fd79a8;
  --v-iris:#a29bfe;
  --v-text:#f5f7ff;
  --v-muted:#b9bfd6;
  --v-ring:rgba(108,92,231,.38);
  --v-ring-2:rgba(253,121,168,.28);

  /* switch to transform for buttery 60fps */
  left: 0 !important;
  transform: translateX(-102%);
  width: 86%;
  max-width: 340px;
  height: 100vh;
  border-right: 1px solid var(--v-ring);
  box-shadow: 8px 0 28px rgba(0,0,0,.45);
  color: var(--v-text);
  isolation: isolate;          /* keep aurora layers contained */
  overflow: hidden;            /* we’ll scroll the inner content */
  background: linear-gradient(180deg, var(--v-bg-1), var(--v-bg-2));
  transition: transform .36s cubic-bezier(.22,.61,.36,1);
}
.mobile-sidebar-menu.open{ transform: translateX(0); }

/* Inner scroll area remains your structure */
.sidebar-menu-content{
  padding: 26px 16px 18px;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow-y: auto;            /* scroll here instead of container */
  overscroll-behavior: contain;
}

/* --- Animated aurora sheets (non-blocking GPU transforms) --- */
.mobile-sidebar-menu::before,
.mobile-sidebar-menu::after{
  content:"";
  position:absolute; inset:-20%;
  filter: blur(28px);
  z-index: 0;
  pointer-events: none;
  opacity: .75;
}
.mobile-sidebar-menu::before{
  background:
    radial-gradient(40% 35% at 15% 18%, rgba(108,92,231,.35) 0%, transparent 70%),
    radial-gradient(46% 40% at 85% 70%, rgba(253,121,168,.30) 0%, transparent 72%);
  animation: aurora-drift 24s ease-in-out infinite;
}
.mobile-sidebar-menu::after{
  background:
    radial-gradient(32% 28% at 75% 20%, rgba(162,155,254,.22) 0%, transparent 65%),
    radial-gradient(30% 26% at 20% 80%, rgba(253,121,168,.18) 0%, transparent 70%);
  animation: aurora-drift-2 28s ease-in-out infinite;
}
@keyframes aurora-drift{
  0%{ transform: translate3d(0,0,0) rotate(0.001deg); }
  50%{ transform: translate3d(-6%, -4%, 0) rotate(1deg); }
  100%{ transform: translate3d(0,0,0) rotate(0.001deg); }
}
@keyframes aurora-drift-2{
  0%{ transform: translate3d(0,0,0) rotate(0.001deg); }
  50%{ transform: translate3d(5%, 6%, 0) rotate(-1deg); }
  100%{ transform: translate3d(0,0,0) rotate(0.001deg); }
}

/* --- Header: animated wordmark + slogan (no HTML changes) --- */
.sidebar-menu-header{
  position: relative;
  display:flex; align-items:center; gap:12px;
  padding: 0 0 18px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  z-index: 1; /* above aurora */
}
.sidebar-menu-header::before{
  content:"VAWULENCE";
  margin-right:auto;
  font-weight: 900;
  letter-spacing: .08em;
  font-size: 1.18rem;
  line-height: 1;
  background: linear-gradient(90deg, var(--v-violet), var(--v-magenta));
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 0 20px rgba(108,92,231,.25);
  animation: wordmark-flow 7s ease-in-out infinite;
}
.sidebar-menu-header::after{
  content:"where opinions crash and legends rise";
  position: absolute; left: 0; bottom: -12px;
  font-size: .72rem; letter-spacing: .02em;
  color: rgba(245,247,255,.78);
}
@keyframes wordmark-flow{
  0%{ background-position: 0% 50%; }
  50%{ background-position: 100% 50%; }
  100%{ background-position: 0% 50%; }
}

/* Close button glow */
.close-menu-btn{
  position: relative;
  z-index: 1;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  color: var(--v-text);
  width: 40px; height: 40px; border-radius: 12px;
  backdrop-filter: blur(6px);
  transition: transform .24s ease, box-shadow .24s ease, background .24s ease;
}
.close-menu-btn:hover{
  transform: rotate(90deg);
  box-shadow: 0 6px 16px rgba(108,92,231,.35);
  background: rgba(108,92,231,.22);
}

/* --- Nav items: glass pills with brand ring on focus/active --- */
.sidebar-menu-nav{ display:flex; flex-direction:column; gap:10px; z-index: 1; }

.menu-item{
  position: relative;
  display:flex; align-items:center; gap:14px;
  padding: 12px 14px;
  border-radius: 14px;
  color: var(--v-text); text-decoration:none;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  backdrop-filter: blur(6px);
  transition: transform .22s ease, background .22s ease, box-shadow .22s ease, border-color .22s ease;
  outline: none;
}
.menu-item i, .menu-item .material-symbols-outlined{
  width: 24px; text-align:center; font-size: 1.22rem;
  color: #fff; opacity: .95; transition: transform .22s ease, color .22s ease;
}
.menu-item span{ font-weight: 600; font-size: 1.02rem; }

/* hover + pressed */
.menu-item:hover{
  background: linear-gradient(90deg, rgba(108,92,231,.18), rgba(253,121,168,.14));
  border-color: var(--v-ring);
  box-shadow: 0 6px 18px rgba(108,92,231,.22);
  transform: translateX(4px);
}
.menu-item:active{ transform: translateX(2px) scale(.99); }

/* active route */
.menu-item.active{
  background: linear-gradient(90deg, rgba(108,92,231,.22), rgba(253,121,168,.16));
  border-color: var(--v-ring);
  box-shadow: 0 0 0 1px var(--v-ring) inset, 0 8px 22px rgba(108,92,231,.20);
}

/* divider with soft glow */
.menu-divider{
  height: 1px; margin: 14px 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.22), transparent);
  border: 0; opacity: .75;
}

/* Premium highlight */
.premium-item{
  background: linear-gradient(90deg, rgba(108,92,231,.16), rgba(253,121,168,.12));
  border-color: var(--v-ring-2);
}
.premium-item i{ color: #ffd700; }
.premium-item::after{
  content:""; position:absolute; top:0; right:0; width: 4px; height:100%;
  background: linear-gradient(180deg, #ffd700, #ffe27a);
  border-radius: 0 14px 14px 0;
  opacity: .9;
}

/* Overlay: softer and branded */
.menu-overlay{
  position: fixed; inset: 0;
  background:
    radial-gradient(120% 80% at 10% 0%, rgba(108,92,231,.20), transparent 60%),
    radial-gradient(120% 90% at 90% 100%, rgba(253,121,168,.18), transparent 60%),
    rgba(0,0,0,.56);
  backdrop-filter: blur(4px);
  z-index: 1099;
  opacity: 0; pointer-events: none;
  transition: opacity .28s ease;
}
.menu-overlay.visible{ opacity: 1; pointer-events: auto; }

/* Scrollbar polish (matches glass) */
.sidebar-menu-content::-webkit-scrollbar{ width: 8px; }
.sidebar-menu-content::-webkit-scrollbar-track{ background: transparent; }
.sidebar-menu-content::-webkit-scrollbar-thumb{
  background: linear-gradient(180deg, rgba(108,92,231,.45), rgba(253,121,168,.35));
  border-radius: 8px;
}

/* Compact phones */
@media (max-width: 360px){
  .menu-item{ padding: 11px 12px; gap: 12px; }
  .sidebar-menu-header{ padding-bottom: 16px; }
  .sidebar-menu-header::after{ bottom: -10px; }
}

/* Reduce motion: keep the look, disable movement */
@media (prefers-reduced-motion: reduce){
  .mobile-sidebar-menu, .menu-item, .menu-overlay{ transition: none !important; }
  .mobile-sidebar-menu::before, .mobile-sidebar-menu::after{ animation: none !important; }
  .sidebar-menu-header::before{ animation: none !important; }
}




/* Responsive adjustments */
@media (max-width: 768px) {
    .mobile-header {
        display: flex;
    }
    
    .middle-page {
        padding-top: 60px;
    }
}

.profile-btn {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(108, 92, 231, 0.2);
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-initial {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #6c5ce7, #fd79a8);
    color: white;
    font-weight: bold;
    font-size: 1rem;
}

/* Mobile dropdown */
/* Mobile Dropdown */
.mobile-dropdown {
    background: rgba(30, 33, 40, 0.95);
    border: 1px solid #2f3336;
    border-radius: 12px;
    padding: 10px 0;
    min-width: 180px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.4);
    backdrop-filter: blur(10px);
}

.dropdown-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #e7e9ea;
    text-decoration: none;
    font-size: 0.95rem;
    gap: 12px;
}

.dropdown-item i {
    width: 20px;
    text-align: center;
}

.dropdown-item:hover {
    background: rgba(108, 92, 231, 0.2);
}

/* Ensure post cards take full width on mobile */
@media (max-width: 768px) {
    .post-card {
        border-radius: 0;
        border-left: none;
        border-right: none;
        margin-bottom: 10px;
    }

    .mobile-header {
        display: block;
    }
    
    .desktop-search-container,
    .desktop-composer-container {
        display: none;
    }
    
    .search-bar,
    .post-composer,
    .trending-banner {
        border-radius: 0;
        margin-bottom: 10px;
    }
}

/* Tablet adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
        .mobile-header {
        display: none !important;
    }
    
    .desktop-search-container,
    .desktop-composer-container {
        display: block;
    }
    .post-card {
        max-width: 800px;
        margin: 0 auto 20px;
    }
}

@media (max-width: 407) {
    .post-actions {
        gap: 2px;
    }
}


/* Create Options */
/* Composer Modal Styles */
.composer-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1100;
    display: none;
    justify-content: center;
    align-items: center;
}

.composer-modal.show {
    display: flex;
}

.composer-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: -1;
}

.composer-modal-content {
    background: rgba(30, 33, 40, 0.95);
    border-radius: 16px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid #2f3336;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    z-index: 1101;
    margin: 20px;
}

.composer-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #2f3336;
    position: sticky;
    top: 0;
    background: rgba(30, 33, 40, 0.95);
    z-index: 1;
}

.composer-modal-header h2 {
    color: #e7e9ea;
    font-size: 1.3rem;
    margin: 0;
}

.composer-modal-close {
    background: none;
    border: none;
    color: #71767b;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.2s;
    padding: 5px;
}

.composer-modal-close:hover {
    color: #e74c3c;
}

.composer-modal-body {
    padding: 20px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .composer-modal-content {
        margin: 10px;
        max-height: 85vh;
        border-radius: 12px;
    }
    
    .composer-modal-header {
        padding: 15px;
    }
    
    .composer-modal-body {
        padding: 15px;
    }
    
    .post-composer {
        border-radius: 0;
        box-shadow: none;
        margin-bottom: 0;
    }
}

/* ==========================================================
   Battlefield link — hero treatment (mobile sidebar)
   ========================================================== */

/* Base emphasis */
.sidebar-menu-nav a[href*="battlefield.php"]{
  position: relative;
  background: linear-gradient(90deg, rgba(108,92,231,.22), rgba(253,121,168,.18));
  border: 1px solid rgba(108,92,231,.45);
  box-shadow: 0 8px 22px rgba(108,92,231,.22), inset 0 0 0 1px rgba(255,255,255,.06);
  transform: translateX(0); /* ensure a stable base for animations */
}

/* Subtle breathing halo behind the pill */
.sidebar-menu-nav a[href*="battlefield.php"]::before{
  content:"";
  position:absolute; inset:-2px;
  border-radius:14px;
  background: conic-gradient(from 0deg,
              rgba(108,92,231,.35),
              rgba(253,121,168,.30),
              rgba(108,92,231,.35));
  filter: blur(14px);
  z-index:-1;
  opacity:.55;
  animation: bfHaloSpin 10s linear infinite, bfHaloPulse 2.8s ease-in-out infinite;
}

/* Small LIVE chip top-right */
.sidebar-menu-nav a[href*="battlefield.php"]::after{
  position:absolute; top:6px; right:10px;
  font-size:.70rem; font-weight:800; letter-spacing:.06em;
  color:#0e0a18;
  padding:3px 8px; border-radius:999px;
  background: linear-gradient(90deg, #ffd54a, #ff8a00);
  box-shadow: 0 2px 10px rgba(255,138,0,.35), inset 0 1px 0 rgba(255,255,255,.65);
  overflow:hidden;
}
.sidebar-menu-nav a[href*="battlefield.php"]::after{
  /* shiny sweep */
  --shine:linear-gradient(90deg, transparent, rgba(255,255,255,.7), transparent);
  background-image: linear-gradient(90deg, #ffd54a, #ff8a00), var(--shine);
  background-size: 100% 100%, 180% 100%;
  background-position: 0 0, -120% 0;
  animation: bfBadgeShine 2.2s ease-in-out infinite;
}

/* Make the label itself gradient + bolder */
.sidebar-menu-nav a[href*="battlefield.php"] span:last-child{
  background: linear-gradient(90deg, #6c5ce7, #fd79a8);
  -webkit-background-clip:text; background-clip:text; color:transparent;
  font-weight:800;
}

/* Animate the swords icon: brief clash wiggle */
.sidebar-menu-nav a[href*="battlefield.php"] .material-symbols-outlined,
.sidebar-menu-nav a[href*="battlefield.php"] i{
  animation: bfClash 2.6s ease-in-out infinite;
  transform-origin: 50% 60%;
}

/* Stronger on hover/active */
.sidebar-menu-nav a[href*="battlefield.php"]:hover{
  background: linear-gradient(90deg, rgba(108,92,231,.28), rgba(253,121,168,.24));
  border-color: rgba(108,92,231,.65);
  box-shadow: 0 10px 26px rgba(108,92,231,.28);
}

/* Keyframes */
@keyframes bfHaloSpin { to { transform: rotate(360deg); } }
@keyframes bfHaloPulse {
  0% { opacity:.45; }
  50%{ opacity:.7;  filter: blur(16px); }
  100%{ opacity:.45; filter: blur(14px); }
}
@keyframes bfBadgeShine {
  0%   { background-position: 0 0, -140% 0; }
  50%  { background-position: 0 0,  120% 0; }
  100% { background-position: 0 0, -140% 0; }
}
@keyframes bfClash {
  0%,78%,100% { transform: rotate(0deg) scale(1); text-shadow:none; }
  82%         { transform: rotate(-14deg) scale(1.05); }
  88%         { transform: rotate(14deg)  scale(1.05); }
  94%         { transform: rotate(0deg)   scale(1); text-shadow:0 0 10px rgba(255,255,255,.7); }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce){
  .sidebar-menu-nav a[href*="battlefield.php"],
  .sidebar-menu-nav a[href*="battlefield.php"]::before,
  .sidebar-menu-nav a[href*="battlefield.php"]::after,
  .sidebar-menu-nav a[href*="battlefield.php"] .material-symbols-outlined,
  .sidebar-menu-nav a[href*="battlefield.php"] i{
    animation:none !important;
  }
}

/* ==========================================================
   Go Premium — gentle emphasis (below Battlefield)
   ========================================================== */

.sidebar-menu-nav .menu-item.premium-item{
  position: relative;
  background: linear-gradient(90deg, rgba(255,215,0,.08), rgba(108,92,231,.10));
  border: 1px solid rgba(255,215,0,.28);
  box-shadow: 0 6px 18px rgba(255,215,0,.12);
  transition: background .22s ease, border-color .22s ease, box-shadow .22s ease, transform .22s ease;
}

/* Thin gold accent bar (more subtle than before) */
.sidebar-menu-nav .menu-item.premium-item::after{
  content:"";
  position:absolute; top:0; right:0; width: 2px; height:100%;
  background: linear-gradient(180deg, #ffd700, #ffe27a);
  border-radius: 0 14px 14px 0;
  opacity:.6;
}

/* Soft breath halo (very low-key) */
.sidebar-menu-nav .menu-item.premium-item::before{
  content:"";
  position:absolute; inset:-4px;
  border-radius:14px;
  background: radial-gradient(50% 60% at 85% 50%, rgba(255,215,0,.18) 0%, transparent 60%);
  filter: blur(10px);
  opacity:.35;
  pointer-events:none;
  animation: premBreath 4.8s ease-in-out infinite;
}

/* Crown: small twinkle every few seconds */
.sidebar-menu-nav .menu-item.premium-item i.fa-crown{
  color:#ffd700;
  filter: drop-shadow(0 0 6px rgba(255,215,0,.25));
  animation: crownTwinkle 7s ease-in-out infinite;
}

/* Hover/pressed: a touch brighter, still secondary to Battlefield */
.sidebar-menu-nav .menu-item.premium-item:hover{
  background: linear-gradient(90deg, rgba(255,215,0,.14), rgba(108,92,231,.14));
  border-color: rgba(255,215,0,.42);
  box-shadow: 0 8px 22px rgba(255,215,0,.18);
  transform: translateX(3px);
}
.sidebar-menu-nav .menu-item.premium-item:active{
  transform: translateX(1px) scale(.99);
}

/* Keyframes (subtle) */
@keyframes premBreath{
  0%,100%{ opacity:.28; filter: blur(8px); }
  50%    { opacity:.45; filter: blur(12px); }
}
@keyframes crownTwinkle{
  0%,86%,100% { transform: scale(1); text-shadow:none; }
  90%         { transform: scale(1.06); text-shadow:0 0 10px rgba(255,215,0,.65); }
  94%         { transform: scale(1); }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce){
  .sidebar-menu-nav .menu-item.premium-item::before,
  .sidebar-menu-nav .menu-item.premium-item i.fa-crown{
    animation: none !important;
  }
}














