/* ==========================================================================
   Info State — centred informational screen (onboarding, setup guidance, etc.)
   --------------------------------------------------------------------------
   BEM block: .app-info-state
   Variants:  --page    (full remaining height, vertically centred)
              --section (inline, inside a panel or card)

   Markup:
   <div class="app-info-state app-info-state--page">
       <img class="app-info-state__image" src="..." alt="" />
       <h2 class="app-info-state__title text-body-lg font-semibold">Welcome</h2>
       <div class="app-info-state__desc">Guidance text or HTML content.</div>
       <div class="app-info-state__actions">
           <button class="app-btn app-btn--primary app-btn--md">Get started</button>
       </div>
   </div>
   ========================================================================== */

/* ========== 1. BASE ========== */

.app-info-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    max-width: 520px;
    margin-inline: auto;
    padding: var(--spacing-3xl) var(--spacing-xl);
    font-family: var(--font-family-primary);
}

/* ========== 2. VARIANTS ========== */

.app-info-state--page {
    flex: 1 1 0%;
    min-height: calc(100vh - 25rem);
}

.app-info-state--section {
    min-height: 200px;
    padding: var(--spacing-2xl) var(--spacing-xl);
}

/* ========== 3. IMAGE ========== */

.app-info-state__image {
    width: 100%;
    max-width: 12.5rem;
    height: auto;
    margin-bottom: var(--spacing-xl);
    opacity: 0.75;
    user-select: none;
    pointer-events: none;
}

/* Icon in a soft circle, used instead of an image (the shared success dialog). */
.app-info-state__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 96px;
    height: 96px;
    margin-bottom: var(--spacing-lg);
    border-radius: 50%;
    background: var(--green-50);
    color: var(--success);
}

.app-info-state__icon .sym {
    font-size: 64px;
}

/* ========== 4. TITLE ========== */

.app-info-state__title {
    margin: 0 0 var(--spacing-sm);
    color: var(--text-primary);
}

/* ========== 5. DESCRIPTION ========== */

.app-info-state__desc {
    margin: 0 0 var(--spacing-xl);
    font-size: var(--font-body-md-size);
    font-weight: var(--font-weight-regular);
    color: var(--text-secondary);
    line-height: var(--font-body-md-line-height);
}

/* Descendant styles — normalize HTML from language strings */
.app-info-state__desc h3 {
    font-size: var(--font-body-lg-size);
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin: var(--spacing-lg) 0 var(--spacing-xs);
    line-height: var(--font-body-lg-line-height);
}

.app-info-state__desc p {
    margin: 0 0 var(--spacing-sm);
}

.app-info-state__desc a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.app-info-state__desc a:hover {
    color: var(--accent-hover, var(--accent));
}

.app-info-state__desc strong,
.app-info-state__desc b {
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
}

/* ========== 6. ACTIONS ========== */

.app-info-state__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    justify-content: center;
}
