/* ==========================================================================
   Footer Styles - ONDIMP Government Website
   ========================================================================== */

.footer {
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.4);
    position: relative;
    margin-top: auto;
}

.footer__container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 40px var(--container-padding) 20px;
}

.footer__content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.footer__logo {
    flex-shrink: 0;
}

.footer__logo-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    opacity: 0.8;
}

.footer__text {
    text-align: center;
}

.footer__title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 12px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer__contact {
    margin: 20px 0;
    padding: 0;
}

.footer__contact-item {
    font-size: 0.875rem;
    color: #ffffff;
    margin: 8px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.footer__contact-item i {
    color: #FFD700;
    width: 16px;
    text-align: center;
}

.footer__contact-item a {
    color: #ffffff;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer__contact-item a:hover {
    color: #FFD700;
    text-decoration: underline;
}

.footer__divider {
    width: 80px;
    height: 1px;
    background-color: #ffffff;
    border: none;
    margin: 0 auto 12px;
    opacity: 0.5;
}

.footer__copyright {
    font-size: 0.875rem;
    color: #ffffff;
    line-height: 1.5;
    margin: 0;
}

/* Three colored lines at bottom of footer */
.footer__lines {
    display: flex;
    height: 4px;
    margin-top: 20px;
}

.footer__line {
    flex: 1;
    height: 100%;
}

.footer__line--yellow {
    background-color: var(--yellow);
}

.footer__line--blue {
    background-color: var(--blue);
}

.footer__line--red {
    background-color: var(--red);
}

/* Additional footer sections (if needed in the future) */
.footer__section {
    margin-bottom: 24px;
}

.footer__section-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer__list-item {
    margin-bottom: 8px;
}

.footer__list-link {
    font-size: 0.85rem;
    color: var(--medium-gray);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer__list-link:hover {
    color: var(--primary-blue);
    text-decoration: underline;
}

/* Copyright section (if needed) */
.footer__copyright {
    text-align: center;
    padding: 16px 0;
    border-top: 1px solid var(--border-gray);
    margin-top: 20px;
    font-size: 0.8rem;
    color: var(--medium-gray);
}

/* Social media links (if needed) */
.footer__social {
    display: flex;
    gap: 16px;
    margin-top: 16px;
}

.footer__social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--primary-blue);
    color: var(--white);
    border-radius: 50%;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.footer__social-link:hover {
    background-color: var(--secondary-blue);
    color: var(--white);
    transform: translateY(-2px);
    text-decoration: none;
}

.footer__social-link svg {
    width: 20px;
    height: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .footer__container {
        padding: 32px var(--container-padding) 16px;
    }
    
    .footer__content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .footer__logo {
        align-self: center;
    }
    
    .footer__text {
        align-items: center;
        text-align: center;
    }
    
    .footer__license {
        font-size: 0.8rem;
    }
    
    .footer__admin {
        font-size: 0.75rem;
    }
    
    .footer__social {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .footer__container {
        padding: 24px var(--container-padding) 12px;
    }
    
    .footer__content {
        gap: 16px;
    }
    
    .footer__logo-img {
        width: 50px;
        height: 50px;
    }
    
    .footer__license {
        font-size: 0.75rem;
        line-height: 1.4;
    }
    
    .footer__admin {
        font-size: 0.7rem;
    }
    
    .footer__social {
        gap: 12px;
    }
    
    .footer__social-link {
        width: 36px;
        height: 36px;
    }
    
    .footer__social-link svg {
        width: 18px;
        height: 18px;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .footer {
        border-top: 2px solid var(--primary-blue);
    }
    
    .footer__license,
    .footer__admin {
        color: var(--dark-gray);
    }
    
    .footer__link {
        text-decoration: underline;
    }
    
    .footer__social-link {
        border: 2px solid var(--primary-blue);
    }
}

/* Print styles */
@media print {
    .footer {
        background-color: transparent;
        border-top: 1px solid var(--dark-gray);
    }
    
    .footer__social {
        display: none;
    }
    
    .footer__link {
        color: var(--dark-gray);
        text-decoration: underline;
    }
    
    .footer__lines {
        display: none;
    }
}

/* Dark mode support (if implemented in the future) */
@media (prefers-color-scheme: dark) {
    .footer {
        background-color: var(--dark-gray);
        border-top-color: var(--medium-gray);
    }
    
    .footer__license,
    .footer__admin {
        color: var(--light-gray);
    }
    
    .footer__logo-img {
        filter: brightness(0) invert(1);
    }
}