/* assets/css/homepage.css - High-Tech Minimalism, Premium Tech Luxury */

/*====================================================================
  1. BASE & TYPOGRAPHY - BÜYÜK BOŞLUKLAR (Whitespace)
=====================================================================*/
.homepage-main {
    background-color: var(--bg-color, #ffffff);
    color: var(--text-color, #111827);
    overflow-x: hidden;
    padding-top: 88px;
    /* header (72px) + boşluk */
    padding-bottom: 120px;
    width: 100%;
    min-height: 100vh;
}

body.dark-theme .homepage-main {
    --bg-color: #181818;
    /* Gerçek derin siyah */
    --text-color: #ffffff;
}

body {
    /* Daha büyük, keskin ve modern ajans tipografisi */
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    letter-spacing: -0.02em;
}

/* Sayfa ortalama & max-genişlik (Premium Tech estetiği çok genişler arası büyük boşluk sever) */
.premium-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 40px;
    box-sizing: border-box;
}

@media (min-width: 1025px) {
    .premium-container {
        margin-left: 260px;
        /* Sidebar'ı dışarıda bırakmak için */
        width: calc(100% - 260px);
        max-width: none;
    }

    body.sidebar-collapsed .premium-container {
        margin-left: 64px;
        width: calc(100% - 64px);
    }
}

/*====================================================================
  2. HERO SECTION - MİNİMALİST VE BÜYÜK (Tech-Luxury)
=====================================================================*/
.hero-section {
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px 0;
    margin-bottom: 80px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

body.dark-theme .hero-section {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.hero-content {
    max-width: 900px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border-radius: 100px;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 32px;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

body.dark-theme .hero-badge {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.hero-title {
    font-size: clamp(48px, 6vw, 76px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 32px;
    color: #000;
}

body.dark-theme .hero-title {
    color: #fff;
}

.hero-title span {
    color: transparent;
    -webkit-text-stroke: 1px #000;
}

body.dark-theme .hero-title span {
    -webkit-text-stroke: 1px #fff;
}

.hero-subtitle {
    font-size: clamp(18px, 2vw, 24px);
    font-weight: 400;
    color: #6b7280;
    max-width: 600px;
    line-height: 1.6;
    margin-bottom: 48px;
}

body.dark-theme .hero-subtitle {
    color: #9ca3af;
}

/* Minimalist Arama (Search Input) */
.hero-search {
    position: relative;
    max-width: 600px;
}

.hero-search input {
    width: 100%;
    padding: 24px 32px;
    padding-right: 80px;
    font-size: 18px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 100px;
    color: #111827;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    outline: none;
}

.hero-search input::placeholder {
    color: #9ca3af;
}

body.dark-theme .hero-search input {
    background: #111;
    border-color: #333;
    color: #fff;
}

.hero-search input:focus {
    background: #fff;
    border-color: #10b981;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

body.dark-theme .hero-search input:focus {
    background: #000;
    border-color: #10b981;
    box-shadow: 0 10px 40px rgba(16, 185, 129, 0.1);
}

.hero-search .search-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #000;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

body.dark-theme .hero-search .search-btn {
    background: #fff;
    color: #000;
}

.hero-search .search-btn:hover {
    background: #10b981;
    color: #fff;
    transform: translateY(-50%) scale(1.05);
}

/*====================================================================
  3. KATEGORİ ETİKETLERİ (SCROLL BASED, FLOAT)
=====================================================================*/
.category-scroller {
    width: 100%;
    overflow-x: hidden;
    padding: 24px 0;
    margin-bottom: 80px;
    display: flex;
    gap: 16px;
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

/* Sonsuz akan / yanyana temiz kategori butonları */
.cat-pill-modern {
    flex-shrink: 0;
    padding: 16px 32px;
    background: transparent;
    border: 1px solid #e5e7eb;
    border-radius: 100px;
    color: #374151;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

body.dark-theme .cat-pill-modern {
    border-color: #333;
    color: #9ca3af;
}

.cat-pill-modern:hover,
.cat-pill-modern.active {
    background: #000;
    color: #fff;
    border-color: #000;
    transform: translateY(-2px);
}

body.dark-theme .cat-pill-modern:hover,
body.dark-theme .cat-pill-modern.active {
    background: #fff;
    color: #000;
    border-color: #fff;
}


/*====================================================================
  4. SECTION BAŞLIKLARI (Ajans Estetiği)
=====================================================================*/
.grid-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 48px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 24px;
}

body.dark-theme .grid-section-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.grid-section-title {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #000;
    margin: 0;
}

body.dark-theme .grid-section-title {
    color: #fff;
}

.view-all-link {
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: color 0.3s;
}

body.dark-theme .view-all-link {
    color: #9ca3af;
}

.view-all-link:hover {
    color: #10b981;
}


/*====================================================================
  5. STANDART ÜRÜN GRID (Ürünler CSS - Reset padding/margins for premium layout)
=====================================================================*/
/* Zaten products-card.css var, biz sadece Dış Konteyneri düzeltelim */

#productsGrid {
    padding: 0 !important;
    margin: 0 !important;
    /* her türlü dışarıdan gelen margin sıfırla */
    width: 100% !important;
}

/* product-card.css'teki yanlış mobil margin override */
@media (max-width: 640px) {
    #productsGrid {
        margin-top: 0 !important;
    }
}


/*====================================================================
  MOBİL DÜZENLEMELER 
=====================================================================*/
@media (max-width: 1024px) {
    .premium-container {
        padding: 0 24px;
    }

    .hero-section {
        padding: 60px 0;
        margin-bottom: 60px;
    }

    .hero-title {
        font-size: 40px;
    }

    .hero-subtitle {
        font-size: 16px;
    }
}

@media (max-width: 640px) {
    .homepage-main {
        padding-top: 60px;
    }

    .premium-container {
        padding: 0 16px;
    }

    .hero-section {
        min-height: auto;
    }

    .hero-search input {
        padding: 18px 24px;
        padding-right: 60px;
        font-size: 16px;
    }

    .hero-search .search-btn {
        width: 40px;
        height: 40px;
    }

    .grid-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        margin-bottom: 32px;
    }

    .grid-section-title {
        font-size: 24px;
    }
}

/* Scroll Fade-In Animasyon Sınıfları (Framer Tarzı) */
.fade-up-enter {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up-enter-active {
    opacity: 1;
    transform: translateY(0);
}