/*!
 * Footer Component CSS  
 * Sistema de Sorteos - PublicSite Footer Styles
 * Diseño original restaurado
 */

/* Footer principal con colores dinámicos */
.site-footer {
    font-family: -apple-system, BlinkMacSystemFont, 'Segue UI', Roboto, sans-serif;
    background-color: var(--dynamic-primary);
    margin-top: auto;
    height: var(--footer-height);
}

.footer-text {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 500;
    color: var(--dynamic-text-on-primary);
}

/* Contenedores del footer */
.footer-top {
    height: 50px;
}

.footer-middle {
    height: var(--footer-middle-height);
    padding: 2rem 0;
}

.footer-bottom {
    height: 80px;
}

.footer-copyright {
    margin-bottom: 0;
}

/* Enlace de términos y condiciones */
.footer-terms {
    margin-bottom: 0.25rem;
}

.footer-terms-link {
    color: var(--dynamic-text-on-primary);
    transition: opacity 0.2s ease;
    cursor: pointer;
}

.footer-terms-link:hover {
    color: var(--dynamic-text-on-primary);
    opacity: 0.8;
    text-decoration: underline;
}

.footer-terms-link:focus {
    outline: 2px solid var(--dynamic-text-on-primary);
    outline-offset: 2px;
    border-radius: 2px;
}

/* Redes sociales en footer-top */
.footer-social-section {
    text-align: center;
    margin-top: 4rem;
}

.footer-social-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.footer-social-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    justify-content: center;
}

.footer-social-link {
    display: inline-block;
    text-decoration: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.footer-social-icon {
    height: 30px;
    width: auto;
    opacity: 0.9;
}

.footer-social-link:hover .footer-social-icon {
    transform: scale(1.1);
    opacity: 1;
}

/* Texto del desarrollador */
.footer-developer {
    font-size: 0.9rem;
    opacity: 0.9;
}

.footer-developer-link {
    color: var(--dynamic-text-on-primary);
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.3s ease;
}

.footer-developer-link:hover {
    color: var(--dynamic-text-on-primary);
    opacity: 0.8;
    text-decoration: underline;
}

/* Imágenes del footer */
.footer-images {
    height: 100%;
    padding: 1rem 0;
    padding-top: 1.5rem;
}

.footer-image {
    max-height: 80px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0.9;
}

.footer-image:hover {
    transform: scale(1.05);
    opacity: 1;
}

.footer-image-link {
    display: inline-block;
    text-decoration: none;
}

/* Responsive para imágenes del footer - más grandes en mobile */
@media (max-width: 768px) {
    .footer-image {
        max-height: 100px;
    }
}

@media (max-width: 576px) {
    .footer-image {
        max-height: 90px;
    }
}

/* Contenedor superior - sin overlay para mantener color uniforme */

/* Responsive footer */
@media (max-width: 768px) {
    .site-footer {
        height: auto !important;
        min-height: 250px;
    }
    
    .site-footer > div {
        height: auto !important;
        padding: 1rem 0 !important;
    }
    
    .footer-text {
        font-size: 0.9rem;
        text-align: center;
    }
}

/* Dark theme adjustments for footer */
/* El footer mantiene el color dinámico en modo oscuro, no lo sobrescribimos */

[data-bs-theme="dark"] .footer-text {
    /* El texto usa el color dinámico del sistema */
    color: var(--dynamic-text-on-primary);
}
