/* ============================================
   CLEAN TWO-COLUMN LAYOUT
   Left Sidebar + Main Content Only
   ============================================ */

body {

    font-size: var(--base-font-size);
  
    background-color: var(--bg-primary) !important;
    padding-top: var(--navbar-height);
    color: var(--text-color);

}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    background-color: var(--bg-secondary) !important;
    border-bottom: 1px solid var(--borderpost);
    backdrop-filter: blur(12px);
    min-height: 56px;
    padding: 0.5rem 1rem;
    background: var(--bg-secondary) !important;
    box-shadow: var(--shadow);
    transition: var(--transition);
   
}

.navbar .container-xl {
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
}
.navbar-brand {
    font-size: 1.5rem;
    display: flex;
    flex-direction: row;
    align-items: center; 
    gap: 12px;  
    text-decoration: none;
    transition: var(--transition);

}
/* Container for the Name and Slogan: Stacks them vertically */
.brand-text-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.1; /* Tighter line height for the brand "block" */
}
.navbar-brand-text {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; /* A clean, modern font */
  font-size: 1.25rem;          /* Large size */
  font-weight: 700;           /* Bold text */
  letter-spacing: 0.5px;        /* Slightly increased letter spacing */  
}
.navbar-slogan {
    font-size: 0.7rem;
    color: var(--text-secondary);
    font-style: italic;
    letter-spacing: 1px;
    margin-top: 2px;
    opacity: 0.8;
    font-weight: 300;
    white-space: nowrap;
    animation: fadeIn 1s ease-in;
}

.brand-vent {
    color: var(--primary) !important;
    font-weight: 800;
}

.brand-anon {
    color: var(--text-secondary) !important;
    font-weight: 700;
}

.navbar-brand:hover {
    transform: scale(1.02);
}

/* Notification Badge */
.notification-badge {
    font-size: 0.65rem;
    padding: 0.25em 0.45em;
    min-width: 18px;
}


/* Profile Avatar */
.profile-avatar {
    width: 34px;
    height: 34px;
    object-fit: cover;
    border: 2px solid var(--primary);
    transition: var(--transition);
    cursor: pointer;
}

.profile-avatar:hover {
    transform: scale(1.1);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

/* Dropdown Menus */
.dropdown-menu {
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    padding: 0.5rem;
    margin-top: 0.5rem;
    min-width: 200px;
}

.dropdown-item {
    border-radius: 8px;
    padding: 0.625rem 1rem;
    transition: var(--transition);
    font-weight: 500;
}

.dropdown-item:hover {
    background: var(--navbar-hover);
    color: var(--primary);
}

.dropdown-item.active {
    background: var(--primary);
    color: white;
}

      /* Language Switcher */
        .language-switcher {
            display: flex;
            align-items: center;
            gap: 0.25rem;
        }

/* ============================================
   MAIN LAYOUT - TWO COLUMNS
   ============================================ */
.layout-container {
   /*  padding-top: 25px; */
    padding-bottom: 40px;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
}

@media (max-width: 991.98px) {
    .layout-container {
        padding-top: 20px;
        padding-bottom: 24px;
    }
}

/* Content wrapper takes remaining space */
.content-wrapper {
    width: 100%;
    max-width: 900px;
}

/* ============================================
   SIDEBAR - LEFT ONLY
   ============================================ */
.sidebar-desktop {
    background-color: var(--lightbg);
}

@media (min-width: 992px) {
    .sidebar-desktop {
        position: sticky;
        top: 72px;
        max-height: calc(100vh - 88px);
        overflow-y: auto;
        padding-right: 1.5rem;
    }
}

/* ============================================
   ACCORDION
   ============================================ */
.accordion-button {
    background-color: var(--cardbody);
    color: var(--text-color);
    font-size: 14px;
    font-weight: 700;
    padding: 12px 16px;
    border: 1px solid var(--borderpost);
    border-radius: 8px;
}

.accordion-button:not(.collapsed) {
    background-color: var(--hover);
    border-color: var(--borderpost);
}

.accordion-body {
    font-size: 14px;
    color: var(--text-color);
    padding: 12px 16px;
}

.category-header {
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    background-color: var(--main-ink);
}

/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--lightbg);
}

::-webkit-scrollbar-thumb {
    background: var(--grey);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-light);
}

/* ============================================
    TAGS
   ============================================ */

    .post-tags {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        flex-wrap: wrap;
        margin-top: 1rem;
        padding-top: 1rem;
    
    }
    
    .tag-badge {
        display: inline-flex;
        align-items: center;
        gap: 0.25rem;
        padding: 0.375rem 0.75rem;
        background: linear-gradient(135deg, var(--bg-primary) 0%, var( --bg-secondary) 100%);
        color:    var(--text-primary);
        text-decoration: none;
        border-radius: 20px;
        font-size: 0.8rem;
        font-weight: 500;
        transition: all 0.2s ease;
        border: 1px solid #e2e8f0;
    }
    
    .tag-badge:hover {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        border-color: #667eea;
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
    }
    
    .tag-badge i {
        font-size: 0.75rem;
        opacity: 0.7;
    }
    
    .tag-badge:hover i {
        opacity: 1;
    }
    
    /* Tag count badge */
    .tag-count {
        background: rgba(0, 0, 0, 0.1);
        padding: 0.125rem 0.375rem;
        border-radius: 10px;
        font-size: 0.7rem;
        margin-left: 0.25rem;
    }
    
    .tag-badge:hover .tag-count {
        background: rgba(255, 255, 255, 0.2);
    }




/* ============================================
   SEARCH OVERLAY
   ============================================ */
    /* Search Overlay */
        .search-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.8);
            backdrop-filter: blur(10px);
            z-index: 9999;
            display: flex;
            align-items: flex-start;
            justify-content: center;
            padding-top: 15vh;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.3s ease;
        }

        .search-overlay.active {
            opacity: 1;
            pointer-events: all;
        }

        .search-overlay .btn-close {
            position: absolute;
            top: 2rem;
            right: 2rem;
            background: white;
            opacity: 1;
            border-radius: 50%;
            padding: 1rem;
        }

        .search-overlay form {
            width: 90%;
            max-width: 600px;
        }

        .search-overlay .form-control {
            height: 60px;
            font-size: 1.25rem;
            border-radius: 16px;
            border: 2px solid var(--primary);
            padding: 0 1.5rem;
            background: white;
        }

        .search-overlay .form-control:focus {
            box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.2);
        }


/* ============================================
   NAVBAR ACTIONS
   ============================================ */
.navbar-actions {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    white-space: nowrap;
    gap: 0.5rem;
}

.nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem;
    color: inherit;
    text-decoration: none;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.nav-icon:hover {
    background-color: rgba(0,0,0,0.05);
}

.navbar .dropdown-menu {
    margin-top: 0.5rem;
}

/* Mobile Menu Toggle */
        .mobile-menu-toggle {
            background: transparent;
            border: none;
            font-size: 1.25rem;
            border-radius: 8px;
            cursor: pointer;
            transition: var(--transition);
            display: flex;
            align-items: center;
            justify-content: center;
        }


        /* Mobile Offcanvas */
        .offcanvas {
            border: none;
            box-shadow: -4px 0 16px rgba(0,0,0,0.12);
        }

        .offcanvas-header {
            background: linear-gradient(135deg, var(--primary) 0%, #764ba2 100%);
            color: white;
            padding: 1.5rem;
        }

        .offcanvas-title {
            font-weight: 700;
            font-size: 1.25rem;
        }

        .offcanvas-body {
            padding: 1.5rem;
        }

/* ============================================
   MOBILE SIDEBAR TOGGLE (NOT USED BUT KEPT)
   ============================================ */
.sidebar-toggle-right {
    display: none; /* Hidden since no right sidebar */
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (min-width: 992px) {
    .navbar {
        padding: 0.4rem 1rem;
    }

    .navbar-brand {
        font-size: 1rem;
    }

}

@media (max-width: 767.98px) {
    .navbar .container-xl {
        padding: 0 0.75rem;
    }
    
    .layout-container {
        padding-left: 0 !important; 
        padding-right: 0 !important;
        max-width: 100%;
        overflow-x: hidden; /* Prevents side scroll if an image is too wide */
    }
    
    .navbar-actions {
        gap: 0.25rem;
    }
    
    .nav-icon {
        padding: 0.3rem;
    }
}


    /* Responsive */
        @media (max-width: 768px) {
            .navbar-brand-text {
                font-size: 1.25rem;
            }
            .navbar-brand img {
                height: 26px !important;
                width: auto;
              
            }
            .nav-icon {
                width: 36px;
                height: 36px;
                font-size: 1.1rem;
            }

            .search-overlay {
                padding-top: 10vh;
            }
            .profile-avatar {
                width: 32px;
                height: 32px;
              
            }
        }

        /* Toast Notifications */
        .toast-container {
            z-index: 10000;
        }

        .toast {
            border-radius: 12px;
            border: none;
            box-shadow: 0 4px 16px rgba(0,0,0,0.15);
        }

        /* Scrollbar */
        ::-webkit-scrollbar {
            width: 8px;
        }

        ::-webkit-scrollbar-track {
            background: #f1f1f1;
        }

        ::-webkit-scrollbar-thumb {
            background: var(--primary);
            border-radius: 4px;
        }

        ::-webkit-scrollbar-thumb:hover {
            background: var(--primary-dark);
        }