/**
 * Footer Component Styles
 * 
 * Styles for the site footer and all its components
 */

/* Footer Styles */
.site-footer {
    margin-top: 40px;
    padding: 40px 0 0;
    background-color: var(--color-background-secondary);
    border-top: 1px solid var(--color-border-primary);
    color: var(--color-text-secondary);
    width: 100%;
    box-sizing: border-box;
}

.footer-container {
    padding-bottom: 20px;
    width: 100%;
    box-sizing: border-box;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
    margin-bottom: 30px;
    width: 100%;
    box-sizing: border-box;
}

.footer-column {
    margin-bottom: 24px;
    box-sizing: border-box;
}

.footer-heading {
    color: var(--color-text-primary);
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--color-border-primary);
    box-sizing: border-box;
    width: 100%;
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--color-brand-primary);
    text-decoration: none;
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--color-background-tertiary);
    color: var(--color-text-primary);
    transition: all 0.2s ease;
}

.social-icon:hover {
    background-color: var(--color-brand-primary);
    color: var(--color-background-dark);
    transform: translateY(-2px);
}

/* Brand-specific hover effects for social icons */
.social-icon.facebook:hover {
    background-color: #1877F2;
    color: #ffffff;
}

.social-icon.youtube:hover {
    background-color: #FF0000;
    color: #ffffff;
}

.social-icon.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: #ffffff;
}

.social-icon.twitter:hover {
    background-color: #000000;
    color: #ffffff;
}

.social-icon.telegram:hover {
    background-color: #0088cc;
    color: #ffffff;
}

.social-icon.tiktok:hover {
    background: linear-gradient(45deg, #25F4EE 0%, #000000 50%, #FE2C55 100%);
    color: #ffffff;
}

.social-icon.threads:hover {
    background-color: #000000;
    color: #ffffff;
}

.social-icon.substack:hover {
    background-color: #FF6719;
    color: #ffffff;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid var(--color-border-primary);
    padding-top: 20px;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

.copyright {
    font-size: 14px;
    margin-bottom: 8px;
}

.footer-disclaimer {
    font-size: 12px;
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto;
}

/* Screen reader only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Responsive Footer */
@media screen and (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
    
    .footer-social {
        grid-column: 1 / -1;
        text-align: center;
    }
    
    .social-icons {
        justify-content: center;
    }
}

@media screen and (max-width: 768px) {
    .site-footer {
        margin-top: 30px;
        padding: 25px 15px 0;
        overflow: hidden;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        margin-bottom: 20px;
    }
    
    .footer-column {
        margin-bottom: 15px;
        overflow: hidden;
    }
    
    .footer-heading {
        font-size: 15px;
        margin: 0 0 12px;
        padding-bottom: 8px;
        padding-right: 30px;
        position: relative;
        cursor: pointer;
    }
    
    .footer-heading::after {
        content: "+";
        position: absolute;
        right: 10px;
        top: 0;
        font-size: 18px;
        transition: transform 0.3s ease;
    }
    
    .footer-column.open .footer-heading::after {
        content: "−";
    }
    
    .footer-links {
        display: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        visibility: hidden;
    }
    
    .footer-column.open .footer-links {
        display: block;
        max-height: 1000px;
        visibility: visible;
    }
    
    .footer-links li {
        margin-bottom: 8px;
    }
    
    .footer-links a {
        font-size: 13px;
    }
    
    .social-icons {
        gap: 10px;
    }
    
    .social-icon {
        width: 32px;
        height: 32px;
    }
}

@media screen and (max-width: 576px) {
    .site-footer {
        padding: 20px 15px 0;
        overflow-x: hidden;
    }
    
    .footer-container {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .footer-column {
        margin-bottom: 0;
        border-bottom: 1px solid var(--color-border-primary);
        padding-bottom: 0;
        width: 100%;
    }
    
    .footer-column:last-child {
        border-bottom: none;
    }
    
    .footer-heading {
        text-align: left;
        border-bottom: none;
        margin-bottom: 8px;
        padding: 12px 0;
        width: 100%;
    }
    
    .footer-social {
        text-align: center;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .copyright, .footer-disclaimer {
        font-size: 12px;
    }
    
    .footer-bottom {
        padding-top: 15px;
        padding-bottom: 15px;
    }
    
    /* Fix for Brave browser */
    .footer-column:not(.open) .footer-links {
        display: none !important;
        height: 0 !important;
        max-height: 0 !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }
    
    .footer-column.open .footer-links {
        display: block !important;
        height: auto !important;
        max-height: 1000px !important;
        visibility: visible !important;
        opacity: 1 !important;
        padding-bottom: 10px;
    }
}

/* Equal distribution for footer columns */
@media screen and (min-width: 768px) {
    .footer-grid {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 24px;
    }
    
    .footer-column {
        grid-column: span 1;
        width: 100%;
    }
    
    .footer-links {
        display: block !important;
        max-height: none !important;
        visibility: visible !important;
    }
} 