/**
 * Enhanced Footer Styles for Vigthoria Landing Page
 * Updated structure with better organization and login/register at top
 */

.footer {
    background: var(--bg-primary);
    border-top: 1px solid rgba(108, 99, 255, 0.2);
    padding: 40px 0 20px;
    color: var(--text-primary);
    position: relative;
    margin-top: 60px;
}

/* Top Section with Login/Register */
.footer-top {
    display: flex;
    justify-content: flex-end;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(108, 99, 255, 0.1);
    margin-bottom: 40px;
}

.footer-actions-top {
    display: flex;
    gap: 15px;
    align-items: center;
}

/* Main Footer Content - 5 Column Grid */
.footer-content {
    display: grid;
    grid-template-columns: 1.5fr repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section {
    padding: 0;
}

.footer-title {
    font-family: 'Orbitron', sans-serif;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

/* About Section */
.footer-section.about p {
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
}

/* Light mode text color fix */
[data-theme="light"] .footer-section.about p {
    color: rgba(15, 23, 42, 0.7);
}

/* Social Icons */
.socials {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(108, 99, 255, 0.1);
    border: 1px solid rgba(108, 99, 255, 0.3);
    color: var(--primary-color);
    transition: all 0.3s ease;
    font-size: 16px;
}

.socials a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 5px 20px rgba(108, 99, 255, 0.4);
}

/* Footer Links */
.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    position: relative;
}

/* Light mode link color fix */
[data-theme="light"] .footer-section ul li a {
    color: rgba(15, 23, 42, 0.8);
}

.footer-section ul li a i {
    color: var(--secondary-color);
    font-size: 12px;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--secondary-color);
    transform: translateX(5px);
}

.footer-section ul li a:hover i {
    opacity: 1;
    transform: scale(1.2);
}

.highlight-link {
    color: var(--secondary-color) !important;
    font-weight: 600;
}

.highlight-link:hover {
    color: #00d4b8 !important;
}

/* Footer Bottom */
.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(108, 99, 255, 0.1);
    padding-top: 30px;
    margin-top: 40px;
}

.footer-bottom p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

/* Light mode footer bottom text fix */
[data-theme="light"] .footer-bottom p {
    color: rgba(15, 23, 42, 0.6);
}

/* Action Buttons */
.btn-footer {
    display: inline-block;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    background: rgba(108, 99, 255, 0.1);
    color: var(--primary-color);
    border: 1px solid rgba(108, 99, 255, 0.3);
}

.btn-footer:hover {
    background: rgba(108, 99, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 99, 255, 0.2);
}

.btn-footer.highlight {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
}

.btn-footer.highlight:hover {
    background: linear-gradient(135deg, #7c6fff, #00d4b8);
    box-shadow: 0 6px 20px rgba(108, 99, 255, 0.4);
    transform: translateY(-3px);
}

/* Community Banner */
.footer-community-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.12) 0%, rgba(6, 182, 212, 0.12) 50%, rgba(16, 185, 129, 0.12) 100%);
    border: 1px solid rgba(139, 92, 246, 0.25);
    border-radius: 16px;
    gap: 2rem;
    transition: all 0.3s ease;
}

.footer-community-banner:hover {
    border-color: rgba(139, 92, 246, 0.45);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.18) 0%, rgba(6, 182, 212, 0.18) 50%, rgba(16, 185, 129, 0.18) 100%);
}

.community-info {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.community-icon-group {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #8b5cf6, #06b6d4);
    border-radius: 14px;
    font-size: 1.4rem;
    color: white;
    flex-shrink: 0;
}

.community-text h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary, #fff);
    margin: 0 0 0.25rem;
    font-family: 'Orbitron', sans-serif;
}

.community-text p {
    font-size: 0.9rem;
    color: var(--text-secondary, rgba(255,255,255,0.6));
    margin: 0;
    line-height: 1.4;
}

.btn-community {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    background: linear-gradient(135deg, #8b5cf6, #06b6d4);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.btn-community:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .footer-content {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
    
    .footer-section.about {
        grid-column: span 3;
    }
}

@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .footer-section.about {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 30px 0 20px;
    }
    
    .footer-top {
        justify-content: center;
        padding-bottom: 20px;
        margin-bottom: 30px;
    }
    
    .footer-community-banner {
        flex-direction: column;
        text-align: center;
        padding: 1.25rem 1.5rem;
        gap: 1rem;
    }
    
    .community-info {
        flex-direction: column;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .footer-section.about {
        grid-column: span 2;
        text-align: center;
    }
    
    .socials {
        justify-content: center;
    }
    
    .footer-bottom {
        padding-top: 20px;
        margin-top: 30px;
    }
}

@media (max-width: 576px) {
    .footer-actions-top {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-footer {
        width: 100%;
        text-align: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-section.about {
        grid-column: 1;
    }
}
