/* ========================================
   site.css - Son Hali (Mobil Footer Düzeltmesi)
   ======================================== */

/* 1. Tema Değişkenleri */
:root {
    --bg-color: #ffffff;
    --text-color: #212529;
    --header-bg: #f8f9fa;
    --card-bg: #ffffff;
    --border-color: #dee2e6;
    --subtitle-color: #4b5563;
}

[data-theme="dark"] {
    --bg-color: #121212;
    --text-color: #e9ecef;
    --header-bg: #1e1e1e;
    --card-bg: #2a2a2a;
    --border-color: #495057;
    --subtitle-color: #adb5bd;
}


/* 2. Genel Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 3. Body */
body {
    font-family: Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* MASAÜSTÜNDE footer'ı aşağı iter */
    transition: background-color 0.2s, color 0.2s;
    overflow-y: hidden; /* Masaüstünde kaydırmayı engelle */
}

/* 4. Header */
.header {
    background-color: var(--header-bg);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 2rem;
    width: 100%;
}

.header-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

#theme-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color);
    position: absolute;
    right: 1rem;
    padding: 0.5rem;
}

/* 5. Logo */
.logo {
    max-width: 100%;
    width: 300px;
    height: 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: 0.5rem 1rem;
}

/* 7. Footer */
.footer {
    background-color: #212529;
    color: #ffffff;
    padding: 0.75rem 2rem;
    width: 100%;
    margin-top: auto; /* MASAÜSTÜNDE footer'ı aşağı iter */
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

    .footer-container a {
        color: #ffffff;
        text-decoration: none;
        margin: 0 0.5rem;
    }

    .footer-container .trendyol-link:hover {
        color: #f27a1a;
    }

    .footer-container .hepsiburada-link:hover {
        color: #ff6000;
    }

    .footer-container .n11-link:hover {
        color: #8630d6;
    }

    .footer-container .instagram-link:hover svg {
        stroke: #e1306c;
    }

    .footer-container .instagram-link svg {
        transition: stroke 0.3s ease;
    }

.copyright {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ========================================
   INDEX.CSHTML STİLLERİ
   ======================================== */

.page-container {
    width: 100%;
    text-align: center;
}

.main-title {
    font-weight: bold;
    font-size: 3rem;
    background: linear-gradient(90deg, #f27a1a, #ff6000, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap; /* Emojilerin alta düşmesine izin ver */
    margin-bottom: 0.5rem;
}

.title-emoji {
    color: #8b5cf6;
    font-size: 1.5rem;
    -webkit-text-fill-color: unset;
}

.sub-title {
    font-size: 0.875rem;
    color: var(--subtitle-color);
    margin-bottom: 0.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 0.25rem;
}

.title-text {
    white-space: nowrap;
}


/* Kart Grid */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    width: 100%;
    padding: 0 0.5rem;
}

.card-link {
    text-align: center;
    display: block;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    width: 100%;
    padding-bottom: 1rem;
}

.card-content {
    background: var(--card-bg);
    border-radius: 1rem;
    padding: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    border: 1px solid var(--border-color);
}

.card-link:hover .card-content {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

.card-qr-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
}

.card-logo-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* === DUYARLI GÖRSEL KURALLARI (KÜÇÜLTÜLDÜ) === */

.qr-image {
    max-width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    width: 180px;
    height: 180px;
    background-color: white;
    padding: 10px;
    border-radius: 8px;
}

.logo-image {
    max-height: 80px;
    width: auto;
    max-width: 100%;
}

/* === KART ALTI BAŞLIKLARI === */

.card-title {
    margin-top: 0.75rem;
    font-size: 1.15rem;
    font-weight: bold;
    color: var(--text-color);
    padding: 0 0.5rem;
    transition: color 0.2s;
}

/* Renk Class'ları */
.trendyol-text {
    color: #f27a1a;
}

.hepsiburada-text {
    color: #ff6000;
}

.n11-text {
    color: #8630d6;
}


/* ========================================
   MOBİL OPTİMİZASYON (FOOTER DÜZELTMESİ)
   ======================================== */

@media (max-width: 768px) {
    body {
        overflow-y: auto; /* Mobilde kaydırmaya izin ver */
        min-height: unset; /* YENİ: Body'nin content ile uzamasına izin ver */
    }

    .footer {
        margin-top: 1.5rem; /* YENİ: 'auto' yerine normal bir boşluk ver */
    }

    .logo {
        width: 160px;
    }

    .qr-image {
        width: 150px;
        height: 150px;
    }

    .logo-image {
        max-height: 70px;
    }

    #theme-toggle {
        right: 0.5rem;
    }

    .card-title {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .logo {
        width: 120px;
    }

    .qr-image {
        width: 120px;
        height: 120px;
        padding: 5px;
    }

    .logo-image {
        max-height: 50px;
    }

    .card-grid {
        gap: 1rem;
    }

    .card-content {
        padding: 1rem;
    }

    .main-title {
        font-size: 1.5rem;
    }

    .title-emoji {
        font-size: 1.1rem;
    }
}

@media (min-width: 768px) {
    .footer-container {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}
