/* Footer v2 - Modern 2026 Design */

:root {
    --footer-accent: #0066FF;
    --footer-bg: #0a0e27;
    --footer-bg-light: #12172e;
    --footer-text: #e5e7eb;
    --footer-text-muted: #9ca3af;
    --footer-border: rgba(255, 255, 255, 0.1);
}

.custom-footer-v2 {
    position: relative;
    background: var(--footer-bg);
    color: var(--footer-text);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', sans-serif;
    margin-top: 120px;
}

/* === WAVE SEPARATOR === */
.footer-wave {
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    height: 120px;
    color: var(--footer-bg);
    z-index: 1;
    line-height: 0;
}

.footer-wave svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* === MAIN FOOTER === */
.footer-main-v2 {
    padding: 80px 0 60px;
    background: linear-gradient(135deg, var(--footer-bg) 0%, var(--footer-bg-light) 100%);
    position: relative;
}

/* Decorative Elements */
.footer-main-v2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 102, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 102, 255, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.footer-container-v2 {
    margin: 0 200px !important;
    width: unset;
    max-width: 100%;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
    gap: 60px;
    position: relative;
    z-index: 2;
}

/* === BRAND COLUMN === */
.footer-brand-v2 {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.footer-logo-v2 a {
    display: inline-block;
}

.footer-logo-image-v2 {
    height: 45px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: all 0.3s ease;
}

.footer-logo-v2 a:hover .footer-logo-image-v2 {
    transform: translateY(-3px);
    filter: brightness(0) invert(1) drop-shadow(0 4px 12px rgba(0, 102, 255, 0.4));
}

.footer-site-title-v2 {
    font-size: 28px;
    font-weight: 800;
    color: white;
    text-decoration: none;
}

.footer-description-v2 {
    font-size: 15px;
    line-height: 1.7;
    color: var(--footer-text-muted);
    margin: 0;
}

/* === NEWSLETTER === */
.footer-newsletter-v2 {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--footer-border);
    border-radius: 16px;
    padding: 24px;
    backdrop-filter: blur(10px);
}

.newsletter-title-v2 {
    font-size: 16px;
    font-weight: 700;
    color: white;
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.newsletter-title-v2 svg {
    color: var(--footer-accent);
}

.newsletter-text-v2 {
    font-size: 14px;
    color: var(--footer-text-muted);
    margin: 0 0 16px 0;
}

.newsletter-input-wrapper {
    display: flex;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--footer-border);
    border-radius: 12px;
    padding: 4px;
    transition: all 0.3s ease;
}

.newsletter-input-wrapper:focus-within {
    border-color: var(--footer-accent);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

.newsletter-form-v2 input {
    flex: 1;
    background: transparent;
    border: none;
    color: white;
    font-size: 14px;
    padding: 10px 14px;
    outline: none;
}

.newsletter-form-v2 input::placeholder {
    color: var(--footer-text-muted);
}

.newsletter-form-v2 button {
    width: 44px;
    height: 44px;
    background: var(--footer-accent);
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.newsletter-form-v2 button:hover {
    background: #0052cc;
    transform: translateX(4px);
}

/* === SOCIAL MEDIA === */
.footer-social-v2 {
    display: flex;
    gap: 12px;
}

.social-link-v2 {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--footer-border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--footer-text);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link-v2:hover {
    background: var(--footer-accent);
    border-color: var(--footer-accent);
    color: white;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 102, 255, 0.3);
}

/* === FOOTER COLUMNS === */
.footer-column {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.footer-heading-v2 {
    font-size: 18px;
    font-weight: 700;
    color: white;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    padding-bottom: 16px;
}

.footer-heading-v2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--footer-accent);
    border-radius: 2px;
}

.footer-heading-v2 svg {
    color: var(--footer-accent);
    flex-shrink: 0;
}

/* === FOOTER MENU === */
.footer-menu-v2 {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-menu-v2 li {
    margin: 0;
}

.footer-menu-v2 a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--footer-text-muted);
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s ease;
    padding: 8px 0;
    position: relative;
}

.footer-menu-v2 a .menu-icon {
    color: var(--footer-accent);
    font-size: 18px;
    transition: transform 0.3s ease;
}

.footer-menu-v2 a:hover {
    color: white;
    padding-left: 8px;
}

.footer-menu-v2 a:hover .menu-icon {
    transform: translateX(4px);
}

.post-count {
    margin-left: auto;
    font-size: 13px;
    color: var(--footer-text-muted);
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 10px;
    border-radius: 12px;
}

/* === PARTNERS SCROLL CONTAINER === */
.partners-scroll-container-v2 {
    max-height: 200px;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Custom scrollbar styling */
.partners-scroll-container-v2::-webkit-scrollbar {
    width: 6px;
}

.partners-scroll-container-v2::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.partners-scroll-container-v2::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    transition: background 0.3s ease;
}

.partners-scroll-container-v2::-webkit-scrollbar-thumb:hover {
    background: var(--footer-accent);
}

/* Firefox scrollbar */
.partners-scroll-container-v2 {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) rgba(255, 255, 255, 0.05);
}

.partners-list-v2 {
    padding-right: 8px;
}

/* === FOOTER BOTTOM === */
.footer-bottom-v2 {
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid var(--footer-border);
    padding: 24px 0;
}

.footer-bottom-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.footer-copyright-v2 {
    font-size: 14px;
    color: var(--footer-text-muted);
    margin: 0;
}

.footer-copyright-v2 strong {
    color: white;
    font-weight: 600;
}

.footer-made-v2 {
    font-size: 14px;
    color: var(--footer-text-muted);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.heart-icon {
    display: inline-flex;
    color: #ef4444;
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.1); }
    50% { transform: scale(1); }
}

/* === SCROLL TO TOP BUTTON === */
.scroll-to-top-v2 {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 56px;
    height: 56px;
    background: var(--footer-accent);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(0, 102, 255, 0.4);
    z-index: 1000;
}

.scroll-to-top-v2.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top-v2:hover {
    background: #0052cc;
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 102, 255, 0.5);
}

.scroll-to-top-v2:active {
    transform: translateY(-2px);
}

/* === RESPONSIVE === */

/* Large Tablet */
@media (max-width: 1024px) {
    .footer-container-v2 {
        grid-template-columns: repeat(3, 1fr);
        gap: 48px;
    }

    .footer-brand-v2 {
        grid-column: 1 / -1;
    }
}

/* Tablet */
@media (max-width: 768px) {
    .custom-footer-v2 {
        margin-top: 0;
    }

    .footer-main-v2 {
        padding: 60px 0 40px;
    }

    .footer-container-v2 {
        grid-template-columns: 1fr;
        gap: 40px;
        margin: 0!important;
    }

    .footer-bottom-container {
        flex-direction: column;
        text-align: center;
    }

    .scroll-to-top-v2 {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .footer-wave {
        height: 80px;
    }

    .footer-main-v2 {
        padding: 50px 0 30px;
    }

    .footer-container-v2 {
        padding: 0 16px;
        gap: 32px;
        margin: 0!important;
    }

    .footer-newsletter-v2 {
        padding: 20px;
    }

    .newsletter-input-wrapper {
        flex-direction: column;
    }

    .newsletter-form-v2 button {
        width: 100%;
        height: 48px;
    }

    .footer-social-v2 {
        justify-content: center;
    }

    .footer-heading-v2 {
        font-size: 16px;
    }

    .footer-menu-v2 a {
        font-size: 14px;
    }

    .footer-copyright-v2,
    .footer-made-v2 {
        font-size: 13px;
    }
}

/* === ANIMATIONS & EFFECTS === */
@media (prefers-reduced-motion: no-preference) {
    .footer-brand-v2,
    .footer-column {
        animation: fadeInUp 0.6s ease-out backwards;
    }

    .footer-column:nth-child(2) {
        animation-delay: 0.1s;
    }

    .footer-column:nth-child(3) {
        animation-delay: 0.2s;
    }

    .footer-column:nth-child(4) {
        animation-delay: 0.3s;
    }

    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(30px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* Dark mode enhancement */
@media (prefers-color-scheme: dark) {
    .custom-footer-v2 {
        /* Already dark, but could add extra effects */
    }
}