/* Temporary full-app gate for mobile clients (desktop-only product). */

/* Early shell in index.html: visible only before WASM boots on mobile. */
.mobile-gate-shell {
    display: none;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: var(--bg-primary, #0f1117);
    color: var(--text-primary, #e4e4e7);
    font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    box-sizing: border-box;
}

html[data-mobile-client="1"] .mobile-gate-shell {
    display: flex;
}

/* Once the Leptos app mounts it owns the gate page. */
html[data-app-booted="1"] .mobile-gate-shell {
    display: none !important;
}

.mobile-gate-shell .mobile-gate-card,
.mobile-gate-page .mobile-gate-card {
    background: var(--bg-secondary, #161922);
    border: 1px solid var(--border, #2a2d37);
    border-radius: 16px;
    padding: 40px 28px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 440px;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
}

.mobile-gate-shell .mobile-gate-title,
.mobile-gate-page .mobile-gate-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary, #e4e4e7);
    margin: 0 0 12px;
    line-height: 1.35;
}

.mobile-gate-shell .mobile-gate-body,
.mobile-gate-page .mobile-gate-body {
    font-size: 15px;
    color: var(--text-secondary, #a1a1aa);
    margin: 0 0 16px;
    line-height: 1.55;
}

.mobile-gate-shell .mobile-gate-footer,
.mobile-gate-page .mobile-gate-footer {
    font-size: 13px;
    color: var(--text-muted, #71717a);
    margin: 0;
    line-height: 1.5;
}

/* Leptos-rendered gate page */
.mobile-gate-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
    padding: 24px;
    box-sizing: border-box;
}

.mobile-gate-page::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        ellipse at 30% 20%,
        rgba(59, 130, 246, 0.08) 0%,
        transparent 50%
    ),
    radial-gradient(
        ellipse at 70% 80%,
        rgba(139, 92, 246, 0.06) 0%,
        transparent 50%
    );
    pointer-events: none;
}

.mobile-gate-theme-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-secondary);
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 10;
}

.mobile-gate-theme-toggle:hover {
    color: var(--text-primary);
    border-color: var(--text-muted);
}

.mobile-gate-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 440px;
}

.mobile-gate-header {
    margin-bottom: 28px;
}

.mobile-gate-logo {
    width: 64px;
    height: 64px;
    display: block;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    margin: 0 auto 16px;
}

.mobile-gate-brand {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: -0.02em;
}

.mobile-gate-brand .ideavibes-wordmark {
    display: block;
    width: auto;
    height: 1em;
    max-width: 100%;
    margin: 0 auto;
}
