/* ============================================================================
   AuthPack — Onboarding do primeiro acesso (estado "coleção vazia")
   Hero (título + descrição + ações) + fileira de modelos prontos.
   Theming via theme-tokens.css (funciona em claro e escuro).
   ============================================================================ */

.ob-onboarding {
    animation: fadeIn 0.35s ease both;
}

/* ── Hero ─────────────────────────────────────────────────────────────── */
.ob-hero {
    padding: 24px 4px 30px;
}

/* Escopado para vencer a especificidade de `.content-card h2` (style.css). */
.ob-onboarding .ob-title {
    font-family: var(--ap-font-heading);
    font-size: 26px;
    font-weight: 700;
    color: var(--ap-text-primary);
    margin: 0 0 12px;
    letter-spacing: -0.015em;
}

.ob-desc {
    font-size: 15px;
    line-height: 1.6;
    color: var(--ap-text-muted);
    max-width: 460px;
    margin: 0 0 24px;
}

.ob-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.ob-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    font-size: 14.5px;
}

.ob-how-btn {
    background: none;
    border: none;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    color: var(--ap-text-secondary);
    cursor: pointer;
    padding: 12px 14px;
    border-radius: var(--ap-radius-md);
    transition: color 0.15s ease, background 0.15s ease;
}

.ob-how-btn:hover {
    color: var(--ap-accent-strong);
    background: var(--ap-bg-hover);
}

/* ── Modelos prontos ──────────────────────────────────────────────────── */
.ob-templates {
    border-top: 1px solid var(--ap-border);
    padding-top: 22px;
}

.ob-templates-title {
    font-size: 13px;
    color: var(--ap-text-muted);
    margin-bottom: 14px;
}

.ob-templates-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.ob-tpl {
    display: flex;
    align-items: center;
    gap: 11px;
    text-align: left;
    border: 1px solid var(--ap-border);
    border-radius: var(--ap-radius-lg);
    background: var(--ap-bg-card);
    padding: 12px 14px;
    font-family: inherit;
    cursor: pointer;
    transition: border-color 0.18s ease, background 0.18s ease;
}

.ob-tpl:hover {
    border-color: var(--ap-border-focus);
    background: var(--ap-bg-hover);
}

.ob-tpl-blank {
    border-style: dashed;
}

.ob-tpl-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--ap-radius-md);
    background: var(--ap-bg-hover);
    color: var(--ap-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ob-tpl:hover .ob-tpl-icon {
    background: var(--ap-bg-card);
}

.ob-tpl-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.ob-tpl-name {
    font-family: var(--ap-font-heading);
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ap-text-primary);
}

.ob-tpl-desc {
    font-size: 12px;
    color: var(--ap-text-placeholder);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* ── Responsivo ───────────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .ob-templates-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 520px) {
    .ob-onboarding .ob-title {
        font-size: 22px;
    }
    .ob-templates-grid {
        grid-template-columns: 1fr;
    }
    .ob-actions {
        flex-wrap: wrap;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ob-onboarding {
        animation: none;
    }
}
