/* ============================================
   Welcome Modal (mirrors welcome-modal.tsx)
   Targets MudDialog rendered with Class="wm-dialog".
   ============================================ */

/* Reset Mud's default content/title/actions padding for this dialog.
   Mud applies `padding: 8px 24px` and a top border-radius on .mud-dialog-content
   (specificity 0,2,0) — we need to beat it on every shorthand to keep the image
   and header flush with the modal edges. */
.mud-dialog.wm-dialog {
    width: 100%;
    max-width: 860px;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(2, 11, 43, 0.25);
}

/* Mud 8.x renders an empty .mud-dialog-title slot (with padding: 16px 24px)
   even when no TitleContent is provided — that's the strip above the panels.
   We render our own header inside .wm-left, so hide Mud's. */
.mud-dialog.wm-dialog .mud-dialog-title {
    display: none !important;
}

.mud-dialog.wm-dialog .mud-dialog-content {
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden;
    border-radius: 0 !important;
}

/* Shell: split panels */
.wm-shell {
    display: flex;
    width: 100%;
    min-height: 480px;
    background-color: #FFFFFF;
}

/* ── Left panel ───────────────────────────────────────────── */
.wm-left {
    display: flex;
    width: 100%;
    flex-direction: column;
}

@media (min-width: 768px) {
    .wm-left {
        width: 55%;
    }
}

/* Header: step counter + dots */
.wm-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 1.75rem 0;
}

.wm-step-counter {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--lw-gray-graphite);
}

.wm-dots {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.wm-dot {
    width: 7px;
    height: 7px;
    border-radius: 9999px;
    background-color: var(--lw-gray-smoke);
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.wm-dot--active {
    background-color: var(--lw-primary-dark);
}

/* Body: title, subtitle, features */
.wm-body {
    flex: 1 1 0%;
    display: flex;
    flex-direction: column;
    padding: 1.25rem 1.75rem 1.5rem;
}

.wm-title {
    margin: 0;
    font-family: var(--lw-font-family-heading);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.015em;
    color: var(--lw-text-primary);
    line-height: 1.25;
}

.wm-subtitle {
    margin: 0.375rem 0 0;
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--lw-gray-graphite);
}

.wm-features {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.wm-feature {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
}

.wm-feature-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    background-color: var(--lw-primary-dark);
}

.wm-feature-icon-svg {
    width: 1.125rem !important;
    height: 1.125rem !important;
    font-size: 1.125rem !important;
    color: var(--lw-primary-gold);
}

.wm-feature-text {
    min-width: 0;
    padding-top: 0.125rem;
}

.wm-feature-title {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--lw-text-primary);
}

.wm-feature-description {
    margin: 0.125rem 0 0;
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--lw-gray-graphite);
}

/* Footer */
.wm-footer {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.75rem;
    border-top: 1px solid var(--lw-border);
}

.wm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 2.5rem;
    padding: 0 1.25rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: background-color 0.15s ease, opacity 0.15s ease, color 0.15s ease;
}

.wm-btn--outlined {
    border: 1px solid var(--lw-border);
    background-color: transparent;
    color: var(--lw-gray-graphite);
}

.wm-btn--outlined:hover {
    background-color: var(--lw-bg-muted);
    color: var(--lw-text-primary);
}

.wm-btn--primary {
    flex: 1 1 0%;
    border: 0;
    background-color: var(--lw-primary-dark);
    color: #FFFFFF;
}

.wm-btn--primary:hover {
    background-color: var(--lw-primary-dark);
    color: #FFFFFF;
    opacity: 0.9;
}

/* ── Right panel ──────────────────────────────────────────── */
.wm-right {
    display: none;
    position: relative;
    width: 45%;
    overflow: hidden;
}

@media (min-width: 768px) {
    .wm-right {
        display: block;
    }
}

.wm-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wm-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: 0;
    border-radius: 0.375rem;
    background-color: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.wm-close:hover {
    background-color: rgba(0, 0, 0, 0.5);
    color: #FFFFFF;
}

.wm-close-icon {
    width: 1rem !important;
    height: 1rem !important;
    font-size: 1rem !important;
}
