/* Footer Variables */
:root {
    --footer-bg: #050505;
    --footer-text: #d4d4d4;
    /* Light text for better contrast */
    --footer-title: #ffffff;
    --footer-cta-bg: #10b981;
    /* Brand Green */
    --footer-divider: #333333;
    /* Dark gray divider */
}

/* Footer Container */
.footer-wrapper {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    position: relative;
    padding-top: 10rem;
    /* Space for Floating CTA */
    padding-bottom: 75px;
    margin-top: 8rem;
    /* Space from previous section */
}

/* Floating CTA Style */
.footer-cta-wrapper {
    position: absolute;
    top: -80px;
    left: 0;
    width: 100%;
    z-index: 10;
    pointer-events: none;
    /* Wrapper shouldn't block clicks */
}

.footer-cta-wrapper .container {
    pointer-events: auto;
    /* Restore clicks for content */
}

.footer-cta {
    background-color: #059669;
    /* Flat Base Color */
    border-radius: 8px;
    padding: 3.5rem 4.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    gap: 3.5rem;
}

/* Remove animated gradient */
/* @keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
} */

/* Decorative background elements */
.footer-cta::before,
.footer-cta::after {
    content: '';
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    z-index: 1;
    pointer-events: none;
}

.footer-cta::before {
    width: 300px;
    height: 300px;
    top: -150px;
    right: -100px;
    animation: float 20s infinite linear;
}

.footer-cta::after {
    width: 200px;
    height: 200px;
    bottom: -100px;
    left: -50px;
    background: rgba(255, 255, 255, 0.05);
    animation: float 15s infinite linear reverse;
}

@keyframes float {
    from {
        transform: rotate(0deg) translate(20px) rotate(0deg);
    }

    to {
        transform: rotate(360deg) translate(20px) rotate(-360deg);
    }
}

.cta-content {
    flex: 1.5;
    position: relative;
    z-index: 2;
    text-align: left;
}

.cta-title {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.75rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.cta-desc {
    font-size: 1.15rem;
    color: #ffffff;
    font-weight: 400;
    line-height: 1.6;
    max-width: 550px;
}

.subscribe-form {
    flex: 1;
    max-width: 450px;
    position: relative;
    z-index: 5;
    display: flex;
    flex-direction: column;
}

.subscribe-input-group {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 8px;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 68px;
    box-sizing: border-box;
    width: 100%;
}

.subscribe-input-group:focus-within {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
}

.subscribe-input {
    flex: 1;
    background: transparent !important;
    border: none;
    padding: 0 1.75rem !important;
    color: #fff;
    font-size: 1.05rem;
    outline: none;
    min-width: 0;
    height: 100%;
    margin: 0;
    line-height: normal;
}

.subscribe-input::placeholder {
    color: rgba(255, 255, 255, 0.85);
}

.btn-cta-white {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 2rem;
    height: 52px;
    font-weight: 700;
    font-size: 1.05rem;
    border-radius: 100px;
    background: #ffffff;
    color: #059669;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
    gap: 0.65rem;
}

.btn-cta-white:hover {
    transform: scale(1.03) translateY(-1px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    background: #fff;
}

.subscribe-message {
    margin-top: 15px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    min-height: 20px;
    text-align: left;
    position: absolute;
    bottom: -35px;
    left: 20px;
}

.subscribe-message.success {
    color: #d1fae5;
}

.subscribe-message.error {
    color: #fee2e2;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .footer-cta {
        flex-direction: column;
        text-align: center;
        padding: 4rem 3rem;
        gap: 2.5rem;
    }

    .cta-content {
        text-align: center;
        flex: none;
    }

    .cta-desc {
        margin: 0 auto;
    }

    .subscribe-form {
        max-width: 100%;
        width: 100%;
        flex: none;
    }

    .subscribe-message {
        position: static;
        text-align: center;
        margin-bottom: 0;
    }
}

@media (max-width: 600px) {
    .footer-cta {
        padding: 2rem 1.5rem;
    }

    .cta-title {
        font-size: 1.75rem;
    }

    .subscribe-form {
        margin-bottom: 0;
    }

    .subscribe-message {
        min-height: 0;
        margin: 0;
    }

    .subscribe-input-group {
        flex-direction: column;
        height: auto;
        border-radius: 20px;
        padding: 12px;
        gap: 12px;
        width: 100%;
    }

    .subscribe-input {
        padding: 12px !important;
        text-align: center;
        width: 100%;
        font-size: 1rem;
    }

    .btn-cta-white {
        width: 100%;
        border-radius: 12px;
    }
}


/* Flat Theme Colors */
.footer-cta.theme-green {
    background-color: #059669;
}

.footer-cta.theme-green .btn-cta-white {
    color: #059669;
}

.footer-cta.theme-blue {
    background-color: #2563eb;
}

.footer-cta.theme-blue .btn-cta-white {
    color: #2563eb;
}

.footer-cta.theme-purple {
    background-color: #7c3aed;
}

.footer-cta.theme-purple .btn-cta-white {
    color: #7c3aed;
}

.footer-cta.theme-orange {
    background-color: #ea580c;
}

.footer-cta.theme-orange .btn-cta-white {
    color: #ea580c;
}

.footer-cta.theme-red {
    background-color: #dc2626;
}

.footer-cta.theme-red .btn-cta-white {
    color: #dc2626;
}

.footer-cta.theme-dark {
    background-color: #1e293b;
}

.footer-cta.theme-dark .btn-cta-white {
    color: #1e293b;
}

/* Main Footer Layout */
.footer-main {
    position: relative;
    z-index: 1;
    padding-top: 75px;
}

.footer-bottom-unified {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.footer-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    width: 100%;
    padding-bottom: 2rem;
}

/* Contact Links Section */
.footer-contact-links {
    display: flex;
    align-items: flex-start;
    /* Üstten hizalamalı olması için center'ı değiştirdik */
    gap: 2rem;
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.contact-label {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1;
    color: #666;
    /* Muted label color */
}

.compact-link {
    display: flex;
    align-items: flex-start;
    /* Uzun metinlerde ikon üstte kalsın */
    gap: 0.5rem;
    font-size: 0.95rem;
    text-decoration: none;
    transition: color 0.2s;
    font-weight: 500;
    color: var(--footer-text);
    text-align: left;
}

.compact-link+.compact-link {
    margin-top: 5px;
    /* Çoklu linkler arası boşluk */
}

.compact-link i,
.compact-link svg {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    opacity: 0.8;
    margin-top: 2px;
    /* Metinle hizalama için */
}

/* Dividers */
.footer-contact-links .divider {
    width: 1px;
    height: 40px;
    /* Biraz daha uzatıldı */
    background-color: var(--footer-divider);
    display: block;
    align-self: flex-start;
    margin-top: 5px;
}

.footer-bottom-divider {
    width: 100%;
    height: 1px;
    background-color: var(--footer-divider);
    margin: 0;
    opacity: 1;
}

/* Social Icons & Language Selector Wrapper */
.footer-social-lang-wrapper {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.footer-social-minimal {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Language Selector */
.footer-lang-selector {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 0 0.5rem;
    border-radius: 50px;
    border: 1px solid var(--footer-divider);
    height: 40px;
    /* Match icon height */
}

.lang-flag {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    overflow: hidden;
    opacity: 0.35;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
}

.lang-flag.active {
    opacity: 1;
    border-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.05);
}

.lang-flag:hover {
    opacity: 0.8;
}

.lang-flag img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.social-icon {
    color: var(--footer-text);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--footer-divider);
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: #fff;
    color: #000;
    border-color: #fff;
    transform: translateY(-3px);
}

/* Footer Bottom Row */
.footer-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding-top: 2rem;
    font-size: 0.85rem;
    color: #bbbbbb;
}

.footer-links-row {
    display: flex;
    gap: 1.5rem;
}

.footer-link {
    color: #bbbbbb;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #fff;
}

/* Responsive Design */
/* Responsive Design - Modern Mobile Footer */
@media (max-width: 900px) {
    .footer-wrapper {
        padding-top: 20rem;
        margin-top: 6rem;
        padding-bottom: 2rem;
        text-align: center;
    }

    /* CTA - Desktoptaki gibi yukarı taşsın */
    .footer-cta-wrapper {
        top: -60px;
        padding: 0 1rem;
    }

    .footer-cta {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 2.5rem 1.5rem;
        gap: 1.5rem;
        border-radius: 8px;
    }

    .cta-title {
        font-size: 1.6rem;
        margin-bottom: 0.5rem;
    }

    .cta-desc {
        font-size: 0.95rem;
        opacity: 0.9;
    }

    .btn-cta {
        width: 100%;
        max-width: 280px;
        justify-content: center;
        padding: 0.9rem 1.5rem;
        font-size: 1rem;
    }

    /* Footer Main Content */
    .footer-main {
        padding-top: 0;
    }

    .footer-top-row {
        flex-direction: column;
        gap: 1rem;
        /* Reduced from 2rem */
        padding-bottom: 0;
        /* Removed padding */
    }

    /* Contact Links - Grid Layout for Mobile */
    .footer-contact-links {
        display: grid;
        grid-template-columns: 1fr;
        /* Stack visually but styled differently */
        width: 100%;
        gap: 1rem;
        background: rgba(255, 255, 255, 0.03);
        /* Subtle background container */
        padding: 1.5rem;
        border-radius: 8px;
        border: 1px solid rgba(255, 255, 255, 0.05);
        margin-bottom: 0;
        /* Ensure no bottom margin */
    }

    .footer-contact-links .divider {
        display: none;
    }

    .contact-item {
        width: 100%;
        flex-direction: row;
        /* Horizontal inside item */
        align-items: center;
        justify-content: flex-start;
        gap: 1rem;
        padding: 0.75rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .contact-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .contact-item:first-child {
        padding-top: 0;
    }

    .contact-list-container {
        width: 100%;
    }

    .contact-label {
        display: none;
        /* Hide labels for cleaner look */
    }

    /* Icons larger for touch targets */
    .compact-link {
        font-size: 0.95rem;
        width: 100%;
        justify-content: flex-start;
        text-align: left;
        /* Metin sola dayalı olsun */
        align-items: flex-start !important;
        /* Uzun metinlerde ikon üstte kalsın */
    }

    .compact-link+.compact-link {
        margin-top: 8px;
        /* İkinci tel/mail için üst boşluk */
    }

    .compact-link i,
    .compact-link svg {
        flex-shrink: 0;
        /* İkonun sıkışmasını önle */
        width: 32px;
        /* Fixed width for alignment */
        height: 32px;
        background: rgba(255, 255, 255, 0.1);
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
        margin-right: 12px;
        font-size: 14px;
        color: inherit;
        /* Icons same color as text */
        margin-top: -2px;
        /* Metinle daha iyi hizalama için çok az yukarı çek */
    }

    /* Social Media - Prominent & Centered */
    .footer-social-minimal {
        width: 100%;
        justify-content: center;
        /* Center icons */
        gap: 1.25rem;
        padding-top: 0;
        border-top: none;
        order: -1;
        /* Keep at top */
        margin-bottom: 0.5rem;
        /* Reduced from 1rem */
    }

    .social-icon {
        width: 48px;
        /* Larger touch targets */
        height: 48px;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        font-size: 1.2rem;
    }

    /* Footer Bottom - Cleanup */
    .footer-bottom-row {
        flex-direction: column;
        gap: 1.5rem;
        padding-top: 1rem;
        /* Reduced padding further */
        border-top: none;
        /* Removed border */
    }

    .footer-bottom-divider {
        display: none;
        /* Use border-top on row instead */
    }

    .footer-bottom-row p {
        font-size: 0.8rem;
        color: #666;
        order: 2;
        /* Copyright at very bottom */
    }

    .footer-links-row {
        justify-content: center;
        gap: 1.5rem;
        order: 1;
        /* Links above copyright */
    }

    .footer-link {
        font-size: 0.85rem !important;
        color: #aaa;
    }
}