/* Back to Top Button */
.back-to-top-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent;
}

/* On community pages the back-to-top is rendered inside the feed column instead */
body.community-body .back-to-top-container {
    display: none;
}

.back-to-top-btn {
    border: none;
    background: transparent;
    color: #6B46C1;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    font-size: 32px;
    padding: 0;
}

.back-to-top-btn:hover {
    color: #4a2c7a;
    transform: translateY(-3px);
}

.back-to-top-btn:active {
    transform: translateY(-1px);
}

@media (hover: none) and (pointer: coarse) {
    .back-to-top-btn:hover {
        color: #6B46C1;
        transform: none;
    }
    
    .back-to-top-btn:active {
        color: #4a2c7a;
    }
}

/* Footer Section */
.footer-section {
    width: 100%;
    padding: 32px 40px;
    background: linear-gradient(180deg, #6B46C1 0%, #4a2c7a 100%);
    color: rgba(255, 255, 255, 0.7);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 40px;
}

.footer-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 16px;
}

.footer-logo {
    height: 36px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-copyright {
    margin: 0;
    font-family: "Satoshi-Regular", sans-serif;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.4;
    text-align: left;
}

.footer-copyright a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-copyright a:hover {
    color: #ffffff;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.footer-link {
    font-family: "Satoshi-Regular", sans-serif;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.footer-link:hover {
    color: #ffffff;
}

.footer-separator {
    color: rgba(255, 255, 255, 0.4);
    font-size: 13px;
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.footer-social-link:hover {
    transform: translateY(-2px);
}

.footer-social-icon {
    font-size: 28px;
    color: rgba(255, 255, 255, 0.9);
    transition: color 0.3s ease, transform 0.3s ease;
}

.footer-social-link:hover .footer-social-icon {
    color: #ffffff;
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
    .footer-section {
        padding: 30px 20px;
    }
    
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }
    
    .footer-left {
        order: 3;
        align-items: center;
        gap: 0;
    }
    
    .footer-logo {
        display: none;
    }
    
    .footer-right {
        order: 1;
        align-items: center;
        gap: 20px;
    }
    
    .footer-links {
        justify-content: center;
        gap: 16px;
    }
    
    .footer-copyright {
        text-align: center;
    }
}

@media (max-width: 640px) {
    .footer-links {
        justify-content: center;
        gap: 12px 16px;
        max-width: 100%;
    }
    
    .footer-social {
        display: none;
    }
}

/* Desktop: hide mobile line break */
@media (min-width: 641px) {
    .mobile-break {
        display: none;
    }
}

/* Desktop: light footer, slightly taller */
@media (min-width: 769px) {
    .footer-section {
        padding: 36px 40px;
        background: #ffffff;
        color: #555;
    }

    .footer-container {
        gap: 48px;
    }

    .footer-left {
        gap: 16px;
    }

    .footer-right {
        gap: 20px;
    }

    .footer-logo {
        height: 40px;
        filter: none;
    }

    .footer-copyright {
        font-size: 14px;
        color: #6B7280;
    }

    .footer-copyright a {
        color: #374151;
    }

    .footer-copyright a:hover {
        color: #1a1a1a;
    }

    .footer-link {
        font-size: 15px;
        color: #374151;
    }

    .footer-link:hover {
        color: #1a1a1a;
    }

    .footer-social-icon {
        color: #1a1a1a;
    }

    .footer-social-link:hover .footer-social-icon {
        color: #1a1a1a;
    }
}
