/*
 * FOOTER LAYOUT - HondPro Design System
 * Matches footer.php HTML structure
 * Consistent with header.css and widget architecture
 */

/* ============================================
   FOOTER CONTAINER
   ============================================ */

.main-footer {
    background: linear-gradient(135deg, #2D1B3D 0%, #1a0f2e 50%, #0f0a1a 100%);
    color: var(--text-white);
    padding: 60px 20px 20px;
    margin-top: 0;
    position: relative;
    overflow: hidden;
}

/* Subtle gradient overlay for depth */
.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0.8;
}

/* ============================================
   FOOTER CONTENT
   ============================================ */

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
    max-width: var(--container-max-width, 1200px);
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   FOOTER BRAND
   ============================================ */

.footer-brand h3 {
    color: var(--teal-accent);
    margin-bottom: 10px;
    font-size: 1.5rem;
    font-family: var(--font-heading);
    font-weight: var(--weight-bold);
    line-height: 1.2;
    background: var(--gradient-accent);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* ============================================
   FOOTER NAVIGATION
   ============================================ */

.footer-nav {
    display: contents;
}

.footer-section h4 {
    color: var(--text-white);
    margin-bottom: 15px;
    font-size: 1.1rem;
    font-weight: var(--weight-semibold);
    font-family: var(--font-heading);
    position: relative;
    padding-bottom: 10px;
}

/* Underline accent for section headings */
.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section li {
    margin-bottom: 10px;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all var(--transition-normal);
    font-size: 0.95rem;
    display: inline-block;
    position: relative;
}

/* Enhanced hover effect with gradient */
.footer-section a::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 1px;
    background: var(--gradient-primary);
    transition: width var(--transition-normal);
}

.footer-section a:hover {
    color: var(--teal-accent);
    transform: translateX(5px);
}

.footer-section a:hover::before {
    width: 100%;
}

/* ============================================
   FOOTER BOTTOM
   ============================================ */

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    max-width: var(--container-max-width, 1200px);
    margin-left: auto;
    margin-right: auto;
}

.copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin: 0;
}

.footer-meta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

/* ============================================
   FOOTER BADGES
   ============================================ */

.seo-badge,
.ai-badge {
    font-size: 0.85rem;
    font-weight: var(--weight-medium);
    padding: 4px 12px;
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.seo-badge {
    color: var(--teal-accent);
    background: rgba(0, 206, 209, 0.1);
    border: 1px solid rgba(0, 206, 209, 0.2);
}

.seo-badge:hover {
    background: rgba(0, 206, 209, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 206, 209, 0.2);
}

.ai-badge {
    color: var(--pink-primary);
    background: rgba(255, 107, 157, 0.1);
    border: 1px solid rgba(255, 107, 157, 0.2);
}

.ai-badge:hover {
    background: rgba(255, 107, 157, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 157, 0.2);
}

/* Badge icons (if using) */
.seo-badge::before {
    content: '🔍';
}

.ai-badge::before {
    content: '🤖';
}

/* ============================================
   SOCIAL MEDIA LINKS (if present)
   ============================================ */

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    transition: all var(--transition-normal);
    text-decoration: none;
}

.footer-social a:hover {
    background: var(--gradient-primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 968px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 600px) {
    .main-footer {
        padding: 40px 20px 20px;
        margin-top: 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .footer-meta {
        justify-content: center;
    }
    
    .footer-section a:hover {
        transform: translateX(3px);
    }
}

@media (max-width: 380px) {
    .footer-brand h3 {
        font-size: 1.3rem;
    }
    
    .seo-badge,
    .ai-badge {
        font-size: 0.75rem;
        padding: 3px 10px;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

.footer-section a:focus,
.footer-social a:focus,
.seo-badge:focus,
.ai-badge:focus {
    outline: 2px solid var(--teal-accent);
    outline-offset: 3px;
}

.footer-section a:focus:not(:focus-visible),
.footer-social a:focus:not(:focus-visible) {
    outline: none;
}

/* Skip to top link for accessibility */
.skip-to-top {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-white);
    padding: 10px 20px;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all var(--transition-normal);
}

.skip-to-top:hover {
    background: var(--gradient-primary);
    transform: translateY(-3px);
}

.skip-to-top:focus {
    outline: 2px solid var(--teal-accent);
    outline-offset: 3px;
}

/* ============================================
   DARK MODE SUPPORT
   ============================================ */

/* ============================================
   REDUCED MOTION SUPPORT
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    .footer-section a,
    .footer-social a,
    .seo-badge,
    .ai-badge,
    .skip-to-top {
        transition: none;
    }
    
    .footer-section a:hover,
    .footer-social a:hover,
    .seo-badge:hover,
    .ai-badge:hover,
    .skip-to-top:hover {
        transform: none;
    }
    
    .footer-section a::before {
        transition: none;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    .main-footer {
        background: var(--color-white);
        color: var(--text-primary);
        border-top: 2px solid var(--gray-300);
        page-break-inside: avoid;
    }
    
    .main-footer::before {
        display: none;
    }
    
    .footer-brand h3 {
        color: var(--text-primary);
        -webkit-text-fill-color: initial;
    }
    
    .footer-section h4 {
        color: var(--text-primary);
    }
    
    .footer-section h4::after {
        background: var(--text-primary);
    }
    
    .footer-section a {
        color: var(--text-primary);
    }
    
    .footer-social,
    .seo-badge,
    .ai-badge,
    .skip-to-top {
        display: none;
    }
    
    .footer-bottom {
        border-top-color: var(--gray-300);
    }
    
    .copyright {
        color: var(--text-primary);
    }
}
