/* mobile-layout.css - VNTA Mobile App Shell, Stocks Mini cards and touch feedback */
html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
    background-color: var(--vnta-background);
    color: var(--vnta-text-main);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: var(--vnta-font-body, 14px);
    line-height: var(--vnta-line-height-body, 1.45);
    letter-spacing: normal;
    -webkit-font-smoothing: antialiased;
    touch-action: manipulation;
}

#app { height: 100%; display: flex; flex-direction: column; }

button,
input,
textarea,
select {
    font: inherit;
}

a,
button,
input,
textarea,
select,
[tabindex]:not([tabindex="-1"]) {
    -webkit-tap-highlight-color: transparent;
}

:focus-visible {
    outline: 0;
    box-shadow: var(--mobile-focus-ring);
}

.mobile-app-shell {
    width: 100%;
    max-width: 480px;
    height: 100dvh;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background-color: var(--vnta-background);
}

.mobile-main-content,
.mobile-subpage-content {
    flex: 1 1 auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    padding: 16px;
    scroll-padding-bottom: calc(var(--bottom-nav-height) + max(16px, var(--safe-area-bottom)));
}

.mobile-main-content { padding-bottom: calc(var(--bottom-nav-height) + max(16px, var(--safe-area-bottom))); }
.mobile-subpage-content { padding-bottom: calc(var(--action-bar-height) + max(16px, var(--safe-area-bottom))); }

.mobile-card {
    margin-bottom: 12px;
    padding: 16px;
    background-color: var(--vnta-surface-card);
    border: 1px solid var(--vnta-border);
    border-radius: var(--vnta-radius-md);
    box-shadow: var(--vnta-shadow-sm);
}

.mobile-card-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: var(--min-touch-target);
    padding: 12px 0;
}

.mobile-card-row + .mobile-card-row { border-top: 1px solid var(--vnta-separator); }
.mobile-separator { height: 1px; margin: 12px 0; background-color: var(--vnta-separator); }

.touch-target,
.mobile-tap-feedback { min-width: var(--min-touch-target); min-height: var(--min-touch-target); }
.touch-target { display: inline-flex; align-items: center; justify-content: center; }
.touch-target:active,
.mobile-tap-feedback:active { opacity: 0.88; transform: scale(0.97); }

.mobile-bottom-sheet-body {
    max-height: min(70dvh, 620px);
    padding: 12px 16px calc(24px + var(--safe-area-bottom));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scroll-padding-bottom: calc(24px + var(--safe-area-bottom));
}

.mobile-bottom-sheet-popup .dxbl-popup { overflow: hidden; border-radius: 20px 20px 0 0; }

.mobile-subpage-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-right: 16px;
    padding-bottom: 12px;
    padding-left: 12px;
    color: var(--vnta-text-main);
    background: var(--vnta-surface);
    border-bottom: 1px solid var(--vnta-border);
}

.mobile-subpage-header__title {
    font-size: var(--vnta-font-subtitle, 16px);
    font-weight: 700;
    line-height: var(--vnta-line-height-subtitle, 1.35);
}

.mobile-subpage-header__subtitle {
    font-size: var(--vnta-font-caption, 12px);
    color: var(--vnta-text-muted);
    line-height: var(--vnta-line-height-caption, 1.4);
}

.mobile-icon-button {
    min-width: var(--min-touch-target);
    min-height: var(--min-touch-target);
    padding: 4px;
    color: var(--vnta-primary);
    background: transparent;
    border: 0;
    cursor: pointer;
    font-size: var(--vnta-font-body, 14px);
}

.mobile-subpage-action-bar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 50;
    display: flex;
    gap: 10px;
    min-height: var(--action-bar-height);
    box-sizing: border-box;
    padding: 12px 16px;
    padding-bottom: calc(12px + var(--safe-area-bottom));
    background: var(--vnta-surface);
    border-top: 1px solid var(--vnta-border);
    box-shadow: var(--mobile-bar-shadow);
}

.mobile-loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: var(--mobile-overlay);
}

.mobile-loading-overlay__card {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 176px;
    padding: 16px;
    color: var(--vnta-text-main);
    background: var(--vnta-surface);
    border-radius: var(--vnta-radius-md);
    box-shadow: var(--vnta-shadow-lg);
    font-size: 14px;
    font-weight: 700;
}

.mobile-loading-overlay__spinner {
    width: 22px;
    height: 22px;
    border: 3px solid var(--vnta-primary-light);
    border-top-color: var(--vnta-primary);
    border-radius: 50%;
    animation: mobileSpin 0.75s linear infinite;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes mobileSpin { to { transform: rotate(360deg); } }

.mobile-route-not-found {
    display: grid;
    justify-items: center;
    gap: 12px;
    max-width: 28rem;
    margin: auto;
    padding: 24px;
    text-align: center;
}

.mobile-route-not-found h3,
.mobile-route-not-found p {
    margin: 0;
}

.mobile-route-not-found p {
    color: var(--vnta-text-muted);
}

.mobile-route-not-found__icon {
    font-size: 48px;
}

.mobile-route-not-found__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 4px;
    padding: 10px 20px;
    color: var(--vnta-primary-foreground);
    background: var(--vnta-primary);
    border-radius: var(--vnta-radius-md);
    font-weight: var(--dxds-font-weight-base-strong, 700);
    text-decoration: none;
}

.mobile-boot-splash {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100dvh;
    color: var(--vnta-primary-foreground);
    background: var(--vnta-primary);
    font-family: inherit;
}

.mobile-boot-splash__title {
    margin-bottom: 8px;
    font-size: 24px;
    font-weight: 700;
}

.mobile-boot-splash__subtitle {
    opacity: 0.8;
    font-size: 14px;
}

:is(button, input, textarea, select)[disabled],
[aria-disabled="true"] {
    cursor: not-allowed;
    opacity: var(--mobile-disabled-opacity);
}

@supports not (height: 100dvh) {
    .mobile-app-shell {
        height: 100vh;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (max-width: 480px) {
    .mobile-app-shell { max-width: none; }
}

/* ═════════════════════════════════════════════════════════════════════════════
   SAMSUNG GALAXY TAB A11 & TABLET RESPONSIVE RULES (Viewport >= 768px)
   ═════════════════════════════════════════════════════════════════════════════ */
@media (min-width: 768px) {
    .mobile-app-shell {
        max-width: 1024px;
        box-shadow: 0 0 32px rgba(11, 60, 93, 0.08);
        border-left: 1px solid var(--vnta-border, #E2E8F0);
        border-right: 1px solid var(--vnta-border, #E2E8F0);
    }

    .mobile-main-content,
    .mobile-subpage-content {
        padding: 20px 24px;
    }

    .workshop-stat-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 14px !important;
    }

    .workshop-form-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .workshop-team-card {
        padding: 18px !important;
    }
}
