/* ========================================
   FOOTER STYLES - DELL MUSIC
   ======================================== */

/* Footer Container */
.footer {
    background: var(--cor-principal);
    color: var(--cor-branco);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.069), rgba(0, 0, 0, 0.173));
    z-index: 1;
}

.footer > * {
    position: relative;
    z-index: 2;
}

/* Footer Main */
.footer-main {
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

/* Footer Brand */
.footer-brand {
    padding-right: 2rem;
}

.footer-logo {
    margin-bottom: 1.5rem;
}

.footer-logo .logo-text {
    font-family: var(--fonte-titulo);
    font-size: 2rem;
    font-weight: 800;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.footer-logo .logo-dell {
    color: var(--cor-principal);
}

.footer-logo .logo-music {
    color: var(--cor-secundaria);
}

.footer-logo .custom-logo-link img {
    height: 50px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-description {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--cor-branco);
    text-decoration: none;
    transition: var(--transicao);
    font-size: 1.1rem;
}

.footer-social a:hover {
    background: var(--cor-principal);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.footer-social a[href*="facebook"]:hover {
    background: #1877f2;
}

.footer-social a[href*="instagram"]:hover {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.footer-social a[href*="youtube"]:hover {
    background: #ff0000;
}

.footer-social a[href*="tiktok"]:hover {
    background: #000000;
}

/* Footer Links */
.footer-links h4,
.footer-courses h4,
.footer-contact h4 {
    color: var(--cor-branco);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
}

.footer-links h4::after,
.footer-courses h4::after,
.footer-contact h4::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--cor-secundaria);
}

.footer-menu,
.footer-course-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li,
.footer-course-list li {
    margin-bottom: 0.75rem;
}

.footer-menu a,
.footer-course-list a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transicao);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-menu a::before,
.footer-course-list a::before {
    content: '→';
    opacity: 0;
    transform: translateX(-10px);
    transition: var(--transicao);
}

.footer-menu a:hover,
.footer-course-list a:hover {
    color: var(--cor-secundaria);
    transform: translateX(5px);
}

.footer-menu a:hover::before,
.footer-course-list a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

/* Footer Contact */
.footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
}

.contact-item i {
    color: var(--cor-secundaria);
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.contact-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transicao);
}

.contact-item a:hover {
    color: var(--cor-secundaria);
}

/* Footer CTA */
.footer-cta {
    background: linear-gradient(135deg, var(--cor-principal), var(--cor-secundaria));
    padding: 3rem 0;
    text-align: center;
}

.cta-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.cta-text h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--cor-branco);
}

.cta-text p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.cta-buttons .btn {
    padding: 12px 24px;
    font-weight: 600;
    gap: 0.5rem;
}

.cta-buttons .btn-outline.btn-white {
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--cor-branco);
}

.cta-buttons .btn-outline.btn-white:hover {
    background: var(--cor-branco);
    color: var(--cor-principal);
    border-color: var(--cor-branco);
}

/* Footer Bottom */
.footer-bottom {
    background: rgba(0, 0, 0, 0.3);
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.footer-copyright p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-legal {
    display: flex;
    gap: 2rem;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transicao);
}

.footer-legal a:hover {
    color: var(--cor-secundaria);
}

.footer-credits p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-credits a {
    color: var(--cor-secundaria);
    text-decoration: none;
    transition: var(--transicao);
}

.footer-credits a:hover {
    color: var(--cor-principal);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--cor-principal);
    border: none;
    border-radius: 50%;
    color: var(--cor-branco);
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transicao);
    z-index: 998;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--cor-secundaria);
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

/* Cookie Notice */
.cookie-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--cor-branco);
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    z-index: 9998;
    transform: translateY(100%);
    transition: var(--transicao);
}

.cookie-notice.show {
    transform: translateY(0);
}

.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.cookie-text {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.cookie-text i {
    color: var(--cor-secundaria);
    font-size: 1.5rem;
}

.cookie-text p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--cor-texto);
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.cookie-buttons .btn {
    padding: 8px 16px;
    font-size: 0.85rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    .footer-brand {
        grid-column: 1 / -1;
        padding-right: 0;
        margin-bottom: 2rem;
    }
    
    .cta-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cta-buttons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .footer-main {
        padding: 3rem 0 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-brand {
        text-align: center;
        grid-column: 1;
        margin-bottom: 2rem;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-cta {
        padding: 2rem 0;
    }
    
    .cta-text h3 {
        font-size: 1.5rem;
    }
    
    .cta-text p {
        font-size: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .cta-buttons .btn {
        width: 100%;
        justify-content: center;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .footer-legal {
        flex-direction: column;
        gap: 1rem;
    }
    
    .cookie-content {
        flex-direction: column;
        gap: 1rem;
        padding: 0 1rem;
    }
    
    .cookie-text {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .footer-main {
        padding: 2rem 0 1rem;
    }
    
    .footer-logo .logo-text {
        font-size: 1.5rem;
    }
    
    .footer-description {
        font-size: 0.9rem;
    }
    
    .footer-social a {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .footer-cta {
        padding: 1.5rem 0;
    }
    
    .cta-text h3 {
        font-size: 1.3rem;
    }
    
    .cta-text p {
        font-size: 0.9rem;
    }
    
    .back-to-top {
        bottom: 70px;
        right: 15px;
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .cookie-notice {
        padding: 0.75rem 0;
    }
    
    .cookie-text i {
        font-size: 1.3rem;
    }
    
    .cookie-text p {
        font-size: 0.85rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.footer-brand,
.footer-links,
.footer-courses,
.footer-contact {
    animation: fadeInUp 0.6s ease-out;
}

.footer-links {
    animation-delay: 0.1s;
}

.footer-courses {
    animation-delay: 0.2s;
}

.footer-contact {
    animation-delay: 0.3s;
}

/* Accessibility */
.footer a:focus,
.back-to-top:focus,
.cookie-buttons .btn:focus {
    outline: 2px solid var(--cor-secundaria);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .footer-cta,
    .back-to-top,
    .cookie-notice {
        display: none !important;
    }
    
    .footer {
        background: transparent !important;
        color: var(--cor-texto) !important;
    }
    
    .footer-social {
        display: none;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .footer {
        background: #000000;
        color: #ffffff;
    }
    
    .footer-social a {
        background: #ffffff;
        color: #000000;
    }
    
    .back-to-top {
        background: #000000;
        border: 2px solid #ffffff;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .footer-brand,
    .footer-links,
    .footer-courses,
    .footer-contact {
        animation: none;
    }
    
    .footer-social a,
    .back-to-top,
    .cookie-notice {
        transition: none;
    }
}
