/* ============================================
   FOOTER STYLES - MODERN REDESIGN
   ============================================ */

.footer {
    background: linear-gradient(135deg,
            var(--secondary-color) 0%,
            var(--secondary-dark, #1a252f) 50%,
            var(--secondary-color) 100%);
    color: var(--white);
    padding: 60px 0 20px;
    position: relative;
    overflow: hidden;
}

/* Background decoration */
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(107, 142, 35, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(154, 205, 50, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
    align-items: flex-start;
}

.footer-section {
    opacity: 0;
    animation: fadeInUp 1s ease-out both;
}

.footer-section:nth-child(1) {
    animation-delay: 0.2s;
}

.footer-section:nth-child(2) {
    animation-delay: 0.4s;
}

.footer-section h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--primary-light);
    font-weight: 700;
    position: relative;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    border-radius: 2px;
    animation: expandWidth 1.5s ease-out 0.8s both;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--primary-light);
    font-weight: 600;
}

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

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 0;
}

.footer-section ul li a::before {
    content: '→';
    position: absolute;
    left: -20px;
    opacity: 0;
    transition: all 0.3s ease;
    color: var(--primary-color);
}

.footer-section ul li a:hover {
    color: var(--primary-light);
    padding-left: 20px;
}

.footer-section ul li a:hover::before {
    opacity: 1;
}

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

.social-link {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(107, 142, 35, 0.2), rgba(154, 205, 50, 0.1));
    border: 2px solid rgba(107, 142, 35, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-light);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-link:hover::before {
    opacity: 1;
}

.social-link:hover {
    transform: translateY(-5px) scale(1.1);
    border-color: var(--primary-color);
    box-shadow: 0 10px 25px rgba(107, 142, 35, 0.4);
}

.social-link i {
    font-size: 1.2rem;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.social-link:hover i {
    color: var(--white);
    transform: rotate(360deg);
}

.footer-bottom {
    border-top: 1px solid rgba(107, 142, 35, 0.3);
    padding-top: 2rem;
    text-align: center;
    position: relative;
    z-index: 2;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin: 0;
}

/* Floating elements */
.footer::after {
    content: '';
    position: absolute;
    top: 20%;
    right: 10%;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(107, 142, 35, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 10s ease-in-out infinite;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes expandWidth {
    from {
        width: 0;
    }

    to {
        width: 40px;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    33% {
        transform: translateY(-20px) rotate(2deg);
    }

    66% {
        transform: translateY(-10px) rotate(-2deg);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .footer {
        padding: 50px 0 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

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

    .footer-section ul li a {
        padding-left: 0;
    }

    .footer-section ul li a::before {
        display: none;
    }

    .footer-section ul li a:hover {
        padding-left: 0;
    }

    .social-links {
        justify-content: center;
    }

    .footer::after {
        display: none;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 40px 0 20px;
    }

    .footer-section h3 {
        font-size: 1.5rem;
    }

    .footer-section h4 {
        font-size: 1.1rem;
    }

    .social-link {
        width: 40px;
        height: 40px;
    }

    .social-link i {
        font-size: 1rem;
    }
}

/* Dark mode adjustments */
body.dark-mode .footer {
    background: linear-gradient(135deg,
            var(--bg-dark) 0%,
            #000000 50%,
            var(--bg-dark) 100%);
}

body.dark-mode .footer::before {
    background:
        radial-gradient(circle at 20% 80%, rgba(107, 142, 35, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(154, 205, 50, 0.15) 0%, transparent 50%);
}

body.dark-mode .footer-section h3,
body.dark-mode .footer-section h4 {
    color: var(--primary-light);
}

body.dark-mode .footer-section p,
body.dark-mode .footer-section ul li a {
    color: rgba(255, 255, 255, 0.9);
}

body.dark-mode .footer-section ul li a:hover {
    color: var(--primary-light);
}

body.dark-mode .social-link {
    background: linear-gradient(135deg, rgba(107, 142, 35, 0.3), rgba(154, 205, 50, 0.2));
    border-color: rgba(107, 142, 35, 0.4);
}

body.dark-mode .footer-bottom {
    border-top-color: rgba(107, 142, 35, 0.4);
}

/* Hover effects for better interactivity */
.footer-section:hover h3::after {
    width: 60px;
}

.footer-section ul li {
    transition: transform 0.3s ease;
}

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

/* Accessibility improvements */
.footer a:focus {
    outline: 2px solid var(--primary-light);
    outline-offset: 2px;
}

.social-link:focus {
    outline: 2px solid var(--primary-light);
    outline-offset: 2px;
}

.footer-download {
    margin-top: 0.5rem;
    text-align: left;
    align-items: flex-start;
    display: flex;
    flex-direction: column;
}

.footer-download-title {
    font-size: 1.1rem;
    color: var(--primary-light);
    font-weight: 600;
    margin-bottom: 0.7rem;
}

.footer-download-buttons {
    display: flex;
    gap: 1.1rem;
    flex-wrap: wrap;
    align-items: center;
}

.footer .store-badge {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: var(--bg-primary);
    border-radius: 10px;
    box-shadow: 0 2px 12px var(--shadow-light);
    padding: 0.6rem 1.1rem;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.01rem;
    transition: transform 0.18s, box-shadow 0.18s, background 0.18s;
    min-width: 140px;
    min-height: 48px;
    position: relative;
}

.footer .store-badge img {
    width: 28px;
    height: 28px;
    margin-right: 0.5rem;
}

.footer .store-badge span {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    font-size: 1.01rem;
}

.footer .store-badge small {
    font-size: 0.85em;
    color: var(--text-secondary);
    font-weight: 400;
}

.footer .store-badge.playstore-badge:hover {
    background: #e3f2fd;
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 6px 20px var(--shadow-medium);
    color: var(--primary-color);
}

.footer .coming-soon {
    opacity: 0.6;
    cursor: not-allowed;
    background: var(--bg-secondary);
}

.footer-download-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 2.5rem 0 0.5rem 0;
    width: 100%;
}

.footer-download-row .footer-download-title {
    font-size: 1.1rem;
    color: var(--primary-light);
    font-weight: 600;
    margin-bottom: 0.7rem;
    text-align: center;
}

.footer-download-row .footer-download-buttons {
    display: flex;
    gap: 1.1rem;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.footer-download-row .store-badge {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: var(--bg-primary);
    border-radius: 10px;
    box-shadow: 0 2px 12px var(--shadow-light);
    padding: 0.6rem 1.1rem;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.01rem;
    transition: transform 0.18s, box-shadow 0.18s, background 0.18s;
    min-width: 140px;
    min-height: 48px;
    position: relative;
}

.footer-download-row .store-badge img {
    width: 28px;
    height: 28px;
    margin-right: 0.5rem;
}

.footer-download-row .store-badge span {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    font-size: 1.01rem;
}

.footer-download-row .store-badge small {
    font-size: 0.85em;
    color: var(--text-secondary);
    font-weight: 400;
}

.footer-download-row .store-badge.playstore-badge:hover {
    background: #e3f2fd;
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 6px 20px var(--shadow-medium);
    color: var(--primary-color);
}

.footer-download-row .coming-soon {
    opacity: 0.6;
    cursor: not-allowed;
    background: var(--bg-secondary);
}

@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-section.footer-download {
        align-items: center;
        min-width: 0;
    }

    .footer-download-buttons {
        justify-content: center;
    }

    .footer-section.footer-download .store-badge {
        min-width: 120px;
        padding: 0.6rem 0.7rem;
        font-size: 0.97rem;
    }

    .footer-section.footer-download .store-badge img {
        width: 24px;
        height: 24px;
    }
}

@media (max-width: 480px) {
    .footer-download-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    .footer-section.footer-download .store-badge {
        width: 100%;
        justify-content: center;
        min-width: 0;
    }
}

body.dark-mode .footer .store-badge {
    box-shadow: 0 0 0 0 var(--primary-color), 0 8px 32px 0 rgba(107, 142, 35, 0.35);
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-radius: 10px;
    transition: box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s, color 0.3s;
}

body.dark-mode .footer .store-badge.playstore-badge:hover {
    background: #232e3a;
    color: var(--primary-light);
    box-shadow: 0 0 0 0 var(--primary-color), 0 12px 48px 0 rgba(107, 142, 35, 0.45);
}

body.dark-mode .footer-section.footer-download .store-badge {
    box-shadow: 0 2px 8px 0 rgba(107, 142, 35, 0.18);
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-radius: 10px;
    transition: box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s, color 0.3s;
}

body.dark-mode .footer-section.footer-download .store-badge.playstore-badge:hover {
    background: #232e3a;
    color: var(--primary-light);
    box-shadow: 0 4px 16px 0 rgba(107, 142, 35, 0.22);
}

@media (max-width: 768px) {
    .footer-download-row {
        margin: 2rem 0 0.5rem 0;
    }

    .footer-download-row .footer-download-buttons {
        gap: 0.7rem;
    }

    .footer-download-row .store-badge {
        min-width: 120px;
        padding: 0.6rem 0.7rem;
        font-size: 0.97rem;
    }

    .footer-download-row .store-badge img {
        width: 24px;
        height: 24px;
    }
}

@media (max-width: 480px) {
    .footer-download-row .footer-download-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    .footer-download-row .store-badge {
        width: 100%;
        justify-content: center;
        min-width: 0;
    }
}

body.dark-mode .footer-download-row .store-badge {
    box-shadow: 0 0 0 0 var(--primary-color), 0 8px 32px 0 rgba(107, 142, 35, 0.35);
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-radius: 10px;
    transition: box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s, color 0.3s;
}

body.dark-mode .footer-download-row .store-badge.playstore-badge:hover {
    background: #232e3a;
    color: var(--primary-light);
    box-shadow: 0 0 0 0 var(--primary-color), 0 12px 48px 0 rgba(107, 142, 35, 0.45);
}