/* Footer styles for Premium LottoBoomaroo */

.main-footer {
    background: linear-gradient(135deg, #0F172A, #1E293B);
    color: #FFFFFF;
    padding: 4rem 0 2rem;
    margin-top: 6rem;
    position: relative;
    overflow: hidden;
}

.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.5), transparent);
}

.main-footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 80%, rgba(139, 92, 246, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(16, 185, 129, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 4rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.footer-brand {
    flex: 2;
    min-width: 300px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-logo:hover {
    transform: scale(1.05);
}

.footer-logo-img {
    height: 50px;
    width: auto;
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-logo:hover .footer-logo-img {
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.5);
    transform: rotate(5deg);
}

.footer-logo-text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.footer-logo-main {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 900;
    background: linear-gradient(135deg, #8B5CF6, #10B981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-logo:hover .footer-logo-main {
    background: linear-gradient(135deg, #A78BFA, #34D399);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-logo-sub {
    font-size: 0.9rem;
    color: #64748B;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-logo:hover .footer-logo-sub {
    color: #8B5CF6;
}

.footer-description {
    opacity: 0.8;
    max-width: 400px;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: #94A3B8;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-brand:hover .footer-description {
    color: #CBD5E1;
}

.footer-links {
    flex: 1;
    min-width: 250px;
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-section h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #FFFFFF;
    margin-bottom: 0.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, #8B5CF6, #10B981);
    border-radius: 1px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-section:hover h4::after {
    width: 50px;
}

.footer-section a {
    color: #94A3B8;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding-left: 0;
}

.footer-section a::before {
    content: '→';
    position: absolute;
    left: -15px;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #8B5CF6;
}

.footer-section a:hover {
    color: #FFFFFF;
    padding-left: 15px;
}

.footer-section a:hover::before {
    opacity: 1;
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(139, 92, 246, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.footer-legal {
    flex: 2;
    min-width: 300px;
}

.footer-legal p {
    color: #64748B;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-legal:hover p {
    color: #94A3B8;
}

.footer-badges {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.age-badge {
    background: linear-gradient(135deg, #8B5CF6, #7C3AED);
    color: #FFFFFF;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.age-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.age-badge:hover::before {
    left: 100%;
}

.age-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

.help-badge, .care-badge, .reset-badge {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    filter: grayscale(0.3);
}

.help-badge:hover, .care-badge:hover, .reset-badge:hover {
    transform: scale(1.1);
    filter: grayscale(0);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

/* Footer Animation */
.footer-content {
    animation: footerSlideUp 0.8s ease-out 0.2s both;
}

.footer-bottom {
    animation: footerSlideUp 0.8s ease-out 0.4s both;
}

@keyframes footerSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hover Effects */
.footer-section a {
    position: relative;
    overflow: hidden;
}

.footer-section a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, #8B5CF6, #10B981);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-section a:hover::after {
    width: 100%;
}

/* Footer Glow Effect */
.footer-brand::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.footer-brand:hover::before {
    width: 200px;
    height: 200px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .footer-content {
        gap: 3rem;
    }
    
    .footer-links {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .main-footer {
        padding: 3rem 0 1.5rem;
        margin-top: 4rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-brand {
        min-width: auto;
        align-items: center;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .footer-description {
        margin: 0 auto 1.5rem;
    }
    
    .footer-links {
        justify-content: center;
        gap: 2rem;
    }
    
    .footer-section {
        align-items: center;
        text-align: center;
    }
    
    .footer-section h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .footer-legal {
        min-width: auto;
    }
    
    .footer-badges {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .main-footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-content {
        gap: 1.5rem;
    }
    
    .footer-logo-main {
        font-size: 1.5rem;
    }
    
    .footer-logo-sub {
        font-size: 0.8rem;
    }
    
    .footer-logo-img {
        height: 40px;
    }
    
    .footer-links {
        gap: 1.5rem;
    }
    
    .footer-section h4 {
        font-size: 1rem;
    }
    
    .footer-section a {
        font-size: 0.9rem;
    }
    
    .age-badge {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .help-badge, .care-badge, .reset-badge {
        width: 35px;
        height: 35px;
    }
}

/* Footer Link Hover Animation */
.footer-section a {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-section a:hover {
    animation: footerLinkGlow 0.6s ease-out;
}

@keyframes footerLinkGlow {
    0% {
        text-shadow: 0 0 0 rgba(139, 92, 246, 0);
    }
    50% {
        text-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
    }
    100% {
        text-shadow: 0 0 0 rgba(139, 92, 246, 0);
    }
}

/* Footer Badge Pulse Animation */
.age-badge:hover {
    animation: badgePulse 2s infinite;
}

@keyframes badgePulse {
    0%, 100% {
        transform: translateY(-2px) scale(1);
    }
    50% {
        transform: translateY(-2px) scale(1.05);
    }
}

/* Footer Section Hover Effect */
.footer-section {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-section:hover {
    transform: translateY(-2px);
}

/* Footer Logo Hover Animation */
.footer-logo:hover .footer-logo-img {
    animation: footerLogoSpin 1s ease-out;
}

@keyframes footerLogoSpin {
    0% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(180deg) scale(1.1);
    }
    100% {
        transform: rotate(360deg) scale(1);
    }
}