/* ===== FOOTER STYLES ===== */

.footer {
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    border-top: 1px solid var(--border-color);
    margin-top: 4rem;
    padding: 3rem 0 1rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, var(--link-color) 0%, transparent 50%);
    opacity: 0.02;
}

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

/* Footer Title and Description */
.footer-title {
    color: var(--text-primary);
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.footer-title i {
    color: var(--link-color);
}

.footer-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

/* Footer Subtitles */
.footer-subtitle {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--link-color);
    position: relative;
}

.footer-subtitle::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 30%;
    height: 2px;
    background-color: var(--link-hover);
}

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

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

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.25rem 0;
    border-radius: 0.25rem;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--link-color);
    padding-left: 0.5rem;
    background-color: var(--bg-primary);
}

.footer-count {
    font-size: 0.8rem;
    opacity: 0.7;
    background-color: var(--bg-tertiary);
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    margin-left: 0.5rem;
}

/* Social Links */
.footer-social {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background-color: var(--bg-primary);
    color: var(--text-secondary);
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    font-size: 1.1rem;
}

.footer-social-link:hover {
    color: white;
    background-color: var(--link-color);
    border-color: var(--link-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Recent Posts */
.footer-recent-posts {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-recent-item {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.footer-recent-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.footer-recent-link {
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 0.375rem;
    border: 1px solid transparent;
}

.footer-recent-link:hover {
    background-color: var(--bg-primary);
    border-color: var(--border-color);
    transform: translateX(5px);
}

.footer-recent-title {
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.footer-recent-link:hover .footer-recent-title {
    color: var(--link-color);
}

.footer-recent-date {
    color: var(--text-muted);
    font-size: 0.8rem;
    opacity: 0.8;
}

/* Footer Bottom */
.footer-bottom {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.footer-copyright {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.footer-tech {
    opacity: 0.8;
}

.footer-tech a {
    color: var(--link-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-tech a:hover {
    color: var(--link-hover);
    text-decoration: underline;
}

.footer-tech .bi-heart-fill {
    animation: heartbeat 1.5s ease-in-out infinite alternate;
}

@keyframes heartbeat {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

/* Footer Stats */
.footer-stats {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.footer-stat-item {
    color: var(--text-muted);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    background-color: var(--bg-primary);
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.footer-stat-item:hover {
    background-color: var(--link-color);
    color: white;
    border-color: var(--link-color);
    transform: translateY(-2px);
}

.footer-stat-item i {
    opacity: 0.7;
}

/* Dark theme adjustments */
[data-theme="dark"] .footer {
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
}

[data-theme="dark"] .footer::before {
    background: linear-gradient(45deg, var(--link-color) 0%, transparent 50%);
    opacity: 0.03;
}

[data-theme="dark"] .footer-social-link:hover {
    background-color: var(--link-color);
    color: white;
}

[data-theme="dark"] .footer-stat-item:hover {
    background-color: var(--link-color);
    color: white;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .footer {
        padding: 2rem 0 1rem;
        margin-top: 2rem;
    }
    
    .footer-title {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }
    
    .footer-subtitle {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .footer-description {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .footer-social {
        gap: 0.5rem;
        justify-content: center;
        margin-top: 1rem;
    }
    
    .footer-social-link {
        width: 2.25rem;
        height: 2.25rem;
        font-size: 1rem;
    }
    
    .footer-links a {
        font-size: 0.85rem;
    }
    
    .footer-recent-title {
        font-size: 0.85rem;
    }
    
    .footer-recent-date {
        font-size: 0.75rem;
    }
    
    .footer-bottom {
        margin-top: 2rem;
        padding-top: 1rem;
        text-align: center;
    }
    
    .footer-copyright {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }
    
    .footer-stats {
        justify-content: center;
        gap: 0.5rem;
    }
    
    .footer-stat-item {
        font-size: 0.8rem;
        padding: 0.25rem 0.5rem;
    }
}

@media (max-width: 576px) {
    .footer {
        padding: 1.5rem 0 1rem;
    }
    
    .footer-title {
        font-size: 1.125rem;
        text-align: center;
    }
    
    .footer-description {
        text-align: center;
        font-size: 0.85rem;
    }
    
    .footer-subtitle {
        text-align: center;
        font-size: 0.95rem;
    }
    
    .footer-links {
        text-align: center;
    }
    
    .footer-links a {
        justify-content: center;
    }
    
    .footer-recent-posts {
        text-align: center;
    }
    
    .footer-recent-link {
        text-align: left;
    }
    
    .footer-stats {
        flex-direction: column;
        align-items: center;
        gap: 0.375rem;
    }
    
    .footer-stat-item {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
    
    .footer-copyright {
        font-size: 0.8rem;
        text-align: center;
    }
    
    .footer-tech {
        display: block;
        margin-top: 0.5rem;
    }
}
