/**
 * ROY KAPAK - Footer CSS
 * Yeni Tasarım Dili - Brief'e Göre
 */

/* Footer Ana Container */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: 80px 0 40px;
    position: relative;
    overflow: hidden;
    width: 100%;
    clear: both;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
}

.footer-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

/* Footer Üst Kısım */
.footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
}

/* Footer Logo ve Açıklama */
.footer-brand {
    max-width: 300px;
    width: 100%;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.footer-logo img {
    height: 50px;
    width: auto;
    filter: brightness(0) invert(1); /* Logo'yu beyaz yapar */
    transition: var(--transition);
}

.footer-logo:hover img {
    filter: brightness(0) invert(1) sepia(1) saturate(8) hue-rotate(25deg); /* Hover'da belirgin turuncu */
}

.footer-logo-text {
    font-family: var(--font-secondary);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    margin-left: 12px;
}

.footer-description {
    font-family: var(--font-primary);
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: 50%;
    transition: var(--transition);
    text-decoration: none;
}

.social-link:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.social-link:hover i {
    color: #3F3F3E; /* Hover'da ikon rengi koyu gri */
}

.social-link i {
    font-size: 1.1rem;
}

/* Footer Menüler */
.footer-section {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.footer-section-title {
    font-family: var(--font-secondary);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 1.5rem;
    position: relative;
}

.footer-section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary-color);
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-link-item {
    margin-bottom: 0.75rem;
}

.footer-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-family: var(--font-primary);
    font-size: 0.9rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-link:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.footer-link i {
    font-size: 0.8rem;
    color: var(--primary-color);
}

/* Footer İletişim */
.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Ödeme yöntemleri için özel container */
.footer-section:last-child .payment-methods {
    width: 100%;
    min-width: 200px;
}

.footer-contact-icon {
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.footer-contact-icon i {
    font-size: 0.8rem;
    color: var(--white);
}

.footer-contact-text {
    font-family: var(--font-primary);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Footer Alt Kısım */
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
    gap: 1rem;
    width: 100%;
}

.footer-copyright {
    font-family: var(--font-primary);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-bottom-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-family: var(--font-primary);
    font-size: 0.85rem;
    transition: var(--transition);
}

.footer-bottom-link:hover {
    color: var(--primary-color);
}

/* Ödeme Yöntemleri */
.payment-methods {
    margin-top: 1.5rem;
}

.payment-methods-title {
    font-family: var(--font-primary);
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.payment-methods-grid {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;
    flex-wrap: wrap;
    width: 100%;
    min-width: 200px;
}

.payment-method {
    width: 50px;
    height: 35px;
    background: var(--white);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    padding: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
    min-width: 50px;
}

.payment-method:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.payment-method img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 4px;
}

/* WhatsApp Sabit Butonu */
.whatsapp-fixed {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    z-index: 9996;
}

.whatsapp-fixed:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-xl);
}

.whatsapp-fixed i {
    font-size: 1.5rem;
}

/* Scroll to Top Butonu */
.scroll-to-top {
    position: fixed;
    bottom: 100px;
    right: 35px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    z-index: 9996;
    opacity: 0;
    visibility: hidden;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.scroll-to-top i {
    font-size: 1.2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .footer {
        padding: 60px 0 30px;
    }
    
    .footer-top {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 2rem;
        padding-bottom: 2rem;
        width: 100%;
    }
    
    .footer-section:last-child {
        min-width: 100%;
    }
    
    .footer-logo img {
        height: 45px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        width: 100%;
    }
    
    .footer-bottom-links {
        justify-content: center;
    }
    
    .payment-methods {
        text-align: center;
    }
    
    .payment-methods-grid {
        justify-content: center;
        gap: 1rem;
        flex-direction: row;
        width: 100%;
        min-width: 100%;
    }
    
    .whatsapp-fixed {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
    
    .scroll-to-top {
        width: 45px;
        height: 45px;
        bottom: 80px;
        right: 25px;
    }
}

@media (max-width: 480px) {
    .footer-container {
        padding: 0 15px;
    }
    
    .footer-top {
        gap: 1.5rem;
        width: 100%;
    }
    
    .footer-section-title {
        font-size: 1.1rem;
    }
    
    .footer-bottom-links {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .payment-methods-grid {
        justify-content: center;
        gap: 0.5rem;
        flex-direction: row;
    }
    
    .payment-method {
        width: 45px;
        height: 32px;
    }
    
    .footer-logo img {
        height: 40px;
    }
}

/* Animasyonlar */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.footer-section {
    animation: fadeInUp 0.6s ease forwards;
}

.footer-section:nth-child(2) { animation-delay: 0.1s; }
.footer-section:nth-child(3) { animation-delay: 0.2s; }
.footer-section:nth-child(4) { animation-delay: 0.3s; }

/* Hover Efektleri */
.footer-link,
.footer-bottom-link {
    position: relative;
}

.footer-link::before,
.footer-bottom-link::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary-color);
    transition: var(--transition);
}

.footer-link:hover::before,
.footer-bottom-link:hover::before {
    width: 100%;
}
