/* ==========================================================================
   Maria Demir Welcome Screen - DGD Portal
   Fullscreen overlay on first visit
   ========================================================================== */

/* ---- Overlay ---- */
.maria-welcome-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(15, 36, 64, 0.88);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    animation: maria-welcome-fadeIn 0.4s ease;
}

@keyframes maria-welcome-fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.maria-welcome-overlay--closing {
    animation: maria-welcome-fadeOut 0.35s ease forwards;
}

@keyframes maria-welcome-fadeOut {
    from { opacity: 1; }
    to   { opacity: 0; }
}

/* ---- Card ---- */
.maria-welcome {
    background: #fff;
    border-radius: 20px;
    max-width: 460px;
    width: 100%;
    padding: 2.5rem 2rem 2rem;
    text-align: center;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.25);
    animation: maria-welcome-scaleIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.maria-welcome-overlay--closing .maria-welcome {
    animation: maria-welcome-scaleOut 0.3s ease forwards;
}

@keyframes maria-welcome-scaleIn {
    from { opacity: 0; transform: scale(0.85) translateY(20px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes maria-welcome-scaleOut {
    from { opacity: 1; transform: scale(1); }
    to   { opacity: 0; transform: scale(0.9) translateY(10px); }
}

/* Gold accent bar top */
.maria-welcome::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #D4A843 0%, #b8912e 50%, #D4A843 100%);
}

/* ---- Avatar ---- */
.maria-welcome__avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #1A365D 0%, #2a4a7f 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(26, 54, 93, 0.3);
}

.maria-welcome__avatar img {
    width: 48px;
    height: 48px;
    filter: brightness(0) invert(1);
}

/* ---- Greeting Text ---- */
.maria-welcome__greeting h2 {
    color: #1A365D;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.375rem;
    line-height: 1.3;
}

.maria-welcome__greeting p {
    color: #64748b;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

/* ---- Action Buttons ---- */
.maria-welcome__actions {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    margin-bottom: 1.5rem;
}

.maria-welcome__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0.875rem 1.5rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
    border: none;
}

.maria-welcome__btn:hover {
    transform: translateY(-1px);
}

.maria-welcome__btn:active {
    transform: translateY(0);
}

.maria-welcome__btn--chat {
    background: linear-gradient(135deg, #D4A843 0%, #b8912e 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(212, 168, 67, 0.35);
}

.maria-welcome__btn--chat:hover {
    box-shadow: 0 6px 20px rgba(212, 168, 67, 0.45);
}

.maria-welcome__btn--skip {
    background: transparent;
    color: #1A365D;
    border: 1.5px solid #e2e8f0;
}

.maria-welcome__btn--skip:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

/* ---- Feature Badges ---- */
.maria-welcome__features {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.maria-welcome__feature {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0.375rem 0.75rem;
    background: #f1f5f9;
    border-radius: 20px;
    font-size: 0.75rem;
    color: #475569;
    white-space: nowrap;
}

.maria-welcome__feature-icon {
    font-size: 0.875rem;
}

/* ---- Responsive ---- */
@media (max-width: 480px) {
    .maria-welcome {
        padding: 2rem 1.25rem 1.5rem;
        border-radius: 16px;
        max-width: 100%;
    }

    .maria-welcome__avatar {
        width: 64px;
        height: 64px;
    }

    .maria-welcome__avatar img {
        width: 40px;
        height: 40px;
    }

    .maria-welcome__greeting h2 {
        font-size: 1.25rem;
    }

    .maria-welcome__greeting p {
        font-size: 0.9375rem;
    }

    .maria-welcome__features {
        gap: 0.5rem;
    }

    .maria-welcome__feature {
        font-size: 0.6875rem;
        padding: 0.25rem 0.5rem;
    }
}

/* ---- Reduced Motion ---- */
@media (prefers-reduced-motion: reduce) {
    .maria-welcome-overlay,
    .maria-welcome,
    .maria-welcome-overlay--closing,
    .maria-welcome-overlay--closing .maria-welcome {
        animation: none;
    }
}
