/**
 * Site Footer Widget Styles
 *
 * Overrides flexible-widgets layout to create a modern full-width footer
 * that follows the theme's design system and modern design references
 */

/* ========================================================================
   Footer Widget Container Overrides
   ======================================================================== */

footer.site-footer {
    display: none;
}

/* Override flexible-widgets layout for footer widget */
.footer-widgets .community-site-footer-widget {
    width: 100% !important;
    float: none !important;
    padding: 0 !important;
    margin: 0 !important;
    clear: both !important;
}

.footer-widgets .community-site-footer-widget .widget-wrap {
    padding: 0 !important;
    margin: 0 !important;
}

.footer-widgets .community-site-footer-widget .widget-title {
    display: none !important;
}

/* ========================================================================
   Footer Design
   ======================================================================== */

.turfnet-footer-container {
    background: #fef5f5;
    border-top: 1px solid var(--community-color-border);
    font-family: var(--community-font-family-base);
    line-height: var(--community-line-height-normal);
    padding: 0;
    margin: 0;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    position: relative;
}

/* Main footer content */
.turfnet-footer-brand,
.turfnet-footer-navigation,
.footer-copyright {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: clamp(var(--community-spacing-lg), 4vw, var(--community-spacing-3xl));
    padding-right: clamp(var(--community-spacing-lg), 4vw, var(--community-spacing-3xl));
}

/* ========================================================================
   Footer Brand Section
   ======================================================================== */

.turfnet-footer-brand {
    padding-top: var(--community-spacing-3xl);
    padding-bottom: var(--community-spacing-2xl);
    text-align: center;
    border-bottom: 1px solid var(--community-color-border);
}

.turfnet-footer-brand h3 {
    font-size: clamp(var(--community-font-size-2xl), 4vw, var(--community-font-size-4xl));
    font-weight: var(--community-font-weight-bold);
    color: var(--community-color-primary);
    margin: 0 0 var(--community-spacing-sm) 0;
    letter-spacing: -0.02em;
}

.footer-tagline {
    font-size: var(--community-font-size-lg);
    font-weight: var(--community-font-weight-medium);
    color: var(--community-color-text-primary);
    margin: 0 0 var(--community-spacing-lg) 0;
    opacity: 0.9;
}

.footer-description {
    font-size: var(--community-font-size-base);
    color: var(--community-color-text-secondary);
    margin: 0 0 var(--community-spacing-xl) 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: var(--community-line-height-relaxed);
}

/* Social media links */
.footer-social {
    display: flex;
    justify-content: center;
    gap: var(--community-spacing-md);
    margin-top: var(--community-spacing-xl);
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: white;
    border: 1px solid var(--community-color-border);
    border-radius: 50%;
    color: var(--community-color-text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: var(--community-shadow-sm);
}

.footer-social a:hover {
    background: var(--community-color-primary);
    border-color: var(--community-color-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--community-shadow-lg);
}

.footer-social a svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    transition: all 0.2s ease;
}

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

.turfnet-footer-navigation {
    display: flex;
    justify-content: space-around;
    padding-top: var(--community-spacing-3xl);
    padding-bottom: var(--community-spacing-3xl);
}

.footer-column h4 {
    font-size: var(--community-font-size-sm);
    font-weight: var(--community-font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--community-color-text-primary);
    margin: 0 0 var(--community-spacing-lg) 0;
    position: relative;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--community-color-primary);
}

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

.footer-column li {
    margin: 0 0 var(--community-spacing-sm) 0;
    padding: 0;
}

.footer-column li:before {
    display: none;
}

.footer-column a {
    color: var(--community-color-text-secondary);
    text-decoration: none;
    font-size: var(--community-font-size-base);
    transition: all 0.2s ease;
    position: relative;
    display: inline-block;
}

.footer-column a:hover {
    color: var(--community-color-primary);
    transform: translateX(4px);
}

.footer-column a::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--community-color-primary);
    transition: width 0.3s ease;
}

.footer-column a:hover::before {
    width: 100%;
}

/* ========================================================================
   Footer Copyright
   ======================================================================== */

.footer-copyright {
    border-top: 1px solid var(--community-color-border);
    padding: var(--community-spacing-lg) clamp(var(--community-spacing-lg), 4vw, var(--community-spacing-3xl));
    text-align: center;
    width: 100vw;
    max-width: 100%;
}

.footer-copyright p {
    margin: 0;
    font-size: var(--community-font-size-xs);
    color: var(--community-color-text-muted);
    letter-spacing: 0.02em;
}

/* Responsive styles moved to assets/css/global/responsive/ */

/* ========================================================================
   Integration with Theme Design System
   ======================================================================== */

/* Ensure footer appears correctly in all theme contexts */
.footer-widgets .turfnet-footer-container * {
    box-sizing: border-box;
}

/* Override any conflicting theme styles */
.footer-widgets .community-site-footer-widget .entry-content,
.footer-widgets .community-site-footer-widget .textwidget {
    margin: 0 !important;
    padding: 0 !important;
}

/* Print styles */
@media print {
    .turfnet-footer-container {
        background: white !important;
        border: 1px solid #ccc;
        page-break-inside: avoid;
    }

    .footer-social,
    .footer-column a::before {
        display: none;
    }

    .footer-column a {
        color: #333 !important;
    }
}

/* Accessibility enhancements */
@media (prefers-reduced-motion: reduce) {
    .footer-social a,
    .footer-column a,
    .footer-column a::before {
        transition: none;
    }

    .footer-social a:hover {
        transform: none;
    }

    .footer-column a:hover {
        transform: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .turfnet-footer-container {
        background: white;
        border-top: 2px solid var(--community-color-text-primary);
    }

    .footer-social a {
        border: 2px solid var(--community-color-text-primary);
    }

    .footer-column h4,
    .footer-column a {
        color: var(--community-color-text-primary);
    }

    .footer-copyright {
        background: var(--community-color-background);
        border-top: 2px solid var(--community-color-text-primary);
    }
}