﻿/* =============================================
   MODERN GLASSMORPHISM FOOTER
   Kentsel Dönüşüm Başkanlığı
   ============================================= */

/* Ana Footer Container */
.main-footer.modern-footer {
    position: relative;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    overflow: hidden;
    padding: 0;
}

    /* Animasyonlu Arka Plan */
    .main-footer.modern-footer::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-image: radial-gradient(circle at 10% 20%, rgba(30, 77, 121, 0.3) 0%, transparent 40%), radial-gradient(circle at 90% 80%, rgba(37, 38, 56, 0.4) 0%, transparent 40%), radial-gradient(circle at 50% 50%, rgba(30, 77, 121, 0.1) 0%, transparent 60%);
        animation: footerPulse 25s ease-in-out infinite;
        pointer-events: none;
    }

@keyframes footerPulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

/* Floating Particles */
.footer-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

    .footer-particles .particle {
        position: absolute;
        width: 3px;
        height: 3px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 50%;
        animation: floatParticle 20s infinite linear;
    }

        .footer-particles .particle:nth-child(1) {
            left: 5%;
            animation-delay: 0s;
            animation-duration: 18s;
        }

        .footer-particles .particle:nth-child(2) {
            left: 15%;
            animation-delay: 3s;
            animation-duration: 22s;
        }

        .footer-particles .particle:nth-child(3) {
            left: 25%;
            animation-delay: 1s;
            animation-duration: 19s;
        }

        .footer-particles .particle:nth-child(4) {
            left: 40%;
            animation-delay: 4s;
            animation-duration: 24s;
        }

        .footer-particles .particle:nth-child(5) {
            left: 55%;
            animation-delay: 2s;
            animation-duration: 20s;
        }

        .footer-particles .particle:nth-child(6) {
            left: 70%;
            animation-delay: 5s;
            animation-duration: 21s;
        }

        .footer-particles .particle:nth-child(7) {
            left: 85%;
            animation-delay: 1s;
            animation-duration: 23s;
        }

        .footer-particles .particle:nth-child(8) {
            left: 95%;
            animation-delay: 3s;
            animation-duration: 17s;
        }

@keyframes floatParticle {
    0% {
        transform: translateY(100%) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-100vh) rotate(360deg);
        opacity: 0;
    }
}

/* =============================================
   FOOTER TOP - LOGO SECTION
   ============================================= */
.footer-top-section {
    position: relative;
    z-index: 2;
    padding: 60px 0 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

/* Sol Logo - KDB */
.footer-logo-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

    .footer-logo-left img {
        height: 70px;
        width: auto;
        filter: brightness(1.1);
        transition: all 0.3s ease;
    }

    .footer-logo-left:hover img {
        filter: brightness(1.2);
        transform: scale(1.02);
    }

/* Sağ Logo - Bakanlık (Glassmorphism Card) */
.footer-logo-right {
    position: relative;
}

.footer-ministry-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 25px;
    background: linear-gradient(135deg, rgba(178, 34, 34, 0.9) 0%, rgba(139, 0, 0, 0.85) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    text-decoration: none;
}

    .footer-ministry-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4);
        border-color: rgba(255, 255, 255, 0.25);
    }

    .footer-ministry-card img {
        height: 50px;
        width: auto;
    }

.footer-ministry-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

    .footer-ministry-text .ministry-top {
        font-size: 10px;
        color: rgba(255, 255, 255, 0.8);
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    .footer-ministry-text .ministry-name {
        font-size: 13px;
        font-weight: 600;
        color: #fff;
        line-height: 1.3;
    }

/* =============================================
   FOOTER LINKS - GLASSMORPHISM CARDS
   ============================================= */
.footer-links-section {
    position: relative;
    z-index: 2;
    padding: 50px 0;
}

.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

/* Her Link Kolonu */
.footer-link-column {
    position: relative;
}

/* Glassmorphism Kart Efekti */
.footer-link-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 25px;
    height: 100%;
    transition: all 0.3s ease;
}

    .footer-link-card:hover {
        background: rgba(255, 255, 255, 0.05);
        border-color: rgba(255, 255, 255, 0.1);
        transform: translateY(-5px);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    }

/* Link Listesi */
.footer-link-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .footer-link-list li {
        margin-bottom: 12px;
    }

        .footer-link-list li:last-child {
            margin-bottom: 0;
        }

        .footer-link-list li a {
            display: flex;
            align-items: center;
            gap: 12px;
            font-size: 14px;
            color: rgba(255, 255, 255, 0.7);
            text-decoration: none;
            padding: 10px 15px;
            border-radius: 8px;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }

            /* Link Bullet Icon */
            .footer-link-list li a::before {
                content: '';
                width: 6px;
                height: 6px;
                background: linear-gradient(135deg, #4a90c2, #1E4D79);
                border-radius: 50%;
                flex-shrink: 0;
                transition: all 0.3s ease;
            }

            .footer-link-list li a:hover {
                background: rgba(30, 77, 121, 0.2);
                color: #fff;
                padding-left: 20px;
            }

                .footer-link-list li a:hover::before {
                    transform: scale(1.5);
                    box-shadow: 0 0 10px rgba(74, 144, 194, 0.5);
                }

            /* Link Hover Glow Effect */
            .footer-link-list li a::after {
                content: '';
                position: absolute;
                left: 0;
                top: 0;
                width: 3px;
                height: 100%;
                background: linear-gradient(180deg, #1E4D79, #4a90c2);
                transform: scaleY(0);
                transition: transform 0.3s ease;
                border-radius: 3px;
            }

            .footer-link-list li a:hover::after {
                transform: scaleY(1);
            }

/* =============================================
   FOOTER BOTTOM - COPYRIGHT & SOCIAL
   ============================================= */
.footer-bottom-section {
    position: relative;
    z-index: 2;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 0;
    flex-wrap: wrap;
    gap: 20px;
}

/* Copyright */
.footer-copyright {
    display: flex;
    align-items: center;
    gap: 10px;
}

    .footer-copyright p {
        font-size: 13px;
        color: rgba(255, 255, 255, 0.6);
        margin: 0;
    }

    .footer-copyright a {
        color: rgba(255, 255, 255, 0.8);
        text-decoration: none;
        transition: color 0.3s ease;
    }

        .footer-copyright a:hover {
            color: #4a90c2;
        }

/* Sosyal Medya İkonları */
.footer-social {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

    .footer-social-link::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, #1E4D79, #4a90c2);
        opacity: 0;
        transition: opacity 0.3s ease;
        border-radius: 11px;
    }

    .footer-social-link:hover {
        transform: translateY(-3px);
        border-color: transparent;
        box-shadow: 0 10px 25px rgba(30, 77, 121, 0.4);
    }

        .footer-social-link:hover::before {
            opacity: 1;
        }

    .footer-social-link img {
        width: 20px;
        height: 20px;
        position: relative;
        z-index: 1;
        filter: brightness(0.9);
        transition: all 0.3s ease;
    }

    .footer-social-link:hover img {
        filter: brightness(1.2);
        transform: scale(1.1);
    }

    /* Font Awesome Icon Alternative */
    .footer-social-link i {
        font-size: 18px;
        color: rgba(255, 255, 255, 0.7);
        position: relative;
        z-index: 1;
        transition: all 0.3s ease;
    }

    .footer-social-link:hover i {
        color: #fff;
    }

/* =============================================
   SCROLL TO TOP BUTTON - MODERN
   ============================================= */
.scroll-top.modern-scroll {
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #1E4D79, #2d6da3);
    border: none;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 999;
    box-shadow: 0 10px 30px rgba(30, 77, 121, 0.4);
}

    .scroll-top.modern-scroll.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .scroll-top.modern-scroll:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 40px rgba(30, 77, 121, 0.5);
    }

    .scroll-top.modern-scroll span {
        color: #fff;
        font-size: 20px;
        transition: transform 0.3s ease;
    }

    .scroll-top.modern-scroll:hover span {
        transform: translateY(-3px);
    }

    /* Pulse Animation */
    .scroll-top.modern-scroll::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: inherit;
        border-radius: inherit;
        animation: scrollPulse 2s ease-in-out infinite;
        z-index: -1;
    }

@keyframes scrollPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.5;
    }
}

/* =============================================
   RESPONSIVE DESIGN
   ============================================= */
@media (max-width: 1200px) {
    .footer-links-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 991px) {
    .footer-top-section {
        padding: 50px 0 30px;
    }

    .footer-logo-row {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-logo-left img {
        height: 60px;
    }

    .footer-links-section {
        padding: 40px 0;
    }

    .footer-link-card {
        padding: 20px;
    }
}

@media (max-width: 767px) {
    .footer-top-section {
        padding: 40px 0 25px;
    }

    .footer-logo-left img {
        height: 50px;
    }

    .footer-ministry-card {
        padding: 12px 18px;
    }

        .footer-ministry-card img {
            height: 40px;
        }

    .footer-ministry-text .ministry-name {
        font-size: 11px;
    }

    .footer-links-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .footer-link-card {
        padding: 15px;
    }

    .footer-link-list li a {
        padding: 8px 12px;
        font-size: 13px;
    }

    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
        padding: 20px 0;
    }

    .footer-copyright {
        order: 2;
    }

    .footer-social {
        order: 1;
    }

    .scroll-top.modern-scroll {
        right: 20px;
        bottom: 20px;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .footer-logo-left img {
        height: 45px;
    }

    .footer-ministry-card {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }

    .footer-social-link {
        width: 40px;
        height: 40px;
    }
}

/* =============================================
   ANIMATIONS
   ============================================= */
.footer-link-column {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

    .footer-link-column:nth-child(1) {
        animation-delay: 0.1s;
    }

    .footer-link-column:nth-child(2) {
        animation-delay: 0.2s;
    }

    .footer-link-column:nth-child(3) {
        animation-delay: 0.3s;
    }

    .footer-link-column:nth-child(4) {
        animation-delay: 0.4s;
    }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Intersection Observer ile tetiklenecek */
.footer-link-column.animate {
    animation: fadeInUp 0.6s ease forwards;
}
