/**
 * Footer Styles - BestPublicHealth Theme
 * Professional Academic Footer Design
 */

/* Main Footer */
.site-footer {
    background-color: var(--color-primary-dark, #00152e);
    color: #cbd5e1;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-family: var(--font-body);
}

.footer-main {
    padding: 4rem 0 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

/* Footer Sections */
.footer-section {
    display: flex;
    flex-direction: column;
}

/* Brand Section */
.footer-brand {
    margin-bottom: 2rem;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--white);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-family: var(--font-heading);
}

.footer-logo .logo-best {
    color: var(--white);
}

.footer-logo .logo-publichealth {
    color: var(--color-secondary);
    /* Teal */
}

.footer-description {
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 0;
    font-size: 0.95rem;
    max-width: 300px;
}

/* Footer Stats */
.footer-stats {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.footer-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    padding: 1rem;
    border-radius: var(--radius-md);
    min-width: 80px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-stat .stat-number {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.25rem;
}

.footer-stat .stat-label {
    font-size: 0.7rem;
    color: var(--color-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* Footer Headings */
.footer-heading {
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
}

/* Footer Links */
.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    padding: 0.25rem 0;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--color-secondary);
    transform: translateX(4px);
}

.footer-links a i {
    width: 16px;
    color: #64748b;
    transition: color 0.2s ease;
    font-size: 0.8rem;
}

.footer-links a:hover i {
    color: var(--color-secondary);
}

/* Footer Bottom */
.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 1.5rem 0;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom-left {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-bottom-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

/* Site Info */
.site-info {
    color: #64748b;
    font-size: 0.85rem;
}

.site-info p {
    margin: 0;
}

/* Legal Links */
.footer-legal {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
}

.legal-link {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s ease;
}

.legal-link:hover {
    color: var(--white);
}

.separator {
    color: #475569;
}

/* Social Links */
.social-links {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.social-label {
    color: #94a3b8;
    font-size: 0.875rem;
    font-weight: 500;
    margin-right: 0.5rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    color: #cbd5e1;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.social-link:hover {
    background: var(--color-secondary);
    color: var(--white);
    transform: translateY(-2px);
    border-color: var(--color-secondary);
}

.social-link i {
    font-size: 0.9rem;
}

/* Back to Top */
.back-to-top-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.back-to-top-btn:hover {
    background: var(--color-secondary);
    color: var(--white);
    border-color: var(--color-secondary);
}

.back-to-top-btn i {
    font-size: 0.75rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .footer-section:first-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .footer-main {
        padding: 3rem 0 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-bottom-right {
        flex-direction: column;
        gap: 1rem;
    }

    .social-label {
        display: none;
    }
}