/*
 * Footer Styles
 * BunnyTagz Theme
 */

/* ==========================================================================
   Site Footer
   ========================================================================== */

.site-footer {
    background: var(--text-color);
    color: #e5e7eb;
    margin-top: 4rem;
    position: relative;
}

/* ==========================================================================
   Footer Widgets
   ========================================================================== */

.footer-widgets {
    padding: 3rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-widgets-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.footer-widget-column {
    padding: 0 1rem;
}

.footer-widgets .widget {
    margin-bottom: 1.5rem;
}

.footer-widgets .widget:last-child {
    margin-bottom: 0;
}

.footer-widgets .widget-title {
    color: #ffffff;
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
}

.footer-widgets a {
    color: #d1d5db;
    transition: var(--transition);
}

.footer-widgets a:hover {
    color: var(--primary-color);
}

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

.footer-widgets ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-widgets ul li:last-child {
    border-bottom: none;
}

.footer-widgets ul li a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-widgets ul li a::before {
    content: '→';
    opacity: 0;
    transition: var(--transition);
}

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

/* Widget Forms */
.footer-widgets input[type="email"],
.footer-widgets input[type="text"] {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 0.75rem;
    width: 100%;
    border-radius: 0.375rem;
}

.footer-widgets input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.footer-widgets input:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-color);
}

.footer-widgets button,
.footer-widgets input[type="submit"] {
    margin-top: 0.5rem;
    width: 100%;
}

/* ==========================================================================
   Footer Bottom
   ========================================================================== */

.footer-bottom {
    padding: 1.5rem 0;
    background: rgba(0, 0, 0, 0.2);
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-copyright {
    font-size: 0.875rem;
    color: #9ca3af;
}

.footer-copyright a {
    color: #d1d5db;
}

.footer-copyright a:hover {
    color: var(--primary-color);
}

/* ==========================================================================
   Footer Navigation
   ========================================================================== */

.footer-navigation {
    flex-shrink: 0;
}

.footer-menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-menu a {
    color: #d1d5db;
    font-size: 0.875rem;
    transition: var(--transition);
}

.footer-menu a:hover {
    color: var(--primary-color);
}

/* ==========================================================================
   Footer Social Links
   ========================================================================== */

.footer-social {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-radius: 50%;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

.footer-social svg {
    width: 18px;
    height: 18px;
}

/* ==========================================================================
   Payment Icons
   ========================================================================== */

.footer-payment-icons {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.footer-payment-icons img {
    height: 30px;
    width: auto;
    opacity: 0.7;
    transition: var(--transition);
}

.footer-payment-icons img:hover {
    opacity: 1;
}

/* ==========================================================================
   Back to Top Button
   ========================================================================== */

.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    background: var(--primary-color);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--secondary-color);
    transform: translateY(-4px);
}

.back-to-top svg {
    display: block;
    margin: 0 auto;
}

/* ==========================================================================
   Newsletter Signup Widget
   ========================================================================== */

.widget_newsletter,
.widget_mc4wp_form_widget {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 0.5rem;
}

.widget_newsletter .widget-title,
.widget_mc4wp_form_widget .widget-title {
    color: #ffffff;
}

.widget_newsletter p,
.widget_mc4wp_form_widget p {
    font-size: 0.875rem;
    color: #d1d5db;
    margin-bottom: 1rem;
}

/* ==========================================================================
   Contact Info Widget
   ========================================================================== */

.widget_contact_info {
    font-size: 0.875rem;
}

.widget_contact_info p {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.widget_contact_info svg,
.widget_contact_info i {
    color: var(--primary-color);
    flex-shrink: 0;
    margin-top: 0.25rem;
}

/* ==========================================================================
   Responsive Styles
   ========================================================================== */

@media (max-width: 992px) {
    .footer-widgets-inner {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .footer-widgets {
        padding: 2rem 0;
    }

    .footer-widgets-inner {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-widget-column {
        padding: 0;
    }

    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .footer-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

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

    .footer-payment-icons {
        justify-content: center;
    }

    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 480px) {
    .site-footer {
        margin-top: 3rem;
    }

    .footer-widgets {
        padding: 1.5rem 0;
    }

    .footer-bottom {
        padding: 1rem 0;
    }

    .footer-menu {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* ==========================================================================
   Dark Mode Support (Optional)
   ========================================================================== */

@media (prefers-color-scheme: dark) {
    .site-footer {
        background: #0f172a;
    }

    .footer-bottom {
        background: rgba(0, 0, 0, 0.3);
    }
}
