/* DOSYA YOLU: /public/assets/css/style.css */
/* Sürüm: v3.0 (Final - Tam Ekran Footer & Mobil Uyumlu) */

/* ================= 1. GENEL AYARLAR & DEĞİŞKENLER ================= */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #6c5ce7; /* Ana Mor */
    --secondary-color: #a29bfe;
    --accent-red: #ff7675;
    --accent-green: #00b894;
    --bg-color: #f0f2f5; /* Facebook Grisi */
    --white: #ffffff;
    --text-dark: #2d3436;
    --text-light: #636e72;
    --shadow: 0 2px 5px rgba(0,0,0,0.05);
    --header-height: 70px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-dark);
    padding-top: var(--header-height); /* Header altı boşluk */
    padding-bottom: 80px; /* Mobil menü için alt boşluk */
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; }

/* ================= 2. HEADER (ÜST MENÜ) ================= */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    display: flex;
    justify-content: center;
}

.header-container {
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-bar {
    display: flex;
    background: var(--bg-color);
    padding: 8px 15px;
    border-radius: 20px;
    width: 300px;
    align-items: center;
}

.search-bar input {
    border: none;
    background: transparent;
    outline: none;
    width: 100%;
    margin-left: 10px;
    font-family: inherit;
}

.nav-menu { display: flex; align-items: center; gap: 20px; }

.nav-item {
    font-weight: 500;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-item.active, .nav-item:hover { color: var(--primary-color); }

.btn-login {
    background: var(--primary-color);
    color: white;
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 600;
}

.user-profile-mini {
    display: flex;
    align-items: center;
    gap: 10px;
}

.avatar-circle {
    width: 35px;
    height: 35px;
    background: var(--secondary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
}

/* ================= 3. ANA DÜZEN (3 SÜTUNLU GRID) ================= */
.main-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
    display: grid;
    /* Sol (250px) - Orta (Esnek) - Sağ (300px) */
    grid-template-columns: 250px 1fr 300px; 
    gap: 20px;
    align-items: start;
}

/* --- SOL SÜTUN (MENÜ) --- */
.left-sidebar { position: sticky; top: 90px; }

.menu-card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 15px;
    overflow: hidden;
}

.menu-link {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    color: var(--text-dark);
    font-weight: 500;
    border-radius: 8px;
    margin-bottom: 5px;
}

.menu-link i { width: 30px; font-size: 1.1rem; color: var(--primary-color); }
.menu-link:hover { background-color: #f0f2f5; color: var(--primary-color); }

/* --- ORTA SÜTUN (AKIŞ) --- */
.feed-column { min-height: 500px; }

.content-card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 20px;
    margin-bottom: 20px;
}

/* --- SAĞ SÜTUN (PROFIL/MASKOT/CÜZDAN) --- */
.right-sidebar { position: sticky; top: 90px; }

.profile-card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 20px;
    text-align: center;
}

.profile-img-lg {
    width: 80px;
    height: 80px;
    background: var(--secondary-color);
    border-radius: 50%;
    margin: 0 auto 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    color: white;
    font-weight: bold;
}

.stat-row {
    display: flex;
    justify-content: space-around;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}
.stat-item h4 { font-size: 0.8rem; color: var(--text-light); margin-bottom: 3px;}
.stat-item span { font-weight: bold; color: var(--text-dark); }


/* ================= 4. AUTH SAYFALARI (Giriş/Kayıt) ================= */
.auth-container {
    background: rgba(255, 255, 255, 0.95);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    text-align: center;
    margin: 50px auto;
}
.brand-logo { font-size: 24px; font-weight: 700; color: var(--primary-color); display: block; margin-bottom: 10px; }
.form-group { margin-bottom: 15px; text-align: left; }
.form-input { width: 100%; padding: 12px; border: 2px solid #eee; border-radius: 10px; outline: none; }
.form-input:focus { border-color: var(--primary-color); }
.btn-primary { width: 100%; padding: 12px; background: var(--primary-color); color: white; border: none; border-radius: 10px; font-weight: 600; cursor: pointer; }
.alert-error { background: #ffe3e3; color: #d63031; padding: 10px; border-radius: 8px; margin-bottom: 15px; }


/* ================= 5. MARKET STİLLERİ ================= */
.market-header-card {
    background: linear-gradient(135deg, #ff9ff3 0%, #feca57 100%);
    color: white;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
}

.market-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.market-item {
    background: white;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.2s;
    border: 1px solid transparent;
}
.market-item:hover { transform: translateY(-5px); border-color: var(--primary-color); }

.item-icon { font-size: 3rem; margin-bottom: 10px; display: block; }
.item-price {
    background: #f0f2f5; color: var(--text-dark); padding: 5px 10px;
    border-radius: 20px; font-weight: 700; font-size: 0.9rem;
    display: inline-block; margin: 10px 0;
}
.btn-buy {
    width: 100%; padding: 8px; background: var(--primary-color);
    color: white; border: none; border-radius: 8px; cursor: pointer; font-weight: 600;
}


/* ================= 6. FOOTER & MOBİL NAVİGASYON (TAM EKRAN) ================= */

/* Masaüstü Footer (Tam Genişlik) */
.desktop-footer {
    width: 100%;             /* Tam Ekran */
    background: var(--white);
    border-top: 1px solid #eee;
    margin-top: 40px;
    padding: 20px 0;
    display: flex;
    justify-content: center; /* Ortala */
}

/* Footer İçerik Kutusu */
.footer-container {
    width: 100%;
    max-width: 1200px;       /* Header hizası */
    padding: 0 20px;
    text-align: center;
    color: var(--text-light);
    font-size: 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.footer-links a { margin: 0 5px; color: var(--text-dark); font-weight: 500; }
.footer-links a:hover { color: var(--primary-color); text-decoration: underline; }

/* Mobil Alt Menü (Ekran Altına Yapışık) */
.mobile-bottom-nav {
    display: none; /* Masaüstünde Gizle */
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: var(--white);
    box-shadow: 0 -5px 20px rgba(0,0,0,0.05);
    justify-content: space-around;
    align-items: center;
    z-index: 9999;
    border-top: 1px solid #f0f0f0;
}

.mobile-nav-item {
    color: #b2bec3;
    font-size: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    transition: 0.2s;
}
.mobile-nav-item span { font-size: 0.65rem; margin-top: 4px; font-weight: 500; }
.mobile-nav-item.active, .mobile-nav-item:hover { color: var(--primary-color); }

/* Ortada Yüzen Ekle Butonu */
.mobile-nav-add {
    background: var(--primary-color); color: white;
    width: 50px; height: 50px; border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    font-size: 1.8rem;
    box-shadow: 0 5px 15px rgba(108, 92, 231, 0.4);
    transform: translateY(-10px);
}


/* ================= 7. MOBİL ÖZEL WIDGETLAR (Cüzdan/Maskot) ================= */

/* --- KRİTİK KURAL: MASAÜSTÜNDE GİZLE --- */
.mobile-only-widget {
    display: none !important;
}

/* Mobil Cüzdan Kartı */
.mobile-wallet-card {
    background: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%);
    color: white; border-radius: 12px; padding: 15px 20px;
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.3);
    display: flex; justify-content: space-between; align-items: center;
}
.wallet-balance h4 { font-size: 0.8rem; opacity: 0.9; margin-bottom: 2px; }
.wallet-balance h1 { font-size: 1.8rem; font-weight: 700; }
.wallet-btn {
    background: rgba(255, 255, 255, 0.2); border: 1px solid rgba(255, 255, 255, 0.4);
    color: white; padding: 8px 12px; border-radius: 8px; font-size: 0.8rem; font-weight: 600; cursor: pointer;
    display: flex; align-items: center; gap: 5px;
}

/* Maskot Butonları */
.mascot-action-btn {
    flex: 1; padding: 8px 5px; border: none; border-radius: 5px;
    color: white; font-size: 0.8rem; font-weight: 600; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 5px;
}
.btn-feed { background-color: var(--accent-red); }
.btn-play { background-color: var(--accent-green); }


/* ================= 8. RESPONSIVE (MOBİL UYUM) ================= */

/* Tablet ve Altı (1000px altı) */
@media (max-width: 1000px) {
    /* Düzeni Tek Sütuna İndir */
    .main-container {
        grid-template-columns: 1fr; /* Sadece orta sütun kalır */
        padding: 0 15px;
    }

    /* Yan Menüleri Gizle */
    .left-sidebar, .right-sidebar { display: none; }

    /* Masaüstü Footer'ı Gizle */
    .desktop-footer { display: none; }

    /* Mobil Alt Menüyü Aç */
    .mobile-bottom-nav { display: flex; }

    /* Mobil Widgetları (Cüzdan/Maskot) Görünür Yap */
    .mobile-only-widget {
        display: block !important;
        margin-bottom: 15px;
    }

    /* Arama Çubuğunu Gizle */
    .search-bar { display: none; }
    
    /* Header'daki linkleri gizle */
    .nav-menu { display: none; } 
}