/* ==========================================================================
   INDEX PAGE — Sayfa Özel Stiller
   Kapsam: Sadece index.html'e ait bileşenler
   ========================================================================== */

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
    height: 75vh; position: relative; display: flex; flex-direction: column;
    justify-content: flex-end; align-items: center; text-align: center;
    padding-bottom: 50px; background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), url('/assets/images/banners/hero-background.png') center/cover;
}
.hero-bg-overlay {
    position: absolute; inset: 0; z-index: 1; pointer-events: none;
}
.hero-signature-container { position: absolute; top: 45%; left: 50%; transform: translate(-50%, -50%); width: 85%; max-width: 1100px; z-index: 2; pointer-events: none; }
.hero-signature-svg { width: 50%; height: auto; margin-bottom: 90px; }
.hero-content { position: relative; z-index: 3; max-width: 800px; width: 100%; margin-bottom: 20px; }
.hero-subtitle { font-weight: 600; font-size: 24px; margin-bottom: 18px; }

/* ==========================================================================
   LEAD MAGNET BANNER
   ========================================================================== */
.lead-magnet-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 99997;
    background: linear-gradient(90deg, #1a1008 0%, #2c1a08 50%, #1a1008 100%);
    border-bottom: 1px solid rgba(212, 163, 115, 0.3);
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
    animation: slideDownBanner 0.4s cubic-bezier(0.4, 0, 0.2, 1) both;
}
@keyframes slideDownBanner {
    from { transform: translateY(-100%); opacity: 0; }
    to   { transform: translateY(0);     opacity: 1; }
}
.lead-magnet-banner__content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}
.lead-magnet-banner__icon {
    font-size: 1.4rem;
    flex-shrink: 0;
}
.lead-magnet-banner__text {
    font-size: 0.88rem;
    color: var(--text-gray);
    line-height: 1.5;
    margin: 0;
}
.lead-magnet-banner__text strong {
    color: var(--accent);
    font-weight: 700;
}
.lead-magnet-banner__link {
    display: inline-block;
    color: var(--accent);
    margin-left: 10px;
    border: 1px solid;
    border-color: var(--accent);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 1px;
    padding: 2px 14px;
    border-radius: 4px;
    transition: background 0.2s, transform 0.2s;
    white-space: nowrap;
}
.lead-magnet-banner__link:hover {
    background: var(--accent);
    transform: translateY(-1px);
    color: var(--black);
}
.lead-magnet-banner__close {
    background: transparent;
    border: none;
    color: var(--text-gray);
    font-size: 1rem;
    cursor: pointer;
    padding: 4px 8px;
    flex-shrink: 0;
    transition: color 0.2s;
    line-height: 1;
}
.lead-magnet-banner__close:hover { color: var(--text-white); }

/* ==========================================================================
   TESTIMONIALS SECTION
   ========================================================================== */
.testimonials-section {
    padding: 60px 0;
}
.testimonial-slider-container {
    position: relative; overflow: hidden; width: 100%; padding: 0px 0;
}
.testimonial-track {
    display: flex; gap: 20px; transition: transform 0.5s ease-in-out;
}
.testimonial-card {
    flex: 0 0 calc(28.5% - 20px);
    background: rgba(255, 255, 255, 0.03);
    padding: 15px;
    border-radius: 15px;
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.t-card {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 10px;
    text-align: left;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.t-card .stars {
    color: var(--accent);
    font-size: 1.1rem;
    letter-spacing: 3px;
    margin-bottom: 12px;
}
.t-card h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--text-white);
}
.t-card p {
    font-size: 0.85rem;
    color: var(--text-gray);
    font-style: italic;
    line-height: 1.6;
}
.slider-arrow {
    position: absolute; top: 50%; right: 10px; transform: translateY(-50%);
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--accent); color: var(--black); border: none;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; z-index: 10; transition: 0.3s;
    font-size: 1.2rem;
}
.slider-arrow:hover { background: #fff; transform: translateY(-50%) scale(1.1); }

/* ==========================================================================
   MOBİL — Ana Sayfa Özel Kırılımlar (max-width: 768px)
   ========================================================================== */
@media (max-width: 768px) {
    /* Hero */
    .hero {
        height: 60svh;
        background-position: center top;
    }
    .hero-content .btn-primary {
        background: var(--black);
        color: var(--text-white);
        -webkit-appearance: none;
        appearance: none;
    }
    .hero-signature-container {
        top: 40%;
        width: 75%;
    }
    .hero-signature-svg {
        width: 85%;
    }
    .hero-subtitle {
        font-size: 16px;
        margin-bottom: 20px;
    }

    /* Lead Magnet Banner */
    .lead-magnet-banner {
        padding: 6px 12px;
        gap: 5px;
    }
    .lead-magnet-banner__text {
        font-size: 0.6rem;
    }
    .lead-magnet-banner__link {
        margin-left: 6px;
        padding: 2px 12px;
        font-size: 0.60rem;
    }
    .container {
        max-width: 90%;
        margin: 0 auto;
        padding: 0;
    }

    /* Testimonial — Native Swipe Slider */
    .slider-arrow { display: none !important; }
    .testimonial-track {
        display: flex !important;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 15px;
        padding-bottom: 15px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .testimonial-track::-webkit-scrollbar { display: none; }
    .testimonial-card {
        flex: 0 0 80% !important;
        scroll-snap-align: center;
    }

    /* Sticky header overlap fallback (scroll-padding-top desteklenmediğinde) */
    #koleksiyonlar {
        scroll-margin-top: 120px;
    }

    /* Koleksiyonlar — 2-Kolon Grid */
    #koleksiyonlar .grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px;
        padding: 0;
    }
    #koleksiyonlar .card {
        margin-bottom: 0;
        width: 100%;
        box-sizing: border-box;
    }
    #koleksiyonlar .card h3 {
        font-size: 0.85rem;
        padding: 8px 5px;
    }

    /* Bölümler Arası Dikey Boşluk Optimizasyonu */
    .testimonials-section {
        padding-top: 20px;
        margin-top: 10px;
    }
    /* En Sevilenler — 2.5 Kart Görünen Yatay Carousel */
    section:has(#productGrid) {
        overflow-x: hidden;
        padding-left: 0;
        padding-right: 0;
    }
    #productGrid {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory;
        gap: 12px !important;
        padding: 0 0 15px 15px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        width: 100%;
        box-sizing: border-box;
    }
    #productGrid::-webkit-scrollbar {
        display: none;
    }
    /* 36vw → (100vw - 15px sol padding - 2×12px gap) / 2.5 ≈ 2.5 kart görünür */
    #productGrid .card {
        flex: 0 0 36vw !important;
        width: 36vw !important;
        max-width: 36vw !important;
        min-width: 0;
        padding: 10px;
        scroll-snap-align: start;
        box-sizing: border-box;
    }
}
