/**
 * Professional Footer Design for TrekOn
 */

/* Footer Container */
footer,
.site-footer,
#colophon,
.wp-block-template-part:has(.footer-navigation) {
    background: #1a1a1a !important;
    color: #e5e7eb !important;
    padding: 0 !important;
    margin-top: 4rem !important;
    clear: both;
}

/* Footer Inner Structure */
.footer-content,
.site-footer-inner,
footer .wp-block-group {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

/* Footer Widget Areas */
.footer-widgets {
    display: grid !important;
    grid-template-columns: 2fr 1fr 1fr !important;
    gap: 3rem !important;
    margin-bottom: 3rem !important;
    padding-bottom: 3rem !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.footer-widget-area {
    display: block !important;
}

.footer-widget-title {
    color: #ffffff !important;
    font-size: 1.25rem !important;
    font-weight: 600 !important;
    margin-bottom: 1.5rem !important;
}

/* Footer Grid Layout */
.footer-widgets,
footer .wp-block-columns {
    display: grid !important;
    grid-template-columns: 2fr 1fr 1fr !important;
    gap: 3rem !important;
    margin-bottom: 3rem !important;
    padding-bottom: 3rem !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

@media (max-width: 768px) {
    .footer-widgets,
    footer .wp-block-columns {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
}

/* Footer Column Styling */
.footer-column,
footer .wp-block-column {
    display: block !important;
    flex: none !important;
}

/* Footer Headings */
footer h2,
footer h3,
footer h4,
.footer-widget-title {
    color: #ffffff !important;
    font-size: 1.25rem !important;
    font-weight: 600 !important;
    margin-bottom: 1.5rem !important;
    font-family: var(--font-display, 'Poppins', sans-serif);
}

/* Footer Text */
footer p,
footer .wp-block-paragraph {
    color: #d1d5db !important;
    font-size: 0.975rem !important;
    line-height: 1.7 !important;
    margin-bottom: 1rem !important;
}

/* Footer Links */
footer a {
    color: #d1d5db !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
}

footer a:hover {
    color: #4ade80 !important;
    text-decoration: none !important;
}

/* Footer Navigation - Hide Duplicate */
footer .wp-block-navigation,
.footer-navigation,
footer nav {
    display: none !important;
}

/* Quick Links List */
footer ul:not(.wp-block-navigation__container),
.footer-links {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

footer ul li,
.footer-links li {
    margin-bottom: 0.75rem !important;
    padding: 0 !important;
}

footer ul li a,
.footer-links a {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    font-size: 0.975rem !important;
    position: relative !important;
    padding-left: 1.25rem !important;
}

/* Add arrow icon to links */
footer ul li a::before,
.footer-links a::before {
    content: '→' !important;
    position: absolute !important;
    left: 0 !important;
    opacity: 0 !important;
    transition: opacity 0.2s ease !important;
}

footer ul li a:hover::before,
.footer-links a:hover::before {
    opacity: 1 !important;
}

/* Contact Info Styling */
.footer-contact {
    margin-top: 1.5rem;
}

.footer-contact a {
    color: #4ade80 !important;
    font-weight: 500 !important;
}

/* Copyright Section */
.footer-bottom,
footer .has-text-align-center:last-child {
    text-align: center !important;
    padding-top: 2rem !important;
    margin: 0 !important;
    color: #9ca3af !important;
    font-size: 0.875rem !important;
}

/* Social Media Icons (if added later) */
.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: #4ade80;
    transform: translateY(-2px);
}

/* Remove any theme-specific spacing */
footer .wp-block-spacer {
    display: none !important;
}

/* Ensure proper text color throughout */
footer * {
    color: inherit !important;
}

/* Fix for email styling */
footer a[href^="mailto:"] {
    color: #4ade80 !important;
    text-decoration: underline !important;
}

/* Override theme-specific footer styles */
.wp-site-blocks footer {
    margin-top: 0 !important;
}

/* Clean up footer padding */
footer > *:first-child {
    padding-top: 3rem !important;
}

footer > *:last-child {
    padding-bottom: 2rem !important;
}

/* Specific fix for TwentyTwentyFour footer */
footer .wp-block-group.has-global-padding {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Hide duplicate content from parent theme */
.wp-block-template-part footer,
body > footer:not(#colophon) {
    display: none !important;
}

/* Ensure our footer is visible */
#colophon.site-footer {
    display: block !important;
}

/* Fix link hover color */
.footer-links a:hover {
    color: #4ade80 !important;
    padding-left: 1.5rem !important;
}

/* Copyright styling */
.site-info {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
}

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