/* VocabArena shared layout */
.va-app-shell {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

.va-sidebar {
    width: 16rem;
    flex-shrink: 0;
    background: #0D233A;
    color: #fff;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    display: none;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    z-index: 40;
}

@media (min-width: 768px) {
    .va-sidebar {
        display: flex;
    }
}

.va-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    transition: color 0.2s, background 0.2s;
    min-height: 44px;
}

.va-nav-link:hover {
    color: #00A3E0;
}

.va-nav-link.is-active {
    background: #00A3E0;
    color: #fff;
    font-weight: 700;
    box-shadow: 0 10px 15px -3px rgba(0, 163, 224, 0.2);
}

.va-mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 30;
}

@media (min-width: 768px) {
    .va-mobile-header {
        display: none;
    }
}

.va-menu-btn {
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.25rem;
    color: #0D233A;
    background: #F4F7FA;
    border: 1px solid #e2e8f0;
}

.va-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 15, 31, 0.6);
    z-index: 45;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s;
}

.va-drawer-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

.va-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: min(18rem, 88vw);
    height: 100%;
    background: #0D233A;
    color: #fff;
    z-index: 50;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.va-drawer.is-open {
    transform: translateX(0);
}

.va-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #0D233A;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    z-index: 35;
    padding-bottom: env(safe-area-inset-bottom, 0);
}

@media (min-width: 768px) {
    .va-bottom-nav {
        display: none;
    }
}

.va-bottom-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    padding: 0.5rem 0.25rem;
    min-height: 56px;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.55);
    transition: color 0.2s;
}

.va-bottom-link i {
    font-size: 1.1rem;
}

.va-bottom-link.is-active,
.va-bottom-link:hover {
    color: #00A3E0;
}

.va-footer {
    border-top: 1px solid #e2e8f0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    padding: 1rem 1.25rem;
    margin-top: auto;
}

.va-footer--dark {
    border-top-color: rgba(255, 255, 255, 0.08);
    background: rgba(0, 15, 31, 0.92);
}

.va-footer-inner {
    max-width: 72rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-align: center;
}

.va-footer-text {
    font-size: 0.65rem;
    line-height: 1.5;
    color: #64748b;
}

.va-footer--dark .va-footer-text {
    color: rgba(255, 255, 255, 0.55);
}

.va-footer-text .va-brand {
    font-weight: 800;
    color: #0D233A;
}

.va-footer--dark .va-footer-text .va-brand {
    color: #fff;
}

.va-footer-text .va-designer {
    font-weight: 800;
    color: #00A3E0;
}

.va-page-pad {
    padding: 1rem;
}

@media (min-width: 768px) {
    .va-page-pad {
        padding: 2rem;
    }
}

body.va-has-bottom-nav {
    padding-bottom: 4.5rem;
}

@media (min-width: 768px) {
    body.va-has-bottom-nav {
        padding-bottom: 0;
    }
}
