/*
 * FOOTER MODERNIZATION STYLES ONLY
 * Task 7: Modernize footer (landing page)
 * This file contains ONLY footer-specific styles and does not modify any existing styles
 */

/* Enhanced footer background with gradient and patterns */
.footer-modern {
    background: linear-gradient(135deg, #1F2937 0%, #111827 100%) !important;
    position: relative;
    overflow: hidden;
}

.footer-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 25% 25%, rgba(16, 185, 129, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(20, 184, 166, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.footer-modern::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #10B981 0%, #14B8A6 100%);
}

/* Footer content structure */
.footer-content {
    position: relative;
    z-index: 2;
    padding-bottom: 2rem;
}

/* Footer brand section */
.footer-brand .footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-brand .footer-logo img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: white;
    padding: 0.25rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    transition: transform 0.25s ease-in-out;
}

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

.footer-brand-name {
    font-family: 'Poppins', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, #34D399 0%, #2DD4BF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-description {
    font-size: 0.875rem;
    line-height: 1.625;
    color: #9CA3AF;
    margin-bottom: 1rem;
    max-width: 280px;
}

/* Social media icons */
.footer-social {
    display: flex;
    gap: 0.75rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #D1D5DB;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.25s ease-in-out;
    backdrop-filter: blur(10px);
}

.social-link:hover {
    background: linear-gradient(135deg, #10B981 0%, #14B8A6 100%);
    border-color: transparent;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
    text-decoration: none;
}

.social-link:active {
    transform: translateY(0);
}

.social-link:focus {
    outline: 2px solid #34D399;
    outline-offset: 2px;
}

.social-link i {
    transition: transform 0.15s ease-in-out;
}

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

/* Footer headings */
.footer-heading {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 1rem;
    position: relative;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, #10B981 0%, #14B8A6 100%);
    border-radius: 9999px;
}

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

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #9CA3AF;
    text-decoration: none;
    font-size: 0.875rem;
    line-height: 1.625;
    transition: all 0.25s ease-in-out;
    position: relative;
    display: inline-block;
}

.footer-links a::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, #10B981 0%, #14B8A6 100%);
    transition: width 0.25s ease-in-out;
}

.footer-links a:hover {
    color: white;
    text-decoration: none;
    transform: translateX(4px);
}

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

.footer-links a:focus {
    outline: 2px solid #10B981;
    outline-offset: 2px;
    border-radius: 0.25rem;
}

/* Footer contact */
.footer-contact .contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.footer-contact .contact-item i {
    color: #10B981;
    font-size: 0.875rem;
    width: 16px;
    text-align: center;
}

.footer-contact .contact-item a {
    color: #9CA3AF;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.25s ease-in-out;
}

.footer-contact .contact-item a:hover {
    color: white;
    text-decoration: none;
}

.footer-contact .contact-item a:focus {
    outline: 2px solid #10B981;
    outline-offset: 2px;
    border-radius: 0.25rem;
}

/* Footer bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    position: relative;
    z-index: 2;
}

.footer-copyright,
.footer-tagline {
    font-size: 0.75rem;
    color: #6B7280;
    margin: 0;
    line-height: 1.625;
}

.footer-tagline .text-primary {
    color: #10B981 !important;
    animation: heartbeat 2s ease-in-out infinite;
}

/* Heartbeat animation */
@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Social bounce animation */
@media (hover: hover) {
    .footer-social .social-link:hover {
        animation: socialBounce 0.6s ease-out;
    }
}

@keyframes socialBounce {
    0%, 100% {
        transform: translateY(-2px);
    }
    50% {
        transform: translateY(-6px);
    }
}

/* Responsive footer stacking */
@media (max-width: 767px) {
    .footer-content {
        text-align: center;
    }

    .footer-brand {
        margin-bottom: 2rem;
    }

    .footer-brand .footer-logo {
        justify-content: center;
    }

    .footer-brand .footer-description {
        margin-left: auto;
        margin-right: auto;
    }

    .footer-brand .footer-social {
        justify-content: center;
    }

    .footer-heading {
        text-align: center;
        margin-bottom: 0.75rem;
    }

    .footer-heading::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-links {
        text-align: center;
        margin-bottom: 1.5rem;
    }

    .footer-contact .contact-item {
        justify-content: center;
    }

    .footer-bottom {
        text-align: center;
    }

    .footer-bottom .col-md-6 {
        margin-bottom: 0.75rem;
    }

    .footer-bottom .col-md-6:last-child {
        margin-bottom: 0;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .footer-content .row > div {
        margin-bottom: 1.5rem;
    }

    .footer-content .row > div:nth-child(3),
    .footer-content .row > div:nth-child(4) {
        margin-bottom: 0;
    }
}

@media (min-width: 992px) {
    .footer-content .row > div {
        margin-bottom: 0;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    .footer-modern .social-link,
    .footer-modern .footer-links a,
    .footer-modern .footer-tagline .text-primary {
        animation: none !important;
        transition: none !important;
    }

    .footer-modern .social-link:hover,
    .footer-modern .footer-links a:hover {
        transform: none !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .footer-modern {
        background: #111827 !important;
    }

    .footer-modern::before {
        display: none;
    }

    .footer-links a,
    .footer-contact a {
        border: 1px solid transparent;
    }

    .footer-links a:hover,
    .footer-contact a:hover {
        border-color: white;
    }

    .social-link {
        border: 2px solid #9CA3AF;
    }

    .social-link:hover {
        border-color: white;
    }
}
