/* Modern Footer Styles for Association Website */

.footer-modern {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    position: relative;
    overflow: hidden;
}

.footer-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(118, 75, 162, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(80, 200, 120, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.footer-background {
    position: relative;
    z-index: 1;
}

/* Footer Widget Styling */
.footer-widget {
    padding: 1.5rem 0;
}

.widget-title {
    color: #fff;
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: flex;
    align-items: center;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(45deg, #50c878, #667eea);
    border-radius: 2px;
}

/* Brand Section */
.footer-logo img {
    max-height: 60px;
    filter: brightness(1.1);
    transition: transform 0.3s ease;
}

.footer-logo:hover img {
    transform: scale(1.05);
}

.association-description h6 {
    font-size: 1.1rem;
    font-weight: 600;
}

.footer-text {
    color: #cbd5e1;
    line-height: 1.6;
    font-size: 0.95rem;
}

.association-stats {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 1rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item strong {
    font-size: 1.5rem;
    font-weight: 700;
    display: block;
}

.stat-item small {
    color: #94a3b8;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Contact Section */
.contact-item {
    display: flex;
    align-items: flex-start;
    padding: 0.75rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.02);
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(5px);
}

.contact-item i {
    font-size: 1.2rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.contact-item strong {
    color: #fff;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.25rem;
}

.contact-item p {
    color: #cbd5e1;
    font-size: 0.9rem;
}

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

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

.footer-link {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
}

.footer-link:hover {
    color: #50c878;
    transform: translateX(5px);
}

.footer-link i {
    font-size: 1rem;
    width: 20px;
    opacity: 0.7;
}

/* Social Media Grid */
.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.social-card {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    text-decoration: none;
    color: #cbd5e1;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    color: #fff;
}

.social-card i {
    font-size: 1.25rem;
    margin-right: 0.5rem;
    flex-shrink: 0;
}

.social-card span {
    font-size: 0.85rem;
    font-weight: 500;
}

/* Social Media Colors */
.social-card.facebook:hover {
    background: linear-gradient(45deg, #1877f2, #42a5f5);
    border-color: #1877f2;
}

.social-card.instagram:hover {
    background: linear-gradient(45deg, #e4405f, #fd1d1d, #fcb045);
    border-color: #e4405f;
}

.social-card.twitter:hover {
    background: linear-gradient(45deg, #1da1f2, #42a5f5);
    border-color: #1da1f2;
}

.social-card.linkedin:hover {
    background: linear-gradient(45deg, #0077b5, #42a5f5);
    border-color: #0077b5;
}

.social-card.whatsapp:hover {
    background: linear-gradient(45deg, #25d366, #4caf50);
    border-color: #25d366;
}

/* Newsletter Section */
.newsletter-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin: 2rem 0;
}

.newsletter-input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 25px;
    padding: 0.75rem 1.25rem;
    flex: 1;
}

.newsletter-input::placeholder {
    color: #94a3b8;
}

.newsletter-input:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: #50c878;
    box-shadow: 0 0 0 0.2rem rgba(80, 200, 120, 0.25);
    color: #fff;
}

.newsletter-form .btn {
    border-radius: 25px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    min-width: 60px;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 15px 15px 0 0;
}

.copyright-info p {
    color: #cbd5e1;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.copyright-info small {
    color: #94a3b8;
    font-size: 0.8rem;
}

/* Footer Legal Links */
.footer-legal-link {
    transition: all 0.3s ease;
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.footer-legal-link:hover {
    background: rgba(80, 200, 120, 0.1) !important;
    border-color: rgba(80, 200, 120, 0.3) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(80, 200, 120, 0.2);
}

.footer-legal-link i {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Developer Section */
.fustibus-link {
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.fustibus-link:hover {
    background: rgba(80, 200, 120, 0.1) !important;
    border-color: rgba(80, 200, 120, 0.3) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(80, 200, 120, 0.2);
}

/* Heart Animation */
.pulse-heart {
    animation: pulse-heart 2s ease-in-out infinite;
}

@keyframes pulse-heart {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.footer-legal .list-inline-item:not(:last-child) {
    margin-right: 1.5rem;
}

.footer-legal .list-inline-item::after {
    content: '|';
    color: #64748b;
    margin-left: 1.5rem;
}

.footer-legal .list-inline-item:last-child::after {
    display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .footer-widget {
        padding: 1rem 0;
        margin-bottom: 2rem;
    }

    .association-stats .row {
        text-align: center;
    }

    .association-stats .col-4 {
        margin-bottom: 1rem;
    }

    .social-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .newsletter-form {
        margin-top: 1rem;
    }

    .newsletter-form .d-flex {
        flex-direction: column;
        gap: 0.75rem;
    }

    .newsletter-form .btn {
        align-self: flex-end;
        min-width: 120px;
    }

    .footer-legal {
        text-align: center !important;
        margin-top: 1.5rem;
    }

    .footer-legal .list-inline {
        flex-direction: column;
        gap: 0.5rem;
    }

    .footer-legal .list-inline-item {
        display: block;
        margin: 0 !important;
    }

    .footer-legal .list-inline-item::after {
        display: none;
    }

    .widget-title {
        font-size: 1.1rem;
    }

    .contact-item {
        padding: 0.5rem;
    }
}

@media (max-width: 576px) {
    .social-grid {
        grid-template-columns: 1fr;
    }

    .association-stats {
        padding: 0.75rem;
    }

    .stat-item strong {
        font-size: 1.25rem;
    }

    .footer-text {
        font-size: 0.9rem;
    }

    .newsletter-section {
        padding: 1.5rem !important;
    }
}

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

.footer-widget {
    animation: fadeInUp 0.6s ease-out;
    animation-delay: calc(var(--animation-order, 1) * 0.1s);
}

/* Accessibility Improvements */
.footer-link:focus,
.social-card:focus {
    outline: 2px solid #50c878;
    outline-offset: 2px;
}

.newsletter-input:focus {
    outline: none;
}

/* Responsive adjustments for footer bottom */
@media (max-width: 768px) {
    .footer-legal .d-flex {
        flex-direction: column;
        gap: 0.5rem !important;
    }

    .footer-legal-link {
        font-size: 0.9rem;
        padding: 0.5rem 1rem !important;
    }

    .developed-by {
        font-size: 0.9rem;
    }

    .copyright-info p {
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .footer-bottom {
        border-radius: 0;
    }

    .footer-legal-link {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem !important;
    }

    .developed-by .d-inline-flex {
        flex-direction: column;
        gap: 0.2rem;
    }
}

/* Print Styles */
@media print {
    .footer-modern {
        background: white !important;
        color: black !important;
    }

    .footer-modern * {
        color: black !important;
    }

    .social-grid,
    .newsletter-section {
        display: none;
    }
}
