/* ============================================
   FOOTER COMPONENT - CASCADE OF HOPE HMS
   ============================================ */

.footer {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-light);
    margin-top: auto;
    width: 100%;
}

.footer-main {
    padding: var(--space-6) 0;
    border-bottom: 1px solid var(--border-light);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--space-4);
    max-width: var(--container-xl);
    margin: 0 auto;
    padding: 0 var(--space-4);
}

.footer-section {
    min-width: 0;
}

.footer-section h3 {
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
    margin-bottom: var(--space-3);
    margin-top: 0;
}

/* About Section */
.footer-about p {
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-2);
    font-size: var(--text-sm);
}

/* Footer Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: var(--space-1);
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    transition: color var(--transition-fast);
    font-size: var(--text-sm);
    padding: var(--space-1) 0;
}

.footer-links a:hover {
    color: var(--primary-500);
    text-decoration: none;
}

.footer-links svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* Contact Items */
.footer-contact-item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-2);
    color: var(--text-secondary);
    font-size: var(--text-sm);
    line-height: var(--leading-normal);
    white-space: nowrap;
}

.footer-contact-item svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: var(--primary-500);
}

.footer-contact-item div {
    white-space: normal;
    line-height: 1.4;
}

.footer-contact-item strong {
    color: var(--text-primary);
    font-weight: var(--font-semibold);
}

/* Social Media Links */
.footer-social {
    display: flex;
    gap: var(--space-2);
    margin-top: var(--space-3);
    flex-wrap: wrap;
}

.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    background-color: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    text-decoration: none;
}

.footer-social a:hover {
    background-color: var(--primary-500);
    color: white;
    transform: translateY(-2px);
}

.footer-social svg {
    width: 18px;
    height: 18px;
}

/* Footer Badges */
.footer-badges {
    display: flex;
    gap: var(--space-2);
    align-items: center;
    margin-top: var(--space-2);
    flex-wrap: wrap;
}

.footer-badge {
    padding: var(--space-1) var(--space-2);
    background-color: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    font-size: var(--text-xs);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: var(--space-1);
    white-space: nowrap;
}

.footer-badge svg {
    width: 14px;
    height: 14px;
    color: var(--success);
    flex-shrink: 0;
}

/* Footer Bottom */
.footer-bottom {
    padding: var(--space-3) var(--space-4);
    background-color: var(--bg-primary);
}

.footer-bottom-content {
    max-width: var(--container-xl);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-3);
}

.footer-copyright {
    color: var(--text-tertiary);
    font-size: var(--text-xs);
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    gap: var(--space-3);
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

.footer-bottom-links li {
    margin: 0;
}

.footer-bottom-links a {
    color: var(--text-tertiary);
    text-decoration: none;
    font-size: var(--text-xs);
    transition: color var(--transition-fast);
}

.footer-bottom-links a:hover {
    color: var(--primary-500);
    text-decoration: none;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-4);
    }
}

@media (max-width: 768px) {
    .footer-main {
        padding: var(--space-4) 0;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-4);
        padding: 0 var(--space-3);
    }

    .footer-bottom {
        padding: var(--space-3);
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: var(--space-2);
    }

    .footer-bottom-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--space-2);
    }

    .footer-social {
        justify-content: center;
    }

    .footer-badges {
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }
    
    .footer-section h3 {
        font-size: var(--text-sm);
    }

    .footer-contact-item {
        font-size: var(--text-xs);
    }

    .footer-social a {
        width: 32px;
        height: 32px;
    }

    .footer-social svg {
        width: 16px;
        height: 16px;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    .footer {
        display: none;
    }
}

/* ============================================
   DARK MODE ADJUSTMENTS
   ============================================ */

@media (prefers-color-scheme: dark) {
    .footer {
        border-top-color: var(--border-dark);
    }

    .footer-main {
        border-bottom-color: var(--border-dark);
    }

    .footer-badge {
        background-color: var(--bg-elevated);
    }
}

[data-theme="dark"] .footer {
    border-top-color: var(--border-dark);
}

[data-theme="dark"] .footer-main {
    border-bottom-color: var(--border-dark);
}

[data-theme="dark"] .footer-badge {
    background-color: var(--bg-elevated);
}