/* ================================================================
   SISTEMA DE AVISOS v2 - Calcularte
   CSS dedicado para o mecanismo de avisos in-app.
   Design: DESIGN.md (Teal 600, Slate 900/600, Google Sans Flex + Inter)
   Proporção padrão de imagem: 2:1 (520x260px)
   ================================================================ */

/* --- Overlay (backdrop) --- */
.aviso-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: aviso-fadein 0.3s ease;
}

@keyframes aviso-fadein {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* --- Card principal --- */
.aviso-card {
    background: #fff;
    border-radius: 16px;
    max-width: 520px;
    width: 92vw;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: aviso-slidein 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes aviso-slidein {
    from {
        transform: translateY(30px) scale(0.97);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* --- Imagem do banner (proporção 2:1) --- */
.aviso-card-img {
    width: 100%;
    border-radius: 16px 16px 0 0;
    display: block;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

/* --- Corpo do card --- */
.aviso-card-body {
    padding: 24px 28px;
}

/* --- Título --- */
.aviso-card-titulo {
    font-family: 'Google Sans Flex', Montserrat, Inter, sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #1E293B;
    margin: 0 0 12px;
    line-height: 1.3;
}

/* --- Texto / corpo --- */
.aviso-card-texto {
    font-family: Inter, 'PT Sans', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: #475569;
    margin: 0 0 20px;
}

.aviso-card-texto p {
    margin: 0 0 8px;
}

.aviso-card-texto strong {
    color: #1E293B;
}

/* --- Botão CTA --- */
.aviso-card-cta {
    display: block;
    width: 100%;
    padding: 14px 0;
    background: linear-gradient(135deg, #0D9488, #0F766E);
    color: #fff;
    font-family: 'Google Sans Flex', Inter, sans-serif;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    margin-bottom: 16px;
    box-sizing: border-box;
}

.aviso-card-cta:visited {
    color: #fff;
}

.aviso-card-cta:hover {
    background: linear-gradient(135deg, #0F766E, #115E59);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(13, 148, 136, 0.35);
    color: #fff;
    text-decoration: none;
}

.aviso-card-cta:active {
    transform: translateY(0);
    box-shadow: none;
}

/* --- Ações (dismiss + fechar) --- */
.aviso-card-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid #E2E8F0;
}

.aviso-card-dismiss,
.aviso-card-close {
    font-family: Inter, 'PT Sans', sans-serif;
    font-size: 13px;
    color: #94A3B8 !important;
    background: none !important;
    background-color: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    cursor: pointer;
    padding: 4px 0;
    transition: color 0.15s ease;
    text-decoration: none;
    outline: none;
}

.aviso-card-dismiss:hover,
.aviso-card-dismiss:focus,
.aviso-card-dismiss:active,
.aviso-card-close:hover,
.aviso-card-close:focus,
.aviso-card-close:active {
    color: #64748B !important;
    text-decoration: underline;
    background: none !important;
    background-color: transparent !important;
    box-shadow: none !important;
    border: none !important;
    outline: none;
}

/* ================================================================
   Mobile (max-width: 768px)
   ================================================================ */
@media (max-width: 768px) {
    .aviso-card-body {
        padding: 18px 20px;
    }

    .aviso-card-titulo {
        font-size: 18px;
    }

    .aviso-card-texto {
        font-size: 14px;
    }

    .aviso-card-cta {
        font-size: 15px;
        padding: 12px 0;
    }

    .aviso-card-actions {
        padding-top: 10px;
    }

    .aviso-card-dismiss,
    .aviso-card-close {
        font-size: 12px;
    }
}
