/* ==========================================================================
   FOOTER STYLES
   ========================================================================== */

.main-footer {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-top: 1px solid #dee2e6;
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
}

.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 3rem;
    padding: 3rem 0 2rem;
}

.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary-color);
    border-radius: 1px;
}

/* Sekcja mediów społecznościowych */
.social-section {
    grid-column: 1;
}

.social-links {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    justify-content: flex-start;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 50%;
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(139, 195, 74, 0.1), transparent);
    transition: left 0.5s ease;
}

.social-link:hover::before {
    left: 100%;
}

.social-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.social-link i {
    font-size: 1.4rem;
    text-align: center;
}

.social-link.youtube i,
.social-link.tiktok i,
.social-link.instagram i,
.social-link.facebook i {
    color: var(--primary-color);
}

.social-link:hover {
    color: var(--text-primary);
}

/* Sekcje z linkami */
.info-section,
.help-section,
.education-section {
    grid-column: auto;
}

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

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

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 400;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 0;
}

.footer-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 0;
    height: 1px;
    background: var(--primary-color);
    transition: width 0.3s ease;
    transform: translateY(-50%);
}

.footer-link:hover {
    color: var(--primary-color);
    padding-left: 1rem;
}

.footer-link:hover::before {
    width: 0.5rem;
}

.premium-link {
    font-weight: 400;
    color: var(--text-secondary);
}

.premium-link:hover {
    color: var(--primary-color);
}

/* Dolna część stopki */
.footer-bottom {
    border-top: 1px solid #dee2e6;
    padding: 1.5rem 0;
    background: rgba(255, 255, 255, 0.5);
    width: 100%;
}

.footer-bottom-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.copyright,
.credits {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

.credits strong {
    color: var(--text-primary);
    font-weight: 600;
}

.credits a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.credits a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.credits a:hover {
    color: var(--primary-hover);
}

.credits a:hover::after {
    width: 100%;
}

/* Dark mode styles */
[data-theme="dark"] .main-footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-top-color: #404040;
}

[data-theme="dark"] .main-footer::before {
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

[data-theme="dark"] .footer-title {
    color: var(--text-primary);
}

[data-theme="dark"] .social-link {
    background: #2d2d2d;
    border-color: #404040;
    color: var(--text-secondary);
}

[data-theme="dark"] .social-link:hover {
    background: #3d3d3d;
    border-color: var(--primary-color);
    color: var(--text-primary);
}

[data-theme="dark"] .social-link::before {
    background: linear-gradient(90deg, transparent, rgba(139, 195, 74, 0.2), transparent);
}

[data-theme="dark"] .footer-link {
    color: var(--text-secondary);
}

[data-theme="dark"] .footer-link:hover {
    color: var(--primary-color);
}

[data-theme="dark"] .premium-link {
    color: var(--text-secondary);
}

[data-theme="dark"] .premium-link:hover {
    color: var(--primary-color);
}

[data-theme="dark"] .footer-bottom {
    background: rgba(45, 45, 45, 0.4);
    border-top-color: #404040;
}

[data-theme="dark"] .copyright,
[data-theme="dark"] .credits {
    color: var(--text-muted);
}

[data-theme="dark"] .credits strong {
    color: var(--text-primary);
}

[data-theme="dark"] .credits a {
    color: var(--primary-color);
}

[data-theme="dark"] .credits a:hover {
    color: var(--primary-hover);
}

[data-theme="dark"] .credits a::after {
    background: var(--primary-color);
}

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

    .social-section {
        grid-column: 1 / -1;
    }

    .social-links {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1rem;
        justify-content: center;
    }

    .social-link {
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem 0 1.5rem;
    }

    .social-links {
        flex-direction: row;
        justify-content: center;
    }

    .social-link {
        width: 45px;
        height: 45px;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
        padding: 0 15px;
    }

    .footer-container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .footer-content {
        padding: 1.5rem 0 1rem;
    }

    .footer-title {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .social-link {
        width: 40px;
        height: 40px;
    }

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

    .footer-link {
        font-size: 0.9rem;
    }

    .copyright,
    .credits {
        font-size: 0.8rem;
    }

    .footer-bottom-content {
        padding: 0 10px;
    }
}

/* Animacje */
@keyframes footerSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.main-footer {
    animation: footerSlideUp 0.6s ease-out;
}

/* Hover effects dla całej stopki - usunięto animację kreski */

/* Accessibility improvements */
.social-link:focus,
.footer-link:focus,
.credits a:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .main-footer {
        display: none;
    }
}