/* ========================================
   site.css - Son Hali (Final - Tüm Düzeltmeler)
   ======================================== */

/* 1. Tema Değişkenleri */
:root {
    --bg-color: #f8f9fa;
    /* Kırık beyaz premium zemin */
    --text-color: #212529;
    --header-bg: #ffffff;
    --card-bg: #ffffff;
    --border-color: #dee2e6;
    --subtitle-color: #6c757d;
    --trendyol-color: #f27a1a;
    --hepsiburada-color: #ff6000;
    --n11-color: #5F35B1;
    /* N11 Yeni Mor Logo Rengi */
    --hover-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    /* Premium gölge */
}

[data-theme="dark"] {
    --bg-color: #121212;
    --text-color: #e9ecef;
    --header-bg: #1e1e1e;
    --card-bg: #2a2a2a;
    --border-color: #495057;
    --subtitle-color: #adb5bd;
    --hover-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

/* 2. Genel Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 3. Body */
body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: background-color 0.3s, color 0.3s;
    overflow-x: hidden;
}

/* 4. Header */
.header {
    background-color: var(--header-bg);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    width: 100%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

#theme-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color);
    position: absolute;
    right: 1rem;
    padding: 0.5rem;
    transition: transform 0.3s;
}

#theme-toggle:hover {
    transform: rotate(15deg);
}

/* 5. Logo */
.logo {
    height: 45px;
    width: auto;
}

/* 6. Main Content */
.main-content-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 2rem 1rem;
}

/* 7. Footer */
.footer {
    background-color: #212529;
    color: #ffffff;
    padding: 1.5rem 0;
    width: 100%;
    margin-top: auto;
}

.footer-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.platform-links a {
    color: #ffffff;
    text-decoration: none;
    margin: 0 10px;
    font-weight: 600;
    transition: color 0.2s, transform 0.2s;
    display: inline-block;
}

.platform-links a:hover {
    transform: translateY(-2px);
}

.platform-links .trendyol-link:hover {
    color: var(--trendyol-color);
}

.platform-links .hepsiburada-link:hover {
    color: var(--hepsiburada-color);
}

.platform-links .n11-link:hover {
    color: var(--n11-color);
}

/* Footer'da Pazarama Linki - Sadece Hover'da Renkli */
.platform-links .pazarama-link {
    color: #ffffff;
    transition: all 0.3s ease;
}

.platform-links .pazarama-link:hover {
    background: linear-gradient(90deg, #a6b1ff 0%, #ff85d5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    transform: translateY(-2px);
}

.platform-links .pazarama-link:hover {
    background: linear-gradient(90deg, #a6b1ff 0%, #ff85d5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    transform: translateY(-2px);
    /* Diğerleriyle aynı hareket */
}

.contact-info {
    margin: 0 15px;
    font-size: 0.9rem;
    color: #adb5bd;
}

.contact-info a {
    color: #adb5bd;
    text-decoration: none;
}

.contact-info a:hover {
    color: #fff;
}

.copyright {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.instagram-link {
    color: #fff;
    display: flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
}

.instagram-link:hover {
    color: #e1306c;
}

/* ========================================
   INDEX.CSHTML STİLLERİ
   ======================================== */

.page-container {
    width: 100%;
    text-align: center;
}

.main-title {
    font-weight: 800;
    font-size: 3rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
}

.title-text {
    background: linear-gradient(90deg, #f27a1a, #ff6000, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.title-emoji {
    font-size: 2rem;
    vertical-align: middle;
}

.sub-title {
    font-size: 1.1rem;
    color: var(--subtitle-color);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
}

/* Kart Grid */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    width: 100%;
    padding: 0 0.5rem;
}

.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    perspective: 1000px;
}

/* === KART HİZALAMA DÜZELTMESİ === */
.card-content {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    align-items: center;

    /* ÖNEMLİ DEĞİŞİKLİK: Ortalamak yerine ÜSTTEN başlatıyoruz */
    justify-content: flex-start;
    padding-top: 60px;
    /* Üstten sabit boşluk, logolar hep aynı yerden başlar */

    height: 340px;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.card-link:hover .card-content {
    transform: translateY(-10px);
    box-shadow: var(--hover-shadow);
    border-color: transparent;
}

/* === LOGO HİZALAMA DÜZELTMESİ === */
.card-logo-wrapper {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 25px;
    z-index: 2;

    /* ÖNEMLİ DEĞİŞİKLİK: Logoya sabit kutu alanı veriyoruz */
    height: 110px;
    width: 100%;
    display: flex;
    align-items: center;
    /* Logoyu kutunun içinde ortala */
    justify-content: center;
}

.logo-image {
    max-width: 140px;
    max-height: 100px;
    /* Sınırları zorlamasın */
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.card-qr-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 10;
    background: #fff;
    padding: 15px;
    border-radius: 15px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.qr-image {
    width: 160px;
    height: 160px;
}

/* HOVER: Logo gider, QR gelir */
.card-link:hover .card-logo-wrapper {
    transform: scale(0.6) translateY(-150px);
    opacity: 0.1;
    filter: blur(4px);
}

.card-link:hover .card-qr-wrapper {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Başlıklar */
.card-title {
    margin-top: 1rem;
    font-size: 1.2rem;
    font-weight: 700;
    z-index: 5;
    position: relative;
    transition: opacity 0.3s;
}

.card-link:hover .card-title {
    opacity: 0.3;
}

.trendyol-text {
    color: var(--trendyol-color);
}

.hepsiburada-text {
    color: var(--hepsiburada-color);
}

.n11-text {
    color: var(--n11-color);
}

/* --- PAZARAMA ÖZEL GRADIENT --- */
.pazarama-text {
    background: linear-gradient(90deg, #182676 0%, #ce048c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    font-weight: 800;
    display: inline-block;
}

/* ========================================
   MOBİL OPTİMİZASYON
   ======================================== */

@media (max-width: 768px) {
    body {
        overflow-y: auto;
    }

    .footer {
        margin-top: 2rem;
        padding: 2rem 0;
    }

    .footer-container {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    /* LOGO KÜÇÜLTME (100px) */
    .logo {
        width: 100px;
        height: auto;
        object-fit: contain;
    }

    .card-grid {
        max-width: 400px;
        margin: 0 auto;
        gap: 1.5rem;
    }

    .card-content {
        height: 280px;
        padding: 1.5rem;
        padding-top: 40px;
    }

    .qr-image {
        width: 130px;
        height: 130px;
    }

    .logo-image {
        max-width: 120px;
    }

    /* BAŞLIK ORTALAMA VE BOYUT */
    .main-title {
        font-size: 1.8rem;
        text-align: center;
        width: 100%;
        margin-bottom: 0.5rem;
        padding: 0 10px;
    }

    /* ALT BAŞLIK ORTALAMA */
    .sub-title {
        text-align: center;
        width: 100%;
        padding: 0 10px;
    }

    #theme-toggle {
        top: 1rem;
        right: 1rem;
    }
}

/* ========================================
   HERO BANNER (PREMIUM STORE) STİLLERİ
   ======================================== */

.hero-wrapper {
    max-width: 1200px;
    margin: 0 auto 50px auto;
    padding: 0 20px;
    width: 100%;
}

.hero-banner {
    display: block;
    position: relative;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    border-radius: 24px;
    padding: 60px 40px;
    text-decoration: none;
    color: #fff;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-banner:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.4);
    border-color: rgba(255, 215, 0, 0.3);
}

.hero-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
}

.hero-badge {
    background: rgba(255, 215, 0, 0.15);
    color: #fbbf24;
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin: 0;
    line-height: 1.1;
    letter-spacing: -1px;
    background: linear-gradient(to bottom right, #ffffff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #94a3b8;
    font-weight: 400;
    margin: 0;
}

.hero-cta {
    margin-top: 15px;
    background: #fff;
    color: #0f172a;
    padding: 14px 32px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.hero-banner:hover .hero-cta {
    background: #fbbf24;
    color: #000;
    transform: scale(1.05);
}

.hero-cta .arrow {
    transition: transform 0.3s ease;
}

.hero-banner:hover .hero-cta .arrow {
    transform: translateX(5px);
}

/* Arka plan efektleri */
.hero-glow {
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.15) 0%, rgba(251, 191, 36, 0) 70%);
    filter: blur(60px);
    z-index: 1;
    transition: all 1s ease;
}

.hero-banner:hover .hero-glow {
    top: -40%;
    opacity: 0.8;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(at 0% 0%, rgba(255, 255, 255, 0.03) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(255, 255, 255, 0.03) 0px, transparent 50%);
    z-index: 2;
}

/* === BRAND HERO (Masaüstü: Yan Yana) === */
.brand-hero {
    display: flex;
    align-items: center;
    /* Dikey ortala */
    justify-content: center;
    /* Yatay ortala */
    gap: 30px;
    /* Logo ile yazı arası boşluk */
    margin-bottom: 40px;
}

.brand-logo {
    height: 120px;
    /* Masaüstü logo boyutu */
    width: auto;
    object-fit: contain;
}

.brand-text {
    text-align: left;
    /* Masaüstünde yazı sola yaslı olsun */
}

.brand-text .main-title {
    margin-bottom: 5px;
    /* Başlık altı boşluk */
}

/* Sadece bu yeni başlığın alt yazısı sola yaslı */
.brand-text .sub-title {
    text-align: left;
    margin: 0;
}

@media (max-width: 768px) {
    .hero-banner {
        padding: 40px 20px;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-cta {
        width: 100%;
        justify-content: center;
    }

    .hero-glow {
        display: none;
    }

    /* Mobilde Brand Hero (Alt Alta) */
    .brand-hero {
        flex-direction: column;
        /* Alt alta diz */
        gap: 15px;
    }

    .brand-logo {
        height: 100px;
        /* Mobilde biraz küçült (100px ideal) */
    }

    .brand-text {
        text-align: center;
        /* Mobilde yazıyı ortala */
    }

    .brand-text .sub-title {
        text-align: center;
        /* Alt yazıyı da ortala */
    }
}