/* common_footer.css - Footer comum para todas as páginas */

/* ===========================
   Footer Principal
   =========================== */
footer {
    background-color: #4157a3;
    color: white;
    display: grid;
    grid-template-columns: 1fr 1.2fr 0.6fr 0.2fr;
    padding: 2vh 6rem;
    align-items: center;
    text-align: center;
    padding-right: 28%;
    padding-left: 28%;
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 999;
}

footer p {
    margin: 0;
}

footer a {
    color: inherit;
    text-decoration: none;
}

.footer-link {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-link:hover {
    opacity: 0.8;
    color: white;
}

/* ===========================
   Ícone de informações
   =========================== */
.info-icon {
    position: fixed;
    bottom: 1.5vh;
    right: 20px;
    background: rgba(65, 87, 163, 0.9);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1001;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    font-size: 16px;
}

.info-icon:hover {
    background: rgba(65, 87, 163, 1);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.info-icon i {
    color: white !important;
}

/* ===========================
   Créditos CEPAG
   =========================== */
.cepag-credit {
    position: fixed;
    bottom: 1.5vh;
    left: 20px;
    background: rgba(65, 87, 163, 0.9);
    color: white;
    padding: 10px 15px;
    border-radius: 25px;
    font-size: 12px;
    font-weight: 500;
    z-index: 1001;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.cepag-credit:hover {
    background: rgba(65, 87, 163, 1);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.cepag-credit a {
    color: white !important;
    text-decoration: none !important;
}

.cepag-credit a:hover {
    color: white !important;
}

/* ===========================
   Responsividade
   =========================== */
/* Mobile */
@media screen and (max-width: 767px) {
    footer {
        padding: 1.5vh 2rem;
        padding-right: 5%;
        padding-left: 5%;
        grid-template-columns: repeat(3, 1fr);
        height: auto;
        min-height: 60px;
    }

    footer p,
    span,
    footer .footer-link {
        font-size: 10px !important;
    }

    .cepag-credit {
        position: fixed;
        bottom: 70px;
        /* Posiciona acima do footer em mobile */
        left: 10px;
        font-size: 9px;
        padding: 6px 10px;
        border-radius: 15px;
        max-width: calc(100vw - 80px);
        /* Evita que saia da tela */
        text-align: center;
        z-index: 1002;
        /* Z-index maior para ficar sobre o footer */
    }

    .info-icon {
        position: fixed;
        bottom: 70px;
        right: 10px;
        width: 32px;
        height: 32px;
        font-size: 14px;
        z-index: 1002;
    }

    .cepag-credit span {
        display: block;
        line-height: 1.2;
    }

    body {
        padding-bottom: 100px;
        /* Mais espaço em mobile para acomodar footer + crédito */
    }
}

/* Tablet */
@media screen and (min-width: 768px) and (max-width: 1200px) {
    footer {
        padding: 2vh 6rem;
        padding-right: 10%;
        padding-left: 10%;
        grid-template-columns: repeat(3, 1fr);
    }

    footer p,
    span,
    footer .footer-link {
        font-size: 12px !important;
    }

    .cepag-credit {
        bottom: 80px;
        /* Posiciona acima do footer em tablet */
        left: 15px;
        font-size: 11px;
        padding: 8px 12px;
    }

    .info-icon {
        bottom: 80px;
        right: 15px;
        width: 36px;
        height: 36px;
        font-size: 15px;
    }
}

/* ===========================
   Espaçamento do corpo para o footer fixo
   =========================== */
body {
    padding-bottom: 80px;
}