/* Sidebar Navigation Styles */
/* Inspired by DoorList */

.app-layout {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

.mobile-only {
    display: none !important;
}

/* Sidebar Container */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 260px;
    height: 100vh;
    background: rgba(10, 5, 5, 0.95);
    backdrop-filter: blur(20px);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2rem 1.5rem;
    z-index: 1000;
}

/* Sidebar Top (Logo) */
.sidebar-top {
    margin-bottom: 3rem;
}

.sidebar-top .logo img {
    height: 40px;
    /* Slightly larger in sidebar context */
}

/* Sidebar Menu (Links) */
.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex-grow: 1;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    color: var(--color-text-muted);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    transition: all 0.2s ease;
}

.sidebar-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    transform: translateX(4px);
}

.sidebar-link .icon {
    font-size: 1.2rem;
}

/* Mobile Socials (Hidden on Desktop) */
.mobile-socials-container {
    display: none;
}

/* Legal Dropdown Styles */
.sidebar-dropdown summary {
    list-style: none;
    /* Remove default triangle */
    cursor: pointer;
    justify-content: space-between;
}

.sidebar-dropdown summary::-webkit-details-marker {
    display: none;
}

.dropdown-arrow {
    font-size: 0.7em;
    opacity: 0.5;
    transition: transform 0.2s ease;
}

.sidebar-dropdown[open] .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-content {
    display: flex;
    flex-direction: column;
    margin-left: 20px;
    margin-top: 4px;
    gap: 4px;
    padding-left: 10px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-sublink {
    padding: 8px 12px;
    color: var(--color-text-muted);
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.sidebar-sublink:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

/* Sidebar Bottom (Socials) */
.sidebar-bottom {
    margin-top: auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-socials {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

/* Main Content Area */
.main-content {
    margin-left: 260px;
    /* Match sidebar width */
    flex-grow: 1;
    width: calc(100% - 260px);
    background-color: var(--color-bg);
    padding: 0 5%;
    /* Add generous side padding for tiles/text */
}

/* Hero Variant for Sidebar Layout */
.hero-sidebar-variant {
    /* Remove sticky header compensation since nav is gone */
    height: 100vh;
    padding-top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Ensure padding doesn't affect centering but keeps max width */
    padding-left: 0;
    padding-right: 0;
}

/* Hero Variant for Sidebar Layout */
.hero-sidebar-variant {
    /* Remove sticky header compensation since nav is gone */
    height: 100vh;
    padding-top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* Responsive Styles for Sidebar */
@media (max-width: 768px) {
    .app-layout {
        flex-direction: column;
    }

    .sidebar {
        position: fixed;
        bottom: 0;
        top: auto;
        left: 0;
        width: 100%;
        height: 70px;
        /* Bottom bar height */
        padding: 0 1.5rem;
        flex-direction: row;
        align-items: center;
        border-right: none;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        background: rgba(10, 5, 5, 0.98);
        justify-content: space-between;
        /* Logo Left, Links Right */
    }

    .sidebar-top {
        margin-bottom: 0;
        display: block;
        /* Show logo container */
    }

    .sidebar-top .logo img {
        height: 32px;
        /* Small logo for mobile */
        display: block;
    }

    .sidebar-menu {
        flex-direction: row;
        gap: 1rem;
        justify-content: flex-end;
        /* Push links to the right */
        width: auto;
        /* Don't take full width */
        align-items: center;
        flex-grow: 0;
    }

    .sidebar-link {
        flex-direction: column;
        gap: 4px;
        font-size: 0.7rem;
        padding: 8px;
        text-transform: capitalize;
        white-space: nowrap;
    }

    .sidebar-link .icon {
        font-size: 1.2rem;
    }

    /* Mobile Socials in Bottom Bar - HIDDEN per new request to declutter */
    .mobile-socials-container {
        display: none;
    }

    /* Hide Desktop-only elements on Mobile */
    .desktop-only {
        display: none !important;
    }

    /* Show Mobile-only elements */
    .mobile-only {
        display: flex !important;
    }

    .sidebar-bottom {
        display: none;
        /* Hide footer social icons on mobile bottom bar */
    }

    .main-content {
        margin-left: 0;
        width: 100%;
        margin-bottom: 70px;
        /* Space for bottom bar */
        padding: 0;
        /* Reset padding for mobile if needed, or keep for spacing */
    }
}