/**
 * Footer Component Styles
 * Элегантный минималистичный футер для EHF темы
 * 
 * @package EHF
 * @since 1.0.0
 */

/* === Footer Main Container === */
.site-footer {
    background-color: var(--ehf-gray-900);
    color: var(--ehf-gray-200);
    margin-top: auto;
    padding: var(--ehf-spacing-4xl) 0 var(--ehf-spacing-2xl);
}

.footer-container {
    max-width: var(--ehf-container-xl);
    margin: 0 auto;
    padding: 0 var(--ehf-spacing-lg);
    display: flex;
    flex-direction: column;
    gap: var(--ehf-spacing-2xl);
}

/* === Footer Navigation === */
.footer-navigation {
    display: flex;
    justify-content: center;
    padding-bottom: var(--ehf-spacing-lg);
}

.footer-menu {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--ehf-spacing-xl);
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-menu li {
    margin: 0;
}

.footer-menu a {
    font-family: var(--ehf-font-family);
    font-size: var(--ehf-font-size-sm);
    font-weight: var(--ehf-font-weight-medium);
    color: var(--ehf-gray-400);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color var(--ehf-transition-normal);
    position: relative;
}

.footer-menu a:hover {
    color: var(--ehf-white);
    text-decoration: none;
}

.footer-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background-color: var(--ehf-primary-color);
    transition: width var(--ehf-transition-normal);
}

.footer-menu a:hover::after {
    width: 100%;
}

/* === Footer Widgets === */
.footer-widgets {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--ehf-spacing-lg) 0;
}

.footer-widgets .widget {
    margin: 0;
    max-width: 500px;
}

.footer-widgets .widget-title {
    font-family: var(--ehf-font-family-headings);
    font-size: var(--ehf-font-size-lg);
    font-weight: var(--ehf-font-weight-semibold);
    color: var(--ehf-white);
    margin-bottom: var(--ehf-spacing-md);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.footer-widgets p,
.footer-widgets li {
    font-family: var(--ehf-font-family);
    font-size: var(--ehf-font-size-sm);
    color: var(--ehf-gray-400);
    line-height: var(--ehf-line-height-relaxed);
}

.footer-widgets a {
    color: var(--ehf-gray-300);
    text-decoration: none;
    transition: color var(--ehf-transition-normal);
}

.footer-widgets a:hover {
    color: var(--ehf-primary-color);
}

/* === Footer Copyright === */
.footer-copyright {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--ehf-spacing-lg);
    padding-top: var(--ehf-spacing-md);
}

.copyright-text {
    flex-grow: 1;
}

.copyright-text p {
    font-family: var(--ehf-font-family);
    font-size: var(--ehf-font-size-xs);
    color: var(--ehf-gray-500);
    margin: 0;
    line-height: 1.5;
    letter-spacing: 0.02em;
}

.copyright-text .site-name {
    color: var(--ehf-primary-color);
    font-weight: var(--ehf-font-weight-medium);
    transition: color var(--ehf-transition-normal);
}

.copyright-text .site-name:hover {
    color: var(--ehf-primary-hover);
}

/* === Social Links === */
.footer-social {
    display: flex;
    align-items: center;
    gap: var(--ehf-spacing-sm);
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--ehf-border-radius-full);
    background-color: transparent;
    color: var(--ehf-gray-500);
    text-decoration: none;
    transition: all var(--ehf-transition-normal);
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--ehf-gray-800);
    border-radius: var(--ehf-border-radius-full);
    opacity: 0;
    transition: opacity var(--ehf-transition-normal);
}

.social-link:hover::before {
    opacity: 1;
}

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

.social-link i,
.social-link svg {
    position: relative;
    z-index: 1;
}

/* === Affiliate Disclosure === */
.footer-affiliate-disclosure {
    padding: var(--ehf-spacing-lg) 0;
    border-top: 1px solid var(--ehf-gray-800);
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
}

.footer-affiliate-disclosure p {
    font-family: var(--ehf-font-family);
    font-size: 11px;
    line-height: 1.65;
    color: var(--ehf-gray-600);
    margin: 0;
    letter-spacing: 0.01em;
}

/* === Responsive Design === */

/* Tablet (768px and down) */
@media (max-width: 768px) {
    .footer-container {
        padding: 0 var(--ehf-spacing-md);
        gap: var(--ehf-spacing-xl);
    }
    
    .site-footer {
        padding: var(--ehf-spacing-3xl) 0 var(--ehf-spacing-xl);
    }
    
    .footer-menu {
        gap: var(--ehf-spacing-lg);
        flex-wrap: wrap;
    }
    
    .footer-copyright {
        flex-direction: column;
        text-align: center;
        gap: var(--ehf-spacing-md);
    }
    
    .footer-widgets {
        padding: var(--ehf-spacing-md) 0;
    }
}

/* Mobile (480px and down) */
@media (max-width: 480px) {
    .footer-container {
        padding: 0 var(--ehf-spacing-sm);
        gap: var(--ehf-spacing-lg);
    }
    
    .site-footer {
        padding: var(--ehf-spacing-2xl) 0 var(--ehf-spacing-lg);
    }
    
    .footer-menu {
        flex-direction: column;
        gap: var(--ehf-spacing-md);
        text-align: center;
    }
    
    .footer-navigation {
        padding-bottom: var(--ehf-spacing-md);
    }
    
    .social-link {
        width: 36px;
        height: 36px;
    }
    
    .copyright-text p {
        font-size: 11px;
    }
}

/* Small Mobile (360px and down) */
@media (max-width: 360px) {
    .footer-container {
        padding: 0 var(--ehf-spacing-sm);
    }
    
    .footer-social {
        gap: var(--ehf-spacing-xs);
    }
    
    .social-link {
        width: 32px;
        height: 32px;
    }
    
    .social-link i,
    .social-link svg {
        width: 16px;
        height: 16px;
    }
}

/* === Dark Mode Overrides === */
@media (prefers-color-scheme: dark) {
    .site-footer {
        background-color: var(--ehf-gray-900) !important;
        color: var(--ehf-gray-200) !important;
    }
}
