/* style/footer.css */

footer {
    width: 100%;
    margin-top: 0px;
    padding: 5px 0;
    text-align: center;
    background-color: transparent;
    position: relative;
    clear: both;
    overflow: visible;
    z-index: 1 !important;
}

.footer-content {
    font-family: 'Open Sans', Arial, sans-serif;
    color: var(--text-secondary) !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 12px;
    line-height: 1.2;
    padding: 10px 5px;
}

.footer-content > * {
    margin: 5px 0;
}

footer a {
  color: var(--text-secondary) !important;
  text-decoration: underline; /* sublinhado */
}

footer a:visited {
  color: var(--text-secondary) !important;
  text-decoration: underline;
}

footer a:hover,
footer a:focus {
  color: var(--text-secondary) !important;
  text-decoration: underline;
}

.logo {
    vertical-align: middle;
    margin-right: 5px;
    z-index: 1 !important;
}

.logo.openai,
.logo.google {
    height: 20px;
    width: auto;
}

.footer-social-links a {
    color: var(--btn-bg) !important;
    text-decoration: none;
}

.footer-social-links a i.fa-instagram {
    color: #E1306C !important;
}

.footer-social-links a i.fa-facebook {
    color: #1877F2 !important;
}

.footer-social-links a:visited {
    color: var(--btn-bg) !important;
}

.footer-social-links a:hover {
    opacity: 0.8;
}

.footer-links a {
    font-size: 16px;
    color: var(--text-secondary) !important;
    text-decoration: none;
}

.footer-links a:visited {
    color: var(--text-secondary) !important;
}

.footer-links a:hover {
    opacity: 0.8;
}

.footer-warning {
    color: var(--text-secondary) !important;
    font-size: 16px;
}

.footer-warning strong {
    color: #DE5A07 !important;
    font-weight: bold !important;
}

.footer-container p {
     color: var(--text-secondary) !important;
    font-size: 16px;
}

.seal-image {
    display: block;
    margin: 5px auto 0 auto; /* centraliza horizontalmente */
    height: 25px;
    width: auto;
    border: 1px solid #ddd;
    border-radius: 3px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease-in-out;
}

.seal-image:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.footer-content > p {
    text-align: center;
    width: 100%;
    font-size: 12px;
    color: var(--text-secondary);
    margin: 5px 0;
}

.footer-centered-text {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--text-secondary);
    font-size: 12px;
    width: 100%;
    margin: 5px 0;
    flex-wrap: wrap;
}

.footer-centered-text a {
    font-size: 16px;
    color: var(--text-secondary) !important;
    text-decoration: underline;
}

.footer-centered-text a:visited {
    color: var(--text-secondary) !important;
}

.footer-centered-text a:hover {
    opacity: 0.8;
}

.footer-powered-by {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.footer-powered-by .logo {
    height: 20px;
    width: auto;
}

@media (max-width: 1024px) {
    .footer-social-links a,
    footer p {
        font-size: 1em !important;
        line-height: 1.6 !important;
    }
}

@media (max-width: 768px) {
    .footer-social-links a,
    footer p {
        font-size: 0.95em !important;
        line-height: 1.5 !important;
    }    

    .footer-content {
        font-size: 10px;
        padding: 5px;
    }

    .footer-warning {
        font-size: 14px;
    }

    .logo.openai,
    .logo.google {
        height: 18px;
    }

    .seal-image {
        height: 20px;
    }
    
    .footer-powered-by .association-logo {
        height: 60px;   /* proporcional ao RA */
    }
    
    .footer-powered-by .association-iframe {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 480px) {
    .footer-social-links a,
    footer p {
        font-size: 0.85em !important;
        line-height: 1.4 !important;
    }

    .footer-content {
        font-size: 9px;
        line-height: 1.1;
    }

    .footer-warning {
        font-size: 12px;
    }

    .logo.openai,
    .logo.google {
        height: 16px;
    }

    .seal-image {
        height: 18px;
    }
    
    .ra-iframe-wrapper {
        width: 40px;
        height: 40px;
        position: relative;        /* garante contexto p/ ::after */
        overflow: hidden;
        margin: 0 4px;
    }

    /* iframe interno: mantém 96×96, mas escala para caber no wrapper */
    .ra-iframe-wrapper .association-iframe {
        width: 96px;
        height: 96px;
        border: none;
        transform-origin: top left;
        transform: scale(0.4167); /* 40 ÷ 96 ≈ 0.4167 */
    }
}

@media (max-width: 360px) {
    .footer-social-links a,
    footer p {
        font-size: 0.8em !important;
        line-height: 1.4 !important;
    }

    .footer-content {
        font-size: 8px;
        line-height: 1.1;
    }

    .footer-warning {
        font-size: 10px;
    }

    .logo.openai,
    .logo.google {
        height: 14px;
    }

    .seal-image {
        height: 16px;
    }
}

.whatsapp-float {
    position: fixed;
    width: 56px;
    height: 56px;
    bottom: 20px;
    right: 20px;
    background-color: var(--share-whatsapp);
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s, transform 0.2s;
}

.whatsapp-float:hover {
    background-color: #1ebd5b;
    transform: scale(1.1);
    text-decoration: none;
}

.profile-link,
.profile-link:visited {
  color: #1da1f2;
  text-decoration: none;
  font-weight: 500;
}
.profile-link:hover {
  text-decoration: underline;
}


@media (max-width: 768px) {
    .whatsapp-float {
        width: 48px;
        height: 48px;
        font-size: 26px;
        bottom: 15px;
        right: 15px;
    }
}

@media (max-width: 480px) {
    .whatsapp-float {
        width: 42px;
        height: 42px;
        font-size: 22px;
        bottom: 10px;
        right: 10px;
    }
}

.footer-powered-by .association-logo {
    max-height: 96px;       /* garante altura máxima */
    object-fit: contain;    /* mantém proporção */
    width: auto;
    height: auto;
    margin: 0 8px;
    padding: 4px;           /* opcional, cria borda interna */
    box-sizing: border-box; /* padding conta no tamanho total */
    opacity: 0.9;
    transition: transform 0.2s ease-in-out, opacity 0.2s;
}

.footer-powered-by .association-logo:hover {
    transform: scale(1.05);
    opacity: 1;
}

@media (max-width: 480px) {
    .footer-powered-by .association-logo {
        height: 40px;
        margin: 0 6px;
    }
}

/* wrapper e iframe padrão (desktop): 96×96 */
.ra-iframe-wrapper {
  overflow: hidden;
  width: 96px;
  height: 96px;
  margin: 0 8px;
}
.ra-iframe-wrapper .association-iframe {
  width: 96px;
  height: 96px;
  border: none;
  display: block;
  transform: none;             /* sem escala por padrão */
  transform-origin: top left;
}

/* tablet: viewport 60×60, escala interna 60/96 ≃ 0.625 */
@media (max-width: 768px) {
  .ra-iframe-wrapper {
    width: 60px;
    height: 60px;
  }
  .ra-iframe-wrapper .association-iframe {
    transform: scale(0.625);   /* 60 ÷ 96 */
  }
}

/* mobile: viewport 40×40, escala interna 40/96 ≃ 0.417 */
@media (max-width: 480px) {
  .ra-iframe-wrapper {
    width: 40px;
    height: 40px;
  }
  .ra-iframe-wrapper .association-iframe {
    transform: scale(0.417);   /* 40 ÷ 96 */
  }
}

/* === Faixa 1: tecnologias (destaque) === */
.footer-tech {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin: 4px 0 10px 0;
}

.tech-logo {
  height: 26px;              /* destaque sutil vs. restante */
  width: auto;
  vertical-align: middle;
  filter: none;
  transition: transform .15s ease, opacity .15s ease;
}
.tech-logo:hover { transform: translateY(-1px); opacity: .95; }

/* === Faixa 3: selos com tooltips === */
.logo-selo {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.logo-selo::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 115%;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.84);
  color: #fff;
  font-size: 12px;
  line-height: 1.25;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(0,0,0,.25);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
  z-index: 5;
}
.logo-selo:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-2px);
}

/* normalização de tamanhos para selos */
.footer-powered-by .association-logo {
  height: 64px;      /* uniformiza (desktop) */
  width: auto;
  object-fit: contain;
  margin: 0 8px;
  padding: 0;
  border: none;
  box-shadow: none;
}

/* mantém tua responsividade existente; ajusta tech/selos */
@media (max-width: 768px) {
  .tech-logo { height: 22px; }
  .footer-powered-by .association-logo { height: 52px; }
  .logo-selo::after { font-size: 11px; }
}
@media (max-width: 480px) {
  .tech-logo { height: 20px; }
  .footer-powered-by .association-logo { height: 44px; }
  .logo-selo::after { font-size: 10px; white-space: normal; max-width: 220px; }
}

/* === OVERRIDES: Faixa 1 — Tecnologias (destaque) === */
/* aumenta os logos e dá mais respiro entre eles */
.footer-tech {
  gap: 18px;
  margin: 6px 0 12px 0;
}

/* força tamanho maior só na faixa de tecnologias */
.footer-tech .logo.openai,
.footer-tech .logo.google,
.footer-tech .logo.aws,
.footer-tech .tech-logo {
  height: 36px !important;   /* antes: 20–26px */
  width: auto;
  vertical-align: middle;
  transition: transform .15s ease, opacity .15s ease;
}
.footer-tech .tech-logo:hover,
.footer-tech .logo.openai:hover,
.footer-tech .logo.google:hover,
.footer-tech .logo.aws:hover {
  transform: translateY(-1px);
  opacity: .95;
}

/* responsivo: mantém destaque mesmo em telas menores */
@media (max-width: 1024px) {
  .footer-tech .logo.openai,
  .footer-tech .logo.google,
  .footer-tech .logo.aws,
  .footer-tech .tech-logo {
    height: 32px !important;
  }
}
@media (max-width: 768px) {
  .footer-tech .logo.openai,
  .footer-tech .logo.google,
  .footer-tech .logo.aws,
  .footer-tech .tech-logo {
    height: 28px !important;
  }
}
@media (max-width: 480px) {
  .footer-tech .logo.openai,
  .footer-tech .logo.google,
  .footer-tech .logo.aws,
  .footer-tech .tech-logo {
    height: 24px !important;
  }
}

/* opcional: se os selos da Faixa 3 ainda “gritarem”, equalize um pouco */
@media (min-width: 769px) {
  .footer-powered-by .association-logo { height: 56px; }  /* antes: 64px */
}
