/* index.html - Home Page Styles */

/* Premium Background */
body {
    background-image: url('../../assets/backgrounds/premium-bg.webp');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: scroll;
}

/* Hero Section */
.hero {
    display: grid;
    gap: 24px;
    margin-bottom: 40px;
}

@media(min-width: 768px) {
    .hero {
        grid-template-columns: 2fr 1fr;
    }
}

/* Slider */
.slider {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
}

.slide {
    display: none;
}

.slide.active {
    display: block;
}

.slide img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.sliderControls {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 12px;
}

.dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--accent);
    transform: scale(1.2);
}

/* Small Card / Welcome */
.smallCard {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}

.kicker {
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.smallCard h1 {
    font-size: 1.8rem;
    margin-bottom: 12px;
}

.ctaRow {
    margin: 16px 0;
}

.trustRow {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.85rem;
    color: var(--muted);
}

.sep {
    border: none;
    border-top: 1px solid var(--border);
    margin: 20px 0;
}

/* Home Extended Sections */
.home-hero,
.delivery-zone,
.map-zone,
.contact-zone,
.qr-zone,
.about-zone,
.faq-zone,
.security-zone,
.seo-zone {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px;
    margin: 30px 0;
    text-align: center;
}

.hero-sub {
    font-size: 1.1rem;
    color: var(--muted);
    margin-bottom: 20px;
}

.hero-features,
.delivery-features,
.about-features {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin: 20px 0;
    font-size: 0.95rem;
}

.neighborhoods {
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.6;
    margin-top: 16px;
}

/* Map */
.map-frame iframe {
    width: 100%;
    height: 300px;
    border: none;
    border-radius: var(--radius);
}

/* Contact Links */
.contact-links {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 16px;
}

.contact-links a {
    padding: 10px 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.2s;
}

.contact-links a:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

/* QR - REMOVED, kept for backward compat */
.qr-zone {
    display: none;
}

/* =====================================================
   🔥 EN ÇOK SATANLAR (BESTSELLERS) SECTION
===================================================== */
.bestsellers-zone {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 24px;
    margin: 30px 0;
    position: relative;
    overflow: hidden;
}

/* Section üst dekoratif çizgi */
.bestsellers-zone::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #e11d48, #FF4500);
    border-radius: 0 0 4px 4px;
}

.bestsellers-header {
    text-align: center;
    margin-bottom: 28px;
}

.bestsellers-header h2 {
    font-size: 1.7rem;
    font-weight: 800;
    margin: 0 0 10px;
    background: linear-gradient(135deg, #e11d48 0%, #f97316 50%, #e11d48 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% center;
    }

    50% {
        background-position: 100% center;
    }

    100% {
        background-position: 0% center;
    }
}

.bestsellers-subtitle {
    color: var(--muted);
    font-size: 0.92rem;
    margin: 0;
    transition: all 0.3s ease;
}

/* ==================
   SKELETON LOADING
================== */
.skeleton-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.5);
}

.skeleton-img {
    width: 100%;
    height: 180px;
    background: rgba(0, 0, 0, 0.06);
}

.skeleton-body {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.skeleton-line {
    height: 14px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.06);
}

.skeleton-line.short {
    height: 12px;
}

@keyframes skeletonPulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }

    100% {
        opacity: 1;
    }
}

.skeleton-pulse {
    animation: skeletonPulse 1.5s ease-in-out infinite;
}

/* ==================
   TABS
================== */
.bestsellers-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 0 16px;
    margin-bottom: 20px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-behavior: smooth;
}

.bestsellers-tabs::-webkit-scrollbar {
    display: none;
}

.bs-tab {
    flex-shrink: 0;
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.6);
    color: var(--text);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.bs-tab:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(225, 29, 72, 0.06);
    transform: translateY(-1px);
}

.bs-tab.active {
    background: linear-gradient(135deg, #e11d48 0%, #FF4500 100%);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 3px 12px rgba(225, 29, 72, 0.35);
    transform: translateY(-1px);
}

.bs-tab-count {
    font-size: 0.7rem;
    padding: 1px 6px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.08);
    font-weight: 700;
    min-width: 18px;
    text-align: center;
}

.bs-tab.active .bs-tab-count {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

/* ==================
   ÜRÜN GRID
================== */
.bestsellers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    min-height: 200px;
    transition: opacity 0.35s ease, transform 0.35s ease;
}

/* Empty State */
.bestsellers-empty {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px 20px;
    gap: 12px;
    color: var(--muted);
    text-align: center;
}

.bestsellers-empty .empty-icon {
    font-size: 3rem;
    margin-bottom: 8px;
}

.bestsellers-empty p {
    margin: 0;
    font-size: 1rem;
}

/* Loading Spinner (fallback) */
.bestsellers-loading {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    gap: 12px;
    color: var(--muted);
    font-size: 0.9rem;
}

.bestsellers-loading .spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ==================
   CTA BUTTON
================== */
.bestsellers-cta {
    text-align: center;
    margin-top: 32px;
}

.bestsellers-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 36px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 12px;
    background: linear-gradient(135deg, #e11d48 0%, #FF4500 100%);
    color: #fff;
    border: none;
    text-decoration: none;
    box-shadow: 0 4px 18px rgba(225, 29, 72, 0.35);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.bestsellers-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
}

.bestsellers-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(225, 29, 72, 0.45);
}

.bestsellers-btn:hover::after {
    width: 300px;
    height: 300px;
}

.bestsellers-btn:active {
    transform: translateY(-1px);
}

/* ==================
   RESPONSIVE
================== */
@media (max-width: 520px) {
    .bestsellers-zone {
        padding: 20px 12px;
        margin: 20px 0;
    }

    .bestsellers-header h2 {
        font-size: 1.3rem;
    }

    .bestsellers-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .skeleton-img {
        height: 140px;
    }

    .bs-tab {
        padding: 6px 12px;
        font-size: 0.75rem;
    }

    .bs-tab-count {
        font-size: 0.65rem;
    }

    .bestsellers-btn {
        padding: 12px 28px;
        font-size: 0.9rem;
        width: 100%;
        justify-content: center;
    }
}

@media (min-width: 521px) and (max-width: 768px) {
    .bestsellers-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 769px) {
    .bestsellers-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* FAQ */
details {
    text-align: left;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 18px;
    margin-bottom: 12px;
}

summary {
    cursor: pointer;
    font-weight: 600;
}

details p {
    margin-top: 12px;
    color: var(--muted);
}

/* Security Badge */
.security-zone {
    font-size: 0.9rem;
    color: var(--muted);
}

/* =====================================================
   HERO BRAND BOX - Glitter arka plan + metalik yazı
===================================================== */
.hero-brand-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-image: url('../../assets/backgrounds/glitter-bg.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 50px 24px;
    text-align: center;
    min-height: 160px;
    /* 260px * 0.60 = 160px (%40 küçük) */
}

/* Premium Gümüş Metalik Yazı - PC Default Size */
.hero-brand-title {
    font-size: 42px;
    font-weight: 800;
    letter-spacing: 4px;
    background: linear-gradient(180deg, #ffffff 0%, #e0e0e0 30%, #b0b0b0 50%, #e8e8e8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-top: 24px;
    margin-bottom: 6px;
    position: relative;
}

/* Güçlendirilmiş Işıltılı Glow efekti - blur removed for mobile screenshot fix */
.hero-brand-title::after {
    content: 'GİZLİ KUTU';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    font-size: 42px;
    font-weight: 800;
    letter-spacing: 4px;
    color: rgba(255, 255, 255, 0.35);
    /* filter: blur(10px); - removed for mobile screenshot fix */
    z-index: -1;
}

.hero-brand-subtitle {
    font-size: 32px;
    font-weight: 600;
    letter-spacing: 7px;
    background: linear-gradient(180deg, #ffffff 0%, #d0d0d0 40%, #e0e0e0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.hero-brand-subtitle::after {
    content: 'ONLİNE';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    font-size: 32px;
    font-weight: 600;
    letter-spacing: 7px;
    color: rgba(255, 255, 255, 0.3);
    /* filter: blur(9px); - removed for mobile screenshot fix */
    z-index: -1;
}

/* =====================================================
   MOBİL ANASAYFA
===================================================== */
@media (max-width: 520px) {

    /* Hero tek kolon */
    .hero {
        grid-template-columns: 1fr !important;
    }

    /* Mobilde hero-brand-box - %6 büyütülmüş */
    .hero-brand-box {
        padding: 28px 16px;
        min-height: 235px;
        /* ✅ Kutu artık kırpılmaz */
        max-height: 235px;
        /* ✅ Mobilde şişme olmaz */
        overflow: visible;
        /* ✅ Üst taşma kesilmez */
        border-bottom: none;
        border-radius: var(--radius) var(--radius) 0 0;
        margin-bottom: -1px;
    }

    /* Mobil yazı boyutları - DEĞİŞTİRİLMEDİ */
    .hero-brand-title {
        font-size: 23px;
        letter-spacing: 2px;
    }

    .hero-brand-title::after {
        font-size: 23px;
        letter-spacing: 2px;
    }

    .hero-brand-subtitle {
        font-size: 17px;
        letter-spacing: 3px;
    }

    .hero-brand-subtitle::after {
        font-size: 17px;
        letter-spacing: 3px;
    }

    /* smallCard mobilde */
    .smallCard {
        padding: 20px 16px;
        border-radius: 0 0 var(--radius) var(--radius);
    }

    .smallCard h1 {
        font-size: 1.4rem;
    }
}

/* <-- @media (max-width: 520px) KAPANIŞI */


/* =====================================================
   💬 CANLI DESTEK - BAŞLIK VE İKONLAR BEYAZ
===================================================== */
.live-support .live-header span,
.live-support .live-header button,
#minimizeSupport,
#closeSupport {
    color: #ffffff !important;
}

/* SEO Content Styles */
.seo-zone {
    text-align: left;
}

.seo-zone h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--text);
    text-align: center;
}

.seo-zone h3 {
    color: var(--text);
    font-size: 1.1rem;
    margin: 24px 0 12px;
}

.seo-zone p {
    margin-bottom: 16px;
    font-size: 0.95rem;
    color: var(--muted);
}

.city-faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin: 28px 0;
}

.city-faq-item {
    background: rgba(255, 255, 255, 0.5);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.city-faq-item h4 {
    font-size: 1.05rem;
    margin-bottom: 10px;
    color: var(--text);
    font-weight: 600;
}

.city-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
    margin-top: 10px;
}

.city-contact-list li {
    margin-bottom: 12px;
    color: var(--muted);
}

.city-contact-list a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.city-contact-list a:hover {
    text-decoration: underline;
}

/* Glowing Text Animation */
/* Glowing Text Animation */
.glowing-red-pink {
    color: #374151 !important;
    /* Dark Gray */
    font-weight: 800;
    display: block;
    margin-top: 15px;
    width: 100%;
    font-size: 0.95rem;
    font-style: italic;
    background: rgba(0, 0, 0, 0.05);
    /* Subtle dark bg */
    padding: 8px;
    border-radius: 8px;
    border: 1px dashed rgba(0, 0, 0, 0.2);
    animation: grayPulse 2s ease-in-out infinite;
}

@keyframes grayPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.9;
    }

    50% {
        transform: scale(1.02);
        opacity: 1;
    }
}