/* ========================================
   Premium Apple-Style Footer
   Kusursuz E-ticaret Deneyimi
   v2.0 - Professional & Minimal
   ======================================== */

:root {
    --footer-black: #1d1d1f;
    --footer-dark: #0d0d0d;
    --footer-white: #ffffff;
    --footer-gray-100: #f5f5f7;
    --footer-gray-200: #e8e8ed;
    --footer-gray-300: #d2d2d7;
    --footer-gray-400: #86868b;
    --footer-gray-500: #6e6e73;
    --footer-blue: #0071e3;
    --footer-blue-hover: #0077ed;
    --footer-green: #34c759;
    --footer-transition: all 0.25s cubic-bezier(0.25, 0.1, 0.25, 1);
    --footer-font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, sans-serif;
}

/* ============================================
   Features Bar - Premium Design
   ============================================ */
.apple-features-bar {
    background: linear-gradient(180deg, #fafafa 0%, #f5f5f7 100%);
    padding: 56px 0;
    border-top: 1px solid var(--footer-gray-200);
}

.apple-features-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.apple-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.apple-feature-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 0 12px;
}

.apple-feature-icon {
    width: 56px;
    height: 56px;
    background: var(--footer-white);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: var(--footer-transition);
}

.apple-feature-icon svg {
    color: var(--footer-black);
}

.apple-feature-item:hover .apple-feature-icon {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.apple-feature-content h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--footer-black);
    margin: 0 0 4px 0;
    font-family: var(--footer-font);
    letter-spacing: -0.01em;
}

.apple-feature-content span {
    font-size: 13px;
    color: var(--footer-gray-400);
    font-family: var(--footer-font);
}

/* ============================================
   Newsletter Section - Inline Design
   ============================================ */
.apple-newsletter-section {
    background: linear-gradient(135deg, var(--footer-black) 0%, #2d2d2f 100%);
    padding: 64px 0;
    position: relative;
    overflow: hidden;
}

.apple-newsletter-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 113, 227, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.apple-newsletter-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

.apple-newsletter-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
}

.apple-newsletter-text h3 {
    font-size: 28px;
    font-weight: 600;
    color: var(--footer-white);
    margin: 0 0 8px 0;
    font-family: var(--footer-font);
    letter-spacing: -0.02em;
}

.apple-newsletter-text p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    font-family: var(--footer-font);
}

.apple-newsletter-form-inline {
    flex: 1;
    max-width: 420px;
}

.apple-newsletter-input-group {
    display: flex;
    gap: 12px;
    position: relative;
}

.apple-newsletter-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 16px 20px;
    font-size: 15px;
    color: var(--footer-white);
    font-family: var(--footer-font);
    transition: var(--footer-transition);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.apple-newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.apple-newsletter-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.apple-newsletter-submit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--footer-blue);
    color: var(--footer-white);
    border: none;
    border-radius: 12px;
    padding: 16px 28px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--footer-transition);
    font-family: var(--footer-font);
    white-space: nowrap;
}

.apple-newsletter-submit:hover {
    background: var(--footer-blue-hover);
    transform: scale(1.02);
}

.apple-newsletter-submit svg {
    transition: transform 0.2s ease;
}

.apple-newsletter-submit:hover svg {
    transform: translateX(3px);
}

.apple-newsletter-response {
    margin-top: 12px;
    font-size: 14px;
    color: var(--footer-green);
    font-family: var(--footer-font);
}

/* ============================================
   Main Footer
   ============================================ */
.apple-footer {
    background: var(--footer-black);
    color: var(--footer-white);
}

.apple-footer-main {
    padding: 64px 0;
}

.apple-footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.apple-footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(4, 1fr);
    gap: 48px;
}

/* Brand Column */
.apple-footer-brand {
    padding-right: 24px;
}

.apple-footer-logo {
    margin-bottom: 20px;
}

.apple-footer-logo img {
    max-width: 140px;
    height: auto;
    filter: brightness(0) invert(1);
    opacity: 0.95;
    transition: opacity 0.2s ease;
}

.apple-footer-logo a:hover img {
    opacity: 1;
}

.apple-footer-desc {
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 24px;
    font-family: var(--footer-font);
}

/* Trust Badges */
.apple-footer-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
}

.apple-badge-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    font-family: var(--footer-font);
    transition: var(--footer-transition);
}

.apple-badge-item svg {
    color: var(--footer-green);
}

.apple-badge-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

/* Social Links */
.apple-footer-social {
    display: flex;
    gap: 12px;
}

.apple-footer-social a {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    transition: var(--footer-transition);
    text-decoration: none;
}

.apple-footer-social a:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--footer-white);
    transform: translateY(-3px);
}

/* Footer Columns */
.apple-footer-column {
    padding: 0;
}

.apple-footer-title {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.45);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
    font-family: var(--footer-font);
}

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

.apple-footer-links li {
    margin-bottom: 14px;
}

.apple-footer-links a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--footer-transition);
    font-family: var(--footer-font);
    display: inline-block;
    position: relative;
}

.apple-footer-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--footer-white);
    transition: width 0.2s ease;
}

.apple-footer-links a:hover {
    color: var(--footer-white);
}

.apple-footer-links a:hover::after {
    width: 100%;
}

/* Contact Column */
.apple-footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.apple-footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 20px;
}

.apple-contact-icon {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.apple-contact-icon svg {
    color: rgba(255, 255, 255, 0.6);
}

.apple-contact-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.apple-contact-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: var(--footer-font);
}

.apple-contact-info a,
.apple-contact-info span {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-family: var(--footer-font);
    transition: color 0.2s ease;
    line-height: 1.5;
}

.apple-contact-info a:hover {
    color: var(--footer-white);
}

/* ============================================
   Footer Bottom
   ============================================ */
.apple-footer-bottom {
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.apple-footer-bottom-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    padding: 24px 0;
}

.apple-copyright p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.45);
    margin: 0;
    font-family: var(--footer-font);
}

.apple-footer-legal {
    display: flex;
    align-items: center;
    gap: 16px;
}

.apple-footer-legal a {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.2s ease;
    font-family: var(--footer-font);
}

.apple-footer-legal a:hover {
    color: rgba(255, 255, 255, 0.8);
}

.apple-legal-divider {
    color: rgba(255, 255, 255, 0.2);
    font-size: 12px;
}

/* Payment Methods */
.apple-payment-methods {
    display: flex;
    align-items: center;
    gap: 16px;
}

.apple-payment-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: var(--footer-font);
}

.apple-payment-icons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.apple-payment-icons img {
    height: 24px;
    opacity: 0.55;
    /* filter: brightness(0) invert(1); */
    transition: opacity 0.2s ease;
}

.apple-payment-icons img:hover {
    opacity: 0.9;
}

/* ============================================
   Cookies Warning
   ============================================ */
.apple-cookies-warning {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 48px);
    max-width: 680px;
    background: var(--footer-white);
    border-radius: 20px;
    padding: 24px;
    z-index: 9997;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(0, 0, 0, 0.05);
    animation: slideUpCookies 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
    display: flex;
    align-items: center;
    gap: 20px;
}

@keyframes slideUpCookies {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.apple-cookies-content {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    flex: 1;
}

.apple-cookies-icon {
    width: 44px;
    height: 44px;
    background: var(--footer-gray-100);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.apple-cookies-icon svg {
    color: var(--footer-black);
}

.apple-cookies-text {
    flex: 1;
}

.apple-cookies-text p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--footer-gray-500);
    margin: 0;
    font-family: var(--footer-font);
}

.apple-cookies-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.apple-btn-cookie-settings {
    background: var(--footer-gray-100);
    color: var(--footer-black);
    border: none;
    border-radius: 980px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--footer-transition);
    font-family: var(--footer-font);
}

.apple-btn-cookie-settings:hover {
    background: var(--footer-gray-200);
}

.apple-btn-cookie-accept {
    background: var(--footer-blue);
    color: var(--footer-white);
    border: none;
    border-radius: 980px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--footer-transition);
    font-family: var(--footer-font);
}

.apple-btn-cookie-accept:hover {
    background: var(--footer-blue-hover);
}

.apple-cookies-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: transparent;
    border: none;
    color: var(--footer-gray-400);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--footer-transition);
}

.apple-cookies-close:hover {
    background: var(--footer-gray-100);
    color: var(--footer-black);
}

/* ============================================
   Scroll to Top
   ============================================ */
.apple-scrollup {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 50px;
    height: 50px;
    background: var(--footer-black);
    color: var(--footer-white);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--footer-transition);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    z-index: 999;
    text-decoration: none;
}

.apple-scrollup.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.apple-scrollup:hover {
    background: #000;
    color: var(--footer-white);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    text-decoration: none;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1200px) {
    .apple-footer-grid {
        grid-template-columns: 1.3fr repeat(4, 1fr);
        gap: 36px;
    }
}

@media (max-width: 1024px) {
    .apple-features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
    
    .apple-newsletter-content {
        flex-direction: column;
        text-align: center;
        gap: 32px;
    }
    
    .apple-newsletter-text {
        max-width: 400px;
    }
    
    .apple-newsletter-form-inline {
        width: 100%;
        max-width: 480px;
    }
    
    .apple-footer-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 40px;
    }
    
    .apple-footer-brand {
        grid-column: span 3;
        max-width: 500px;
        padding-right: 0;
        margin-bottom: 16px;
    }
    
    .apple-footer-badges {
        justify-content: flex-start;
    }
    
    .apple-footer-contact-col {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .apple-features-bar {
        padding: 40px 0;
    }
    
    .apple-features-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .apple-feature-item {
        padding: 0;
    }
    
    .apple-newsletter-section {
        padding: 48px 0;
    }
    
    .apple-newsletter-text h3 {
        font-size: 24px;
    }
    
    .apple-newsletter-input-group {
        flex-direction: column;
    }
    
    .apple-newsletter-submit {
        justify-content: center;
    }
    
    .apple-footer-main {
        padding: 48px 0;
    }
    
    .apple-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
    
    .apple-footer-brand {
        grid-column: span 2;
        text-align: center;
    }
    
    .apple-footer-logo {
        display: flex;
        justify-content: center;
    }
    
    .apple-footer-desc {
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .apple-footer-badges {
        justify-content: center;
    }
    
    .apple-footer-social {
        justify-content: center;
    }
    
    .apple-footer-column {
        text-align: center;
    }
    
    .apple-footer-contact li {
        justify-content: center;
    }
    
    .apple-contact-info {
        text-align: left;
    }
    
    .apple-footer-contact-col {
        grid-column: span 2;
    }
    
    .apple-footer-bottom-grid {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .apple-footer-legal {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .apple-payment-methods {
        flex-direction: column;
        gap: 12px;
    }
    
    .apple-cookies-warning {
        flex-direction: column;
        padding: 20px;
        gap: 16px;
        bottom: 16px;
        width: calc(100% - 32px);
    }
    
    .apple-cookies-content {
        text-align: center;
        flex-direction: column;
        align-items: center;
    }
    
    .apple-cookies-actions {
        width: 100%;
        justify-content: center;
    }
    
    .apple-scrollup {
        bottom: 20px;
        right: 20px;
        width: 46px;
        height: 46px;
    }
}

@media (max-width: 480px) {
    .apple-footer-container {
        padding: 0 16px;
    }
    
    .apple-footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    
    .apple-footer-brand {
        grid-column: span 1;
    }
    
    .apple-footer-contact-col {
        grid-column: span 1;
    }
    
    .apple-footer-title {
        font-size: 11px;
    }
    
    .apple-badge-item {
        font-size: 11px;
        padding: 6px 10px;
    }
    
    .apple-footer-bottom-grid {
        padding: 20px 0;
    }
    
    .apple-cookies-warning {
        left: 12px;
        right: 12px;
        width: auto;
        transform: none;
    }
    
    @keyframes slideUpCookies {
        from {
            opacity: 0;
            transform: translateY(30px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .apple-scrollup,
    .apple-cookies-warning,
    .apple-footer-social a,
    .apple-footer-links a,
    .apple-newsletter-submit,
    .apple-feature-icon {
        transition: none;
    }
    
    @keyframes slideUpCookies {
        from, to {
            opacity: 1;
            transform: translateX(-50%) translateY(0);
        }
    }
}

/* Hide old footer styles */
#footer,
.features-bar,
.modal-newsletter,
#modal_newsletter {
    display: none !important;
}
