/**
 * Footer Layout & Styles
 * Extracted from footer.php inline styles
 */

/* ============================================
   MAIN FOOTER
   ============================================ */
.site-footer {
    background: linear-gradient(to bottom, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    color: var(--text-primary);
    border-top: 3px solid var(--btn-primary);
    box-shadow: 0 -2px 10px var(--shadow);
    margin-top: auto;
}

.footer {
    background: var(--bg-secondary) !important;
    border-top: 1px solid var(--border-light) !important;
    margin-top: 2rem;
    position: relative;
    z-index: 100;
    min-height: auto;
    width: 100%;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

/* ============================================
   FOOTER BRAND
   ============================================ */
.footer-brand h5 {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 700;
}

/* ============================================
   FOOTER HEADINGS
   ============================================ */
.footer-heading {
    color: var(--text-primary);
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

/* ============================================
   FOOTER LINKS
   ============================================ */
.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    display: inline-block;
}

.footer-link:hover {
    color: var(--btn-primary);
    padding-left: 5px;
    transform: translateX(3px);
}

.footer-links a {
    transition: color 0.3s ease;
    font-size: 0.875rem;
}

.footer-links a:hover {
    color: var(--btn-primary) !important;
}

/* ============================================
   COMPANY REGISTRATION BADGE
   ============================================ */
.company-reg-badge {
    background: rgba(40, 167, 69, 0.1);
    border: 1px solid rgba(40, 167, 69, 0.3);
    border-radius: 8px;
    padding: 12px;
    margin-top: 15px;
    max-width: 280px;
}

.company-reg-badge .fas.fa-certificate {
    font-size: 1.25rem;
}

.verify-btn {
    font-size: 0.75rem;
    padding: 4px 12px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.verify-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.2);
}

/* ============================================
   SOCIAL LINKS
   ============================================ */
.social-links-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.social-link-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link-box:hover {
    background: var(--btn-primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

.social-link-box i {
    font-size: 1.1rem;
}

/* ============================================
   FOOTER BOTTOM
   ============================================ */
.footer-bottom {
    border-top: 1px solid var(--border-color);
    margin-top: 2rem;
    padding-top: 1.5rem;
}

.footer-bottom-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-bottom: 1rem;
}

.footer-bottom-links a {
    color: var(--text-secondary);
    font-size: 0.8125rem;
    transition: color 0.2s ease;
}

.footer-bottom-links a:hover {
    color: var(--btn-primary);
}

/* ============================================
   FOOTER SPACING
   ============================================ */
/* Ensure content has proper spacing above footer */
.container {
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
}

/* Ensure main content areas have proper spacing */
main, .content, .card, .row {
    margin-bottom: 1rem;
}

/* Specific spacing for feed and profile pages */
.feed-container, .profile-container {
    margin-bottom: 2rem;
}

/* Make sure the main content wrapper has proper spacing */
.main-content {
    margin-bottom: 2rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .footer-brand h5 {
        font-size: 1.25rem;
    }
    
    .social-link-box {
        width: 36px;
        height: 36px;
    }
    
    .footer-bottom-links {
        flex-direction: column;
        gap: 10px;
    }
}



