/* Top bar section */
.top-bar {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background-color: rgba(0, 0, 0, 0.2);
    color: white;
    z-index: 10;
    backdrop-filter: blur(1px); /* Blurred effect */
    -webkit-backdrop-filter: blur(1px); /* Safari support */
}

.top-bar.published{
    /*background-color: #030e00b3;*/
    background-color: rgba(0, 0, 0, 0.2);
}

.top-bar .hamburger-menu{
    font-size: 1.3em;
    margin-right: 10px;
    padding: 8px;

    border-radius: 5px;
}

.top-bar .hamburger-menu.dark{
    color: #111;
}
.top-bar .hamburger-menu:hover{
     background: none;
     backdrop-filter: none;
    -webkit-backdrop-filter: none;
    opacity: 1;
    box-shadow: var(--box-shadow-basic);
    }

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

.top-bar .user-image {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}

.top-bar .text-content h2 {
    font-size: 14px;
    margin: 0;
    font-weight: normal;
}

.top-bar .text-content p {
    font-size: 12px;
    opacity: 0.8;
    margin: 0;
    line-height: 12px;
}

.top-bar .actions {
    display: flex;
    align-items: center;
}

.top-bar .close-btn {
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    background: rgba(0, 0, 0, 0.3);
    width: 34px;
    height: 34px;
    line-height: 25px;
    text-align: center;
    border-radius: 17px;
    text-decoration: none;
}

.top-bar a.counter {
    font-size: 14px;
    opacity: 1;
    margin-right: 14px;
    color: #fff;
    text-decoration: none;
}

.top-bar a{
    color: #fff;
}

.top-bar .link {
    color: inherit;
    text-decoration: none;
    outline: none;
    border: 1px solid transparent;
    padding: 4px 8px;
    border-radius: 4px;
}

    .top-bar .link:hover{
        border-color: #fff;
    }

.top-bar .publish-button{
    background: #fff;
    color: #333;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 14px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 2px 2px 7px #00000033;
    display: none;
}

.top-bar .share-button{

    padding: 16px 12px;
    border-radius: 15px;
    font-size: 14px;
    text-decoration: none;
    text-align: center;
    font-weight: bold;
    box-shadow: rgba(0, 0, 0, 0.2) 1px 1px 2px 0px;
    display: block;
    color: #004313;
    background-color: #85ffa7;
    color: #111;
    background-color: #ffd700;
    margin-left: 0px;
}

.top-bar .share-button:hover{
    background: #59f083;
    background: #ffea15;
    color: #00290c;
    box-shadow: rgba(0,0,0,0.3) 2px 2px 3px 0px;
}

.top-bar .publish-button.unpublished{
    display: block;
}

.top-bar .publish-button:hover{
    background: #fff;
    box-shadow: 3px 3px 7px #00000055;
}

.top-bar.published .publish-button.unpublished{
    display: none;
}

.top-bar.published .publish-button.published{
    display: block;
}

.top-bar.published .publish-button{
    color: #70cf70;
    background: #ffffff1a;
}

.top-bar.published .publish-button:hover{
    background: #ffffff3a;
    box-shadow: 3px 3px 7px #00000055;
}

.top-bar .copy-username{
    margin-left: 3px;
}



/*Top Bar adn Menu Styling - will go to topbar.css*/
/* Dropdown Menu */
.dropdown-menu{
position: absolute;
    top: 50px;
    left: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    border-radius: 8px;
    padding: 10px 0;
    display: none;
    flex-direction: column;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    top: 0;
    top: 0vh;
    left: 0;
    border-radius: 0;
    height: 100vh;
    padding-top: 60px;
    width: 300px;
    max-width: 70%;
    z-index: -1;
    background-color: rgb(255 255 255);
    /* background-color: var(--background-color-accent); */
    color: #111;
    border-radius: 0px 30px 0px 0px;
    padding-left: 12px;
    padding-right: 12px;
    display: flex;
    transition: transform 0.3s ease-in-out;
    left: -300px; /* Start off-screen */
    width: 300px;
    overflow-y: scroll;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

 .dropdown-menu::-webkit-scrollbar {
        display: none;
    }

.dropdown-menu .dropdown-menu-nav{
    max-width: 100%;
    position: relative;
}



.dropdown-menu .dropdown-menu-nav a, .dropdown-menu .dropdown-menu-nav a.publish-button {
    transition: background 0.3s;
    text-decoration: none;
    color: #111;
    display: block;
    padding: 16px 12px;
    margin-bottom: 12px;
    border-radius: 10px;
    margin-left: 0px;
    font-size: 14px;
    vertical-align: middle;
    display: inline-block;
    width: 100%;
    
}

.dropdown-menu .dropdown-menu-nav a i{
    margin-right: 14px;
    font-size: 22px;
    vertical-align: middle;
    display: inline-block;
    width: 22px;
    text-align: center;
}

.dropdown-menu .dropdown-menu-nav a.publish-button.published{
    background-color: #ebf8eb;
    
}

.dropdown-menu .dropdown-menu-nav a:hover {

    background: #fafafa;
    color: #111;
    box-shadow: var(--box-shadow-basic);
}

/* Show menu when active */
.dropdown-menu.active {
    transform: translateX(300px);
}


.dropdown-menu-profile-section{
    text-align: center;
    width: 100%;
    margin-bottom: 16px;
    font-weight: normal;
    color: #666;
}

    .dropdown-menu-profile-section-slug{
        font-weight: bold;
        color: #111;
        position: relative;
        display: inline-block;
    }
    
        .dropdown-menu-profile-section-slug:hover{
            cursor: pointer;
        }

    .dropdown-menu-profile-section img.dropdown-menu-profile-image-icon{
        border-radius: 50%;
        width: 120px;
        height: 120px;
        display: block;
        margin: auto;
        margin-bottom: 12px;
        box-shadow: var(--box-shadow-profile-image);
        border: var(--profile-image-border);
        
    }

/* Overlay to block interactions */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2); /* Invisible but still blocks clicks */
    z-index: 1; /* Below menu but above everything else */
    display: none;
    backdrop-filter: blur(2px);
}

/* Show overlay when active */
.menu-overlay.active {
    display: block;
}