/* ==========================================================================
   MATRITSATA - OFF-CANVAS NAVIGATION DRAWER (#mobileNavDrawer)
   ========================================================================== */
.matritsata-mobile-drawer {
    position: fixed;
    inset: 0;
    z-index: 100050;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1),
        visibility 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.matritsata-mobile-drawer.is-active {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.drawer-backdrop {
    position: absolute;
    inset: 0;
    background-color: rgba(6, 6, 8, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    cursor: pointer;
    touch-action: none;
}

.drawer-panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 340px;
    background-color: #0B0B0E;
    border-left: 1px solid #1E1E24;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -10px 0 35px rgba(0, 0, 0, 0.8);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    z-index: 2;
}

.matritsata-mobile-drawer.is-active .drawer-panel {
    transform: translateX(0);
}

.drawer-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid #1E1E24;
    background-color: #070709;
}

.site-brand-drawer .site-logo-img {
    height: 32px;
    max-width: 200px;
}

.btn-drawer-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    color: #8E8E93;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-drawer-close:hover {
    color: #FFFFFF;
    background-color: rgba(255, 255, 255, 0.08);
}

.drawer-content-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    scrollbar-width: thin;
    scrollbar-color: #242428 transparent;
}

/* User Profile in Drawer */
.drawer-user-section {
    border-bottom: 1px solid #1A1A20;
    padding-bottom: 16px;
}

.drawer-user-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: #121216;
    border: 1px solid #202026;
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
}

.drawer-user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--color-accent-red);
    flex-shrink: 0;
}

.drawer-user-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.drawer-user-name {
    font-size: 0.88rem;
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.drawer-user-role {
    font-size: 0.68rem;
    color: var(--color-accent-red);
    font-weight: 700;
    text-transform: uppercase;
}

.drawer-user-actions {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.drawer-action-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: #121216;
    border: 1px solid #1C1C22;
    border-radius: var(--radius-sm);
    color: #D2D2D6;
    font-size: 0.78rem;
    font-weight: 600;
    transition: all var(--transition-fast);
}

.drawer-action-link:hover {
    background: #1A1A20;
    color: #FFFFFF;
}

.drawer-action-link svg {
    color: var(--color-accent-red);
    width: 15px;
    height: 15px;
}

.drawer-link-admin {
    color: #FFD27D !important;
    border-color: rgba(255, 210, 125, 0.25) !important;
}

.drawer-link-logout {
    color: #FF6B6B !important;
}

/* Guest Box in Drawer */
.drawer-guest-box {
    background: #121216;
    border: 1px solid #1F1F24;
    border-radius: var(--radius-sm);
    padding: 14px;
}

.drawer-guest-title {
    font-size: 0.9rem;
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 4px;
}

.drawer-guest-desc {
    font-size: 0.75rem;
    line-height: 1.45;
    color: #8E8E94;
    margin-bottom: 12px;
}

.drawer-guest-btns {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.drawer-btn-login {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: var(--color-accent-red);
    color: #FFFFFF;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 9px;
    border-radius: var(--radius-sm);
    transition: background-color var(--transition-fast);
}

.drawer-btn-login:hover {
    background: var(--color-accent-red-hover);
}

.drawer-btn-reg {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-accent-red);
    text-align: center;
    padding: 3px;
}

/* Navigation Groups */
.drawer-nav-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.drawer-section-title {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #72727A;
    display: flex;
    align-items: center;
    gap: 6px;
}

.drawer-section-title .square-bullet {
    width: 5px;
    height: 5px;
    background-color: var(--color-accent-red);
}

.drawer-categories-list,
.drawer-info-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin: 0;
    padding: 0;
}

.drawer-categories-list a,
.drawer-info-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    color: #C0C0C6;
    font-size: 0.84rem;
    font-weight: 600;
    transition: all var(--transition-fast);
}

.drawer-categories-list a:hover,
.drawer-info-list a:hover {
    background-color: #17171C;
    color: #FFFFFF;
}

.drawer-categories-list li.active a {
    border-left: 3px solid var(--color-accent-red);
    background-color: #17171C;
    color: #FFFFFF;
    font-weight: 700;
}

.drawer-item-accent a {
    color: var(--color-accent-red) !important;
    font-weight: 700 !important;
}

.drawer-badge-red {
    font-size: 0.62rem;
    font-weight: 800;
    text-transform: uppercase;
    background: rgba(229, 9, 20, 0.15);
    border: 1px solid var(--color-accent-red);
    color: var(--color-accent-red);
    padding: 2px 6px;
    border-radius: 2px;
}

.drawer-signal-link {
    color: var(--color-accent-red) !important;
    background: rgba(229, 9, 20, 0.08) !important;
    border: 1px dashed rgba(229, 9, 20, 0.35);
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.drawer-footer-socials {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding-top: 12px;
    margin-top: auto;
    border-top: 1px solid #1A1A20;
}

.drawer-footer-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: var(--radius-sm);
    background-color: #141418;
    color: #8E8E93;
    transition: all var(--transition-fast);
}

.drawer-footer-socials a:hover {
    background-color: var(--color-accent-red);
    color: #FFFFFF;
}