/* AVCKS v3.0 - Mobile Responsive Styles */
/* Applies at max-width: 1024px */

#app-container {
    display: flex; flex-direction: column;
    height: 100vh; padding: 0;
}

.hud-top-bar {
    height: 80px; padding: 10px 15px;
}

.content-wrapper {
    flex-direction: column;
    overflow-y: auto;
    height: calc(100vh - 80px);
    padding: 10px;
    gap: 15px;
}

.hud-main {
    flex: none;
    height: auto;
    max-height: 50vh;
    padding-bottom: 0;
}

.hud-sidebar {
    width: 100%;
    order: 2;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    height: auto;
    overflow: visible;
}

.hud-footer {
    height: auto;
    min-height: 250px;
    order: 1;
}

/* Larger touch targets */
.icon-btn {
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
}

#cmd-input {
    font-size: 16px; /* Prevents iOS zoom */
    padding: 10px 14px;
}

.hub-category-grid {
    grid-template-columns: repeat(auto-fill, minmax(85px, 1fr));
}

.hub-item {
    padding: 10px 6px;
}

.search-window {
    width: 95vw;
    height: 75vh;
}

.profile-advance {
    width: 95vw !important;
    height: 85vh;
}

.auth-card {
    width: 90vw;
    padding: 30px 20px;
}

/* Resize handle bigger for touch */
#resize-handle {
    height: 16px;
    top: -8px;
}

#resize-handle::after {
    width: 50px;
    height: 4px;
    margin-top: 6px;
}

/* Small screens */
@media (max-width: 480px) {
    .hud-main {
        height: 200px;
    }

    .hud-sidebar {
        flex-direction: column;
        max-height: 120px;
        overflow-y: auto;
    }

    .widget {
        flex: none;
        width: 100%;
    }

    .logo-text {
        font-size: 0.9rem;
    }

    .version {
        display: none;
    }

    .hub-container {
        width: 95vw;
    }
}
