/* ============================================
   FOOTER - TEMİZ VE ÇAKIŞMASIZ VERSİYON
============================================ */

footer {
    background-color: #f8f9fa;
    width: 100%;
    margin-top: 60px;
}

footer * {
    box-sizing: border-box !important;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 280px 1fr auto;
    gap: 80px;
    padding: 55px 100px 45px 100px;
    border-bottom: 1px solid #e9ecef;
    align-items: start;
}

/* ============================================
   SOL: LOGO + AÇIKLAMA + ŞEHİRLER
============================================ */

footer .footer-brand {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    text-align: left !important;
}

footer .footer-logo {
    max-width: 220px;
    height: auto;
    margin: 0 0 20px 0 !important;
    display: block !important;
}

footer .footer-desc {
    font-size: 14px !important;
    line-height: 1.6 !important;
    color: #6c757d !important;
    margin: 0 0 25px 0 !important;
    max-width: 280px;
    text-align: left !important;
    display: block !important;
}

footer .footer-cities {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    align-items: flex-start !important;
    width: 100%;
    text-align: left !important;
}

footer .footer-cities a {
    color: #4267B2 !important;
    font-size: 16px !important;
    text-decoration: none !important;
    font-weight: 400 !important;
    transition: color 0.2s ease;
    line-height: 1.5 !important;
    display: block !important;
    text-align: left !important;
    margin: 0 !important;
}

footer .footer-cities a:hover {
    color: #3B5998 !important;
    text-decoration: underline !important;
}

/* ============================================
   ORTA: 3 KOLON MENÜLER
============================================ */

.footer-menus {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

footer .footer-col h4 {
    font-size: 17px !important;
    font-weight: 600 !important;
    color: #212529 !important;
    margin: 0 0 22px 0 !important;
    text-align: left !important;
    display: block !important;
    padding: 0 !important;
    line-height: normal !important;
}

footer .footer-col ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: block !important;
}

footer .footer-col ul li {
    margin: 0 0 14px 0 !important;
    line-height: 1.5 !important;
    padding: 0 !important;
    list-style: none !important;
}

footer .footer-col ul li a {
    color: #6c757d !important;
    font-size: 15px !important;
    text-decoration: none !important;
    transition: color 0.2s ease;
    display: inline-block !important;
    line-height: 1.6 !important;
}

footer .footer-col ul li a:hover {
    color: #4267B2 !important;
}

/* ============================================
   BİZE ULAŞIN - İLETİŞİM LİNKLERİ (TEK VE DOĞRU)
============================================ */

footer .footer-contact {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
}

footer .footer-contact li {
    margin: 0 0 14px 0 !important;
    padding: 0 !important;
    line-height: 1.5 !important;
    list-style: none !important;
    display: block !important;
}

footer .footer-contact li a {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    flex-wrap: nowrap !important;
    gap: 10px !important;
    color: #6c757d !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
    font-size: 15px !important;
    line-height: 1.6 !important;
    padding: 0 !important;
    margin: 0 !important;
    font-family: inherit !important;
    white-space: normal !important;
}

footer .footer-contact li a:hover {
    color: #4267B2 !important;
}

/* İkonlar - Telefon ve Mail */
footer .footer-contact li a i {
    width: 18px !important;
    min-width: 18px !important;
    max-width: 18px !important;
    font-size: 15px !important;
    color: #4267B2 !important;
    flex-shrink: 0 !important;
    text-align: center !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
    vertical-align: middle !important;
}

footer .footer-contact li a i.fa-phone {
    font-size: 14px !important;
}

footer .footer-contact li a i.fa-envelope {
    font-size: 13px !important;
}

/* Email ve Telefon Metni - DOĞRU BÖLÜNME */
footer .footer-contact li a span {
    flex: 1 !important;
    /* Email düzgün bölünsün ama sadece gerekirse */
    overflow-wrap: break-word !important;
    word-break: normal !important;
    word-wrap: break-word !important;
    hyphens: none !important;
    white-space: normal !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.6 !important;
    vertical-align: middle !important;
}

/* ============================================
   SAĞ: UYGULAMA BUTONLARI
============================================ */

.footer-apps {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: flex-end;
}

.app-badge {
    display: block;
    transition: transform 0.2s ease;
}

.app-badge:hover {
    transform: translateY(-3px);
}

footer .app-badge img {
    display: block !important;
    width: 180px;
    height: auto;
    margin: 0 !important;
}

/* ============================================
   ALT: SOSYAL MEDYA + COPYRIGHT
============================================ */

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 100px;
    background-color: #f8f9fa;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    transition: all 0.3s ease;
    text-decoration: none !important;
}

.footer-social a:hover {
    background-color: #4267B2;
    transform: translateY(-3px);
    color: #fff !important;
}

.footer-social a i {
    font-size: 16px;
}

footer .footer-copyright {
    font-size: 14px !important;
    color: #6c757d !important;
    margin: 0 !important;
    text-align: right !important;
}

/* ============================================
   FLOATING WIDGETS
============================================ */

.scrollToTop {
    position: fixed;
    bottom: 125px;
    right: 3%;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.75);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.scrollToTop:hover {
    transform: scale(1.1);
    background: rgba(0, 0, 0, 0.9);
}

.scrollToTop svg {
    width: 25px;
    height: 25px;
    fill: #ffffff;
}

.con {
    position: fixed;
    bottom: 50px;
    right: 3%;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.telefon-ikonu {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
}

.telefon-ikonu:hover {
    transform: scale(1.1);
}

.ikonlar {
    display: flex;
    width: 100%;
    height: 100%;
}

.ikonlar img {
    width: 100%;
    height: auto;
    aspect-ratio: 1/1;
    background-color: #fff;
    padding: 8px;
    border-radius: 50%;
    transition: opacity 0.3s ease;
}

.ikonlar img:first-child {
    transform: translateX(0);
}

.ikonlar img:last-child {
    transform: translateX(-100%);
}

.ikon-div {
    position: relative;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
    gap: 5px;
    background-color: #fff;
    padding: 10px 0;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    animation: slideRightLeft 0.5s ease forwards;
}

@keyframes slideRightLeft {
    from {
        opacity: 0;
        right: -100px;
    }
    to {
        opacity: 1;
        right: 0;
    }
}

@keyframes slideTop {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-30px);
    }
}

.ikon-div a {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 70px 8px 20px;
    background-color: #fff;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

.ikon-div a:hover {
    background-color: rgba(0, 0, 0, 0.03);
}

.ikon-div a img {
    width: 35px;
    height: 35px;
    background-color: #25d366;
    padding: 8px;
    border-radius: 50%;
}

.ikon-div a img.phone-img {
    background-color: #4267B2;
}

.ikon-div a span {
    color: #000;
    font-size: 14px;
    font-weight: 500;
}

/* ============================================
   RESPONSIVE - TABLET (768px - 1024px)
============================================ */

@media screen and (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 40px 40px 35px 40px;
    }

    footer .footer-brand {
        align-items: center !important;
        text-align: center !important;
    }

    footer .footer-logo {
        max-width: 180px;
        margin: 0 auto 20px auto !important;
    }

    footer .footer-desc {
        text-align: center !important;
        margin: 0 auto 25px auto !important;
    }

    footer .footer-cities {
        flex-direction: row !important;
        gap: 20px !important;
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
    }

    .footer-menus {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }

    footer .footer-col {
        text-align: center !important;
    }

    footer .footer-col h4 {
        text-align: center !important;
    }

    footer .footer-col ul li a {
        display: block !important;
    }

    footer .footer-contact li a {
        justify-content: center !important;
    }

    .footer-apps {
        align-items: center;
        flex-direction: row;
        justify-content: center;
        gap: 15px;
    }

    footer .app-badge img {
        width: 140px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        padding: 25px 40px;
    }

    footer .footer-copyright {
        text-align: center !important;
    }
}

/* ============================================
   RESPONSIVE - MOBILE (< 768px)
============================================ */

@media screen and (max-width: 768px) {
    .footer-content {
        gap: 35px;
        padding: 35px 25px 30px 25px;
    }

    footer .footer-logo {
        max-width: 160px;
    }

    footer .footer-desc {
        font-size: 13px !important;
    }

    footer .footer-cities a {
        font-size: 14px !important;
    }

    .footer-menus {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    footer .footer-col h4 {
        font-size: 15px !important;
        margin-bottom: 15px !important;
    }

    footer .footer-col ul li {
        margin-bottom: 8px !important;
    }

    footer .footer-col ul li a {
        font-size: 13px !important;
    }

    footer .footer-contact li a {
        font-size: 13px !important;
    }
    
    footer .footer-contact li a i {
        width: 16px !important;
        min-width: 16px !important;
        max-width: 16px !important;
        font-size: 13px !important;
    }
    
    footer .footer-contact li a span {
        font-size: 13px !important;
    }

    .footer-apps {
        flex-direction: column;
        gap: 12px;
    }

    footer .app-badge img {
        width: 150px;
    }

    .footer-bottom {
        padding: 20px 25px;
    }

    .footer-social a {
        width: 38px;
        height: 38px;
    }

    .footer-social a i {
        font-size: 15px;
    }

    footer .footer-copyright {
        font-size: 13px !important;
    }

    .scrollToTop {
        width: 50px;
        height: 50px;
        bottom: 115px;
        right: 4%;
    }

    .scrollToTop svg {
        width: 20px;
        height: 20px;
    }

    .telefon-ikonu {
        width: 50px;
        height: 50px;
    }

    .con {
        right: 4%;
    }
}

/* ============================================
   RESPONSIVE - MOBILE SMALL (< 480px)
============================================ */

@media screen and (max-width: 480px) {
    .footer-content {
        gap: 30px;
        padding: 30px 20px 25px 20px;
    }

    footer .footer-logo {
        max-width: 140px;
    }

    footer .footer-desc {
        font-size: 12px !important;
    }

    footer .footer-cities {
        flex-direction: column !important;
        gap: 8px !important;
    }

    footer .footer-cities a {
        font-size: 13px !important;
    }

    footer .footer-col h4 {
        font-size: 14px !important;
    }

    footer .footer-col ul li a {
        font-size: 12px !important;
    }

    footer .footer-contact li a {
        font-size: 12px !important;
    }
    
    footer .footer-contact li a i {
        width: 15px !important;
        min-width: 15px !important;
        max-width: 15px !important;
        font-size: 12px !important;
    }

    footer .app-badge img {
        width: 130px;
    }

    .footer-bottom {
        padding: 18px 20px;
    }

    .footer-social {
        gap: 12px;
    }

    .footer-social a {
        width: 36px;
        height: 36px;
    }

    .footer-social a i {
        font-size: 14px;
    }

    footer .footer-copyright {
        font-size: 12px !important;
    }

    .scrollToTop {
        width: 45px;
        height: 45px;
        bottom: 105px;
    }

    .telefon-ikonu {
        width: 45px;
        height: 45px;
    }

    .ikon-div a {
        padding: 7px 50px 7px 15px;
    }

    .ikon-div a img {
        width: 30px;
        height: 30px;
    }

    .ikon-div a span {
        font-size: 13px;
    }
}