/* ============================================
   LOADING.CSS - Tela de Carregamento
   Responsivo e proporcional (max 6.9")
============================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;500;700&display=swap');

#screen-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    height: 100dvh;
    background: linear-gradient(135deg, #E0F2F1 0%, #F7F9FC 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9998;
    font-family: 'Poppins', sans-serif;
    transition: opacity 0.8s ease-out;
}

#screen-loading .ultra-text {
    font-family: 'Luckiest Guy', cursive;
    /* Updated Font */
    font-size: clamp(1.2rem, 5vw, 1.8rem);
    font-weight: 400;
    color: var(--primary, #00C9A7);
    margin-bottom: clamp(20px, 5vw, 30px);
    letter-spacing: 2px;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.1);
}

.loading-bar-container {
    width: clamp(180px, 55vw, 280px);
    height: clamp(8px, 2vw, 10px);
    background: var(--border-color, #E5E7EB);
    border-radius: var(--radius-sm, 10px);
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

#loading-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary, #00C9A7) 0%, var(--accent, #845EC2) 100%);
    border-radius: var(--radius-sm, 10px);
    transition: width 0.3s ease-out;
}

.loading-tip {
    margin-top: clamp(25px, 6vw, 40px);
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: clamp(220px, 70vw, 280px);
    text-align: center;
    padding: 0 var(--space-md, 15px);
}

.loading-tip-icon {
    font-size: clamp(1.2em, 4vw, 1.5em);
    margin-bottom: var(--space-sm, 10px);
}

.loading-tip-text {
    font-size: clamp(0.75em, 3vw, 0.85em);
    color: var(--text-medium, #6B7280);
    line-height: 1.5;
    margin: 0;
}

/* ============================================
   RESPONSIVIDADE
============================================ */
@media (max-height: 500px) {
    #screen-loading .ultra-text {
        margin-bottom: clamp(15px, 3vw, 20px);
    }

    .loading-tip {
        margin-top: clamp(15px, 4vw, 25px);
    }
}

@media (orientation: landscape) and (max-height: 450px) {
    #screen-loading {
        flex-direction: row;
        gap: var(--space-xl, 30px);
    }

    .loading-tip {
        margin-top: 0;
        max-width: 200px;
    }
}