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

/* Footer Container */
footer {
    background: var(--bs-card-bg, #fff);
    border-top: 1px solid var(--bs-border-color, #dee2e6);
    margin-top: 3rem;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

/* Footer Content */
.footer {
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1.5rem 0;
    border: none;
    margin: 0;
}

.footer p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--bs-secondary-color, #6c757d);
    line-height: 1.4;
}

/* Left Side - Copyright */
.float-start p {
    font-weight: 500;
}

/* Right Side - Credits */
.float-end p {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Heart Icon Animation */
.text-danger i {
    color: #dc3545 !important;
    animation: heartbeat 1.5s ease-in-out infinite;
    display: inline-block;
}

@keyframes heartbeat {
    0% {
        transform: scale(1);
    }
    14% {
        transform: scale(1.2);
    }
    28% {
        transform: scale(1);
    }
    42% {
        transform: scale(1.2);
    }
    70% {
        transform: scale(1);
    }
}

/* Developer Link */
.float-end a {
    color: var(--bs-primary, #0d6efd);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.float-end a:hover {
    color: var(--bs-primary, #0d6efd);
    text-decoration: none;
}

.float-end a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--bs-primary, #0d6efd);
    transition: width 0.3s ease;
}

.float-end a:hover::after {
    width: 100%;
}

/* Responsive Design */
@media (max-width: 768px) {
    .footer {
        flex-direction: column;
        text-align: center;
        padding: 1rem 0;
        gap: 0.5rem;
    }
    
    .float-start,
    .float-end {
        float: none !important;
        width: 100%;
    }
    
    .footer p {
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .footer {
        padding: 0.75rem 0;
    }
    
    .footer p {
        font-size: 0.8rem;
    }
    
    .float-end p {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* ============= STICKY FOOTER LAYOUT ============= */

/* Ensure footer stays at bottom */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main,
.main-content {
    flex: 1;
}

/* ============= DARK MODE SUPPORT ============= */

/* Footer - Dark Mode */
html.theme-dark footer,
body.theme-dark footer,
[data-bs-theme="dark"] footer {
    background: var(--bs-dark, #212529);
    border-top-color: var(--bs-gray-700, #495057);
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.2);
}

html.theme-dark .footer p,
body.theme-dark .footer p,
[data-bs-theme="dark"] .footer p {
    color: var(--bs-gray-400, #ced4da);
}

html.theme-dark .float-start p,
body.theme-dark .float-start p,
[data-bs-theme="dark"] .float-start p {
    color: var(--bs-gray-300, #dee2e6);
}

html.theme-dark .float-end a,
body.theme-dark .float-end a,
[data-bs-theme="dark"] .float-end a {
    color: var(--bs-primary, #0d6efd);
}

html.theme-dark .float-end a:hover,
body.theme-dark .float-end a:hover,
[data-bs-theme="dark"] .float-end a:hover {
    color: var(--bs-primary, #0d6efd);
}

html.theme-dark .float-end a::after,
body.theme-dark .float-end a::after,
[data-bs-theme="dark"] .float-end a::after {
    background: var(--bs-primary, #0d6efd);
}

/* ============= ENHANCED FOOTER VARIANTS ============= */

/* Alternative Footer with Background Pattern */
.footer-enhanced {
    background: linear-gradient(135deg, var(--bs-card-bg, #fff) 0%, var(--bs-tertiary-bg, #f8f9fa) 100%);
    position: relative;
    overflow: hidden;
}

.footer-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23000" opacity="0.02"/><circle cx="75" cy="75" r="1" fill="%23000" opacity="0.02"/><circle cx="50" cy="10" r="1" fill="%23000" opacity="0.02"/><circle cx="10" cy="60" r="1" fill="%23000" opacity="0.02"/><circle cx="90" cy="40" r="1" fill="%23000" opacity="0.02"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>') repeat;
    pointer-events: none;
}

/* Footer with Social Links (if needed) */
.footer-social {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bs-tertiary-bg, #f8f9fa);
    color: var(--bs-secondary-color, #6c757d);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.85rem;
}

.footer-social a:hover {
    background: var(--bs-primary, #0d6efd);
    color: white;
    transform: translateY(-2px);
}

/* Smooth Transitions for All Elements */
footer,
.footer,
.footer p,
.float-end a,
.text-danger i {
    transition: all 0.3s ease;
}