:root {
    --bg: var(--footer-bg);
    --clr: var(--footer-text);
    --hclr: var(--footer-heading);
    --cahvr: var(--footer-hover);
    --fnt: var(--footer-font, "Google Sans", sans-serif);
}

footer {
    background-color: var(--bg) !important;
    color: var(--clr);
    padding: 3em 1em 2em;
    font-family: var(--fnt);
    width: 100%;
    margin: 0;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    /* Işık taşmasın */
}

/* CONTENT STACKING (Işığın Üstünde) */
#footer-bilgi,
#footer-c,
.footer-contact,
.developer-credit {
    position: relative;
    z-index: 10;
}

footer h2 {
    color: var(--hclr);
    margin-bottom: 0.5em;
}

#footer-bilgi {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2em;
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

.footer-logo-desc p {
    margin-top: 1em;
    line-height: 1.5;
}

.logo-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

#footer-kurumsal ul,
#footer-kariyer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#footer-kurumsal ul li a,
#footer-kariyer ul li a {
    text-decoration: none;
    color: var(--clr);
    display: block;
    margin-bottom: 0.3em;
    transition: color 0.2s;
}

#footer-kurumsal ul li a:hover,
#footer-kariyer ul li a:hover {
    color: var(--cahvr);
}

.footer-contact .social-icons a {
    margin-right: 0.5em;
    font-size: 1.2em;
    color: var(--clr);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-contact .social-icons a:hover {
    color: var(--cahvr);
}

/* BOTTOM BAR */
#footer-c {
    margin: 40px auto 0;
    width: 90%;
    max-width: 1200px;
    padding-top: 25px;
    border-top: 1px solid rgba(128, 128, 128, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    background: transparent;
    padding: 20px 0;
    color: var(--clr);
    margin-top: 40px;
    margin-bottom: 20px;
}

.footer-c-left a {
    text-decoration: none;
    color: var(--hclr);
    font-weight: 500;
    transition: 0.2s;
}

.footer-c-left a:hover {
    color: var(--cahvr);
}

.developer-credit {
    display: flex;
    align-items: center;
    gap: 10px;
}

.atenar-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 0, 0, 0.6);
    /* Daha belirgin koyu zemin */
    padding: 8px 16px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff !important;
    /* Tam beyaz yazı */
    text-decoration: none !important;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(5px);
    position: relative;
    z-index: 11;
}

.atenar-badge:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--hclr);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.atenar-badge:hover i {
    transform: rotate(15deg) scale(1.2);
    color: #fff;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    footer {
        padding-bottom: 20px !important;
    }

    #footer-bilgi {
        display: flex;
        flex-direction: column;
        width: 100%;
        max-width: 100%;
        gap: 40px;
        text-align: left;
        /* Aligned left as per standard design */
    }

    .footer-logo-desc {
        order: 1;
        width: 100%;
        display: block;
        margin: 0;
    }

    .footer-links {
        order: 2;
        width: 100%;
        display: block;
        margin: 0;
    }

    .footer-contact {
        order: 3;
        width: 100%;
        display: block;
        margin: 0;
    }

    .footer-map {
        order: 4;
        width: 100%;
        display: block;
        margin: 0;
    }

    .footer-logo-desc p {
        width: 100%;
        margin: 15px 0 0 0;
    }

    .logo-wrapper {
        justify-content: flex-start;
        /* Align logo left */
    }

    .footer-contact .social-icons a {
        margin: 0 15px 0 0;
        /* Space on right instead of sides */
        font-size: 1.4em;
    }

    .footer-contact .social-icons {
        justify-content: flex-start;
        display: flex;
    }

    #footer-c {
        flex-direction: column;
        gap: 15px;
        margin-top: 20px;
        padding-top: 15px;
        padding-bottom: 20px !important;
        text-align: center;
        /* Keep bottom copyright centered */
    }

    .footer-c-left {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    /* SCROLL BTN MOBILE */
    #scrollTopBtn {
        bottom: 80px !important;
        right: 15px !important;
        width: 45px;
        height: 45px;
    }



    .site-header,
    .home-hero,
    .home-products {
        background-color: #fff;
        position: relative;
        z-index: 2;
    }
}

/* SCROLL TO TOP BTN - PC (Yan Yana) */
#scrollTopBtn {
    position: fixed;
    bottom: 20px;
    right: 90px;
    background: #222;
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    z-index: 999;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);

    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

#scrollTopBtn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#scrollTopBtn:hover {
    background: #444;
    transform: translateY(-3px);
}

/* GLOW BAR - INTENSE */
.footer-bottom-glow {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg,
            transparent 0%,
            var(--footer-heading, #c59d5f) 20%,
            var(--footer-heading, #c59d5f) 80%,
            transparent 100%);
    box-shadow: 0 -10px 50px var(--footer-heading, #c59d5f);
    opacity: 0.9;
    z-index: 1;
    pointer-events: none;
    animation: footerGlowPulse 5s ease-in-out infinite;
}

@keyframes footerGlowPulse {

    0%,
    100% {
        opacity: 0.4;
    }

    50% {
        opacity: 1;
    }
}

/* Contact List */
.contact-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5em 0;
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    color: var(--clr);
    font-size: 0.95rem;
    line-height: 1.5;
}

.contact-list li i {
    color: var(--hclr);
    margin-top: 4px;
    /* Align with first line of text */
    width: 20px;
    text-align: center;
}

.contact-list li a {
    color: var(--clr);
    text-decoration: none;
    transition: color 0.2s;
    word-break: break-all;
    /* For long emails */
}

.contact-list li a:hover {
    color: var(--cahvr);
}

/* Footer Map */
.footer-map .map-container {
    width: 100%;
    height: 200px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-map .map-container iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
}