/* Modern Footer Component - SyntaxError Studio */
/* Built from scratch for perfect responsiveness and design */

.site-footer {
    background: linear-gradient(135deg, 
        rgba(15, 23, 42, 0.98) 0%, 
        rgba(30, 41, 59, 0.95) 50%, 
        rgba(15, 23, 42, 0.98) 100%);
    border-top: 2px solid rgba(250, 204, 21, 0.3);
    position: relative;
    overflow: hidden;
    margin-top: auto;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(250, 204, 21, 0.6) 50%, 
        transparent 100%);
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 3rem 1rem 1.5rem;
    position: relative;
    z-index: 1;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 2rem;
}

/* Company Section */
.footer-company {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.footer-logo img {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    transition: transform 0.3s ease;
}

.footer-logo img:hover {
    transform: rotate(10deg) scale(1.1);
}

.footer-logo-text {
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #facc15, #f59e0b);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.02em;
}

.footer-description {
    color: #94a3b8;
    line-height: 1.7;
    font-size: 1rem;
    max-width: 420px;
}

/* Footer Sections */
.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #facc15;
    margin-bottom: 1.25rem;
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.01em;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-link {
    color: #e2e8f0; /* Lighter gray for better contrast */
    text-decoration: none;
    font-size: 0.9375rem;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 0;
    display: inline-block; /* Ensure proper clickable area */
    min-height: 1.5rem; /* Ensure adequate clickable height */
    line-height: 1.5;
    cursor: pointer; /* Force cursor pointer */
    /* Enhanced interaction area */
    padding: 0.25rem 0;
    margin: 0.125rem 0;
}

.footer-link:hover {
    color: #facc15 !important; /* Force yellow on hover */
    padding-left: 0.5rem !important;
    text-decoration: none !important;
}

.footer-link:focus {
    color: #facc15 !important;
    outline: 2px solid #facc15;
    outline-offset: 2px;
}

.footer-link:active {
    color: #f59e0b !important; /* Slightly darker yellow for active state */
}

.footer-link::before {
    content: '';
    position: absolute;
    left: -0.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 2px;
    background: #facc15;
    transition: width 0.3s ease;
    border-radius: 1px;
}

.footer-link:hover::before {
    width: 0.25rem !important;
}

.footer-link:focus::before {
    width: 0.25rem !important;
}

/* Contact Info Styling */
.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: #e2e8f0; /* Better contrast */
    font-size: 0.9375rem;
    line-height: 1.6;
}

.contact-icon {
    color: #facc15;
    width: 1rem;
    height: 1rem;
    font-size: 1rem;
    margin-top: 0.125rem;
    flex-shrink: 0;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(250, 204, 21, 0.2);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copyright {
    color: #64748b;
    font-size: 0.875rem;
}

.footer-links-bottom {
    display: flex;
    gap: 2rem;
}

.footer-links-bottom a {
    color: #64748b;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
    display: inline-block; /* Ensure proper clickable area */
    padding: 0.25rem 0;
    cursor: pointer; /* Force cursor pointer */
    position: relative;
}

.footer-links-bottom a:hover {
    color: #facc15 !important;
    text-decoration: none !important;
}

.footer-links-bottom a:focus {
    color: #facc15 !important;
    outline: 2px solid #facc15;
    outline-offset: 2px;
}

.footer-links-bottom a:active {
    color: #f59e0b !important;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
        gap: 2rem;
    }
    
    .footer-container {
        padding: 2.5rem 1rem 1.5rem;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    .footer-company {
        grid-column: 1 / -1;
        margin-bottom: 1rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .footer-links-bottom {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-container {
        padding: 2rem 1rem 1rem;
    }
    
    .footer-logo-text {
        font-size: 1.25rem;
    }
    
    .footer-description {
        font-size: 0.9375rem;
    }
    
    .footer-links-bottom {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 320px) {
    .footer-container {
        padding: 1.5rem 0.75rem 1rem;
    }
    
    .footer-title {
        font-size: 1rem;
    }
    
    .footer-link,
    .contact-item {
        font-size: 0.875rem;
    }
    
    .footer-copyright,
    .footer-links-bottom a {
        font-size: 0.8125rem;
    }
}

/* Large screens optimization */
@media (min-width: 1440px) {
    .footer-container {
        padding: 4rem 1rem 2rem;
    }
    
    .footer-grid {
        gap: 3rem;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    .footer-logo img,
    .social-link,
    .footer-link {
        transition: none;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .site-footer {
        background: linear-gradient(135deg, 
            rgba(0, 0, 0, 0.98) 0%, 
            rgba(15, 23, 42, 0.95) 50%, 
            rgba(0, 0, 0, 0.98) 100%);
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .site-footer {
        border-top-width: 3px;
    }
    
    .footer-link:hover,
    .social-link:hover {
        outline: 2px solid #facc15;
        outline-offset: 2px;
    }
}

/* Footer Link Override Protection */
/* These rules ensure footer links work correctly across all pages */
.site-footer .footer-link,
.site-footer .footer-links a,
footer .footer-link,
footer a.footer-link {
    pointer-events: auto !important;
    cursor: pointer !important;
    text-decoration: none !important;
    color: #e2e8f0 !important;
    transition: all 0.3s ease !important;
}

.site-footer .footer-link:hover,
.site-footer .footer-links a:hover,
footer .footer-link:hover,
footer a.footer-link:hover {
    color: #facc15 !important;
    text-decoration: none !important;
}

/* Ensure footer links are always clickable */
.site-footer a {
    position: relative;
    z-index: 1;
}

/* Bottom footer links protection */
.footer-links-bottom a {
    pointer-events: auto !important;
    cursor: pointer !important;
}
