/* Prevent horizontal scroll and enable sticky footer */
body {
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Footer Styling */
.site-footer {
    margin-top: auto;
    /* Pushes footer to bottom */
    position: relative;
    padding: 40px 0 30px;
    border-top: none;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box;
}

.site-footer::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    width: auto;
    margin-left: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.06) 0%, rgba(0, 0, 0, 0) 100%);
    z-index: -1;
    pointer-events: none;
}

html.dark-mode .site-footer::before {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    padding: 0 20px;
}

/* Social Icons - Left Side */
.footer-socials {
    display: flex;
    gap: 12px;
    align-items: center;
}

.social-icon {
    width: 44px;
    height: 44px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.social-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

html.dark-mode .social-icon {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

html.dark-mode .social-icon:hover {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.social-icon svg {
    width: 24px;
    height: 24px;
    fill: var(--color-brown);
}

html.dark-mode .social-icon svg {
    fill: #ffffff;
}

/* Footer Right - Disclaimer & Copyright */
.footer-right {
    text-align: right;
    max-width: 600px;
    margin-left: auto;
}

.footer-disclaimer {
    font-size: 11px;
    line-height: 1.6;
    color: #666;
    margin: 0 0 15px 0;
    font-family: 'Sora', sans-serif;
}

html.dark-mode .footer-disclaimer {
    color: #aaa;
}

.footer-feedback-row {
    margin: -10px 0 15px 0;
}

.footer-feedback-link {
    font-size: 11px;
    color: #666;
    text-decoration: underline;
    font-family: 'Sora', sans-serif;
    cursor: pointer;
    transition: color 0.3s ease;
}

.footer-feedback-link:hover {
    color: var(--color-brown);
}

html.dark-mode .footer-feedback-link {
    color: #aaa;
}

html.dark-mode .footer-feedback-link:hover {
    color: #ffffff;
}

.site-info {
    font-size: 13px;
    color: #888;
    margin: 0;
    font-family: 'Sora', sans-serif;
}

html.dark-mode .site-info {
    color: #999;
}

/* Tablet/Medium Screen - center footer at 1200px */
@media (max-width: 1200px) {
    .footer-inner {
        flex-direction: column;
        text-align: center;
        gap: 30px;
        align-items: center;
    }

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

    .footer-right {
        text-align: center;
        margin-left: 0;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .footer-inner {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

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

    .footer-right {
        text-align: center;
        margin-left: 0;
    }
}

/* Remove OLD animated arrows (::before) from ACbuy and Discord links */
.header-links a[href*="kakobuy"]::before,
.header-links a[href*="discord"]::before {
    display: none !important;
}

html.dark-mode .header-links a[href*="kakobuy"]::before,
html.dark-mode .header-links a[href*="discord"]::before {
    display: none !important;
}

/* Refraction border effect for social icons */
.social-icon {
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    position: relative;
}

.social-icon::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 12px;
    padding: 1px;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.4) 0%, 
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0.4) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.social-icon:hover::before {
    opacity: 1;
}

html.dark-mode .social-icon {
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

html.dark-mode .social-icon::before {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.3) 0%, 
        rgba(255, 255, 255, 0.05) 50%,
        rgba(255, 255, 255, 0.3) 100%);
}

/* KakoBuy icon styling */
.social-icon .kakobuy-icon {
    width: 24px;
    height: 24px;
    color: var(--color-brown);
    fill: currentColor !important;
    transition: fill 0.3s ease, color 0.3s ease;
}

html.dark-mode .social-icon .kakobuy-icon {
    color: #ffffff;
    fill: currentColor !important;
}

/* Footer disclaimer - scale font to prevent wrapping within lines */
.footer-disclaimer {
    white-space: nowrap;
}

/* At 1200px, allow normal wrapping since footer is centered */
@media (max-width: 1200px) {
    .footer-disclaimer {
        white-space: normal;
    }
}

/* Use viewport-based sizing to shrink text proportionally */
@media (max-width: 600px) {
    .footer-disclaimer {
        font-size: clamp(7px, 1.8vw, 11px);
        white-space: normal;
    }
}
