/* ==== FOOTER SECTION ==== */

/* CSS Variables for Footer */
:root {
    --yellow-primary: #FFD700;
    --yellow-glow: rgba(255, 215, 0, 0.3);
    --dark-bg: #0A0A0A;
    --dark-secondary: #1a1a1a;
    --text-primary: #DDDDDD;
    --text-secondary: #b4b4b4;
    --text-muted: #888888;
    --text-hover: #FFD700;
    --text-dark: #000000;
}

.footer-section {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    border-top: 1px solid rgba(255, 215, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.footer-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255, 215, 0, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 80% 50%, rgba(255, 215, 0, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.footer-content {
    padding: 4rem 0 2rem;
}

/* Copyright Top */
.footer-copyright-top {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

/* Footer Links */
.footer-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .footer-links-group {
        min-width: 0; /* Allow flex shrinking */
    }
    
    .social-links {
        flex-wrap: wrap;
        gap: 0.75rem;
    }
}

.footer-links-group {
    display: flex;
    flex-direction: column;
}

.footer-group-title {
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    position: relative;
}

.footer-group-title::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 2rem;
    height: 2px;
    background: linear-gradient(90deg, var(--yellow-primary) 0%, transparent 100%);
}

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

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

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}

.footer-link:hover {
    color: var(--yellow-primary);
    transform: translateX(0.25rem);
}

.footer-link::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--yellow-primary);
    transition: width 0.3s ease;
}

.footer-link:hover::before {
    width: 100%;
}

/* Social Links */
.footer-links-group .social-links {
    margin-top: 1rem;
}

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

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    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(255, 215, 0, 0.2), transparent);
    transition: left 0.5s ease;
}

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

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

.social-icon {
    width: 1.25rem;
    height: 1.25rem;
    transition: transform 0.3s ease;
}

.social-link:hover .social-icon {
    transform: scale(1.1);
}

/* Newsletter */
.footer-links-group .footer-newsletter-desc {
    margin-bottom: 1rem;
}

.footer-newsletter-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.newsletter-input-group {
    display: flex;
    gap: 0.5rem;
    max-width: 400px;
}

.newsletter-input {
    flex: 1;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.newsletter-input::placeholder {
    color: var(--text-muted);
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--yellow-primary);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
}

.newsletter-btn {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--yellow-primary) 0%, #FFA500 100%);
    border: none;
    border-radius: 0.5rem;
    color: #1a1a1a;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.newsletter-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.newsletter-btn:active {
    transform: translateY(0);
}

/* Newsletter Message */
.newsletter-message {
    margin-top: 0.75rem;
    padding: 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    text-align: center;
}

.newsletter-message.success {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.newsletter-message.error {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.newsletter-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}



@media (max-width: 768px) {
    .footer-container {
        padding: 0 1rem;
    }
    
    .footer-content {
        padding: 3rem 0 1.5rem;
    }
    
    .newsletter-input-group {
        flex-direction: column;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .footer-links {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .social-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    
    .footer-links-group {
        text-align: center;
    }
}

/* Animation for footer elements */
.footer-links-group {
    animation: fadeInUp 0.6s ease-out;
}

.footer-links-group:nth-child(1) { animation-delay: 0.1s; }
.footer-links-group:nth-child(2) { animation-delay: 0.2s; }
.footer-links-group:nth-child(3) { animation-delay: 0.3s; }
.footer-links-group:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
