/**
 * NoSpace Topbar Styles
 * Theme switcher and utility navigation
 */

/* ========================================
   Topbar Container
   ======================================== */
.container-topbar {
    background: rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.5rem 2rem;
}

.topbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
/*    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
*/    
}

/* ========================================
   Topbar Left (Theme Switcher + Hamburger)
   ======================================== */
.topbar-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Hamburger in topbar - always visible */
.topbar-hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px;
    z-index: 1001;
    transition: all 0.3s ease;
}

.topbar-hamburger .hamburger-line {
    display: block;
    width: 100%;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.topbar-hamburger:hover .hamburger-line {
    background: rgba(255, 255, 255, 0.8);
}

.topbar-hamburger[aria-expanded="true"] .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.topbar-hamburger[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0;
}

.topbar-hamburger[aria-expanded="true"] .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ========================================
   Theme Switcher Button
   ======================================== */
.theme-switcher {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    font-size: 1.1rem;
}

.theme-switcher:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(15deg) scale(1.1);
}

.theme-switcher:active {
    transform: rotate(15deg) scale(0.95);
}

/* Theme icons */
.theme-icon {
    display: none;
}

.theme-icon.active {
    display: block;
}

/* ========================================
   Topbar Right (Social Icons)
   ======================================== */
.topbar-right {
    display: flex;
    align-items: center;
}

.topbar-social {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.topbar-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: white;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.topbar-social a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* ========================================
   Responsive Mobile
   ======================================== */
@media (max-width: 992px) {
    .container-topbar {
        padding: 0.5rem 1rem;
    }
    
    .topbar-content {
        gap: 1rem;
    }
    
    /* Social icons stay visible on mobile */
    .topbar-social {
        gap: 0.5rem;
    }
    
    .topbar-social a {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .container-topbar {
        padding: 0.5rem 0.75rem;
    }
    
    .theme-switcher {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
    
    .topbar-hamburger {
        width: 32px;
        height: 32px;
    }
}
