/* --- AGYSHOP GLOBAL PREMIUM THEMA (V4) --- */
:root {
    /* Renk Paleti: Güven ve Otorite */
    --primary: #0f172a;       /* Derin Lacivert (Otorite) */
    --primary-light: #1e293b; /* Daha yumuşak lacivert */
    --accent: #2563eb;        /* Kurumsal Mavi (Eylem) */
    --accent-hover: #1d4ed8;  /* Koyu Mavi */
    --success: #10b981;       /* Başarı Yeşili */
    --warning: #f59e0b;       /* Uyarı Turuncusu */
    --danger: #ef4444;        /* Hata Kırmızısı */
    
    /* Zemin Renkleri */
    --bg-body: #f8fafc;       /* Çok açık gri mavi (Göz yormaz) */
    --bg-surface: #ffffff;    /* Tam Beyaz */
    
    /* Metin Renkleri */
    --text-main: #0f172a;     /* Neredeyse siyah */
    --text-muted: #64748b;    /* Gri metin */
    
    /* Yapısal */
    --radius: 12px;           /* Modern Yuvarlaklık */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    
    --font-main: 'Inter', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; outline: none; }

body {
    font-family: var(--font-main);
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased; /* Yazıları pürüzsüzleştir */
}

a { text-decoration: none; color: inherit; transition: color 0.2s; }

/* --- BUTTONLAR (Modern & Tıklanabilir) --- */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 12px 24px; border-radius: var(--radius);
    font-weight: 600; font-size: 0.95rem; cursor: pointer;
    transition: all 0.2s ease; border: none; gap: 8px;
}
.btn:active { transform: scale(0.98); }

.btn-primary { background: var(--primary); color: white; box-shadow: var(--shadow-md); }
.btn-primary:hover { background: var(--primary-light); transform: translateY(-1px); }

.btn-accent { background: var(--accent); color: white; box-shadow: var(--shadow-md); }
.btn-accent:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: var(--shadow-lg); }

.btn-outline { background: transparent; border: 1px solid #cbd5e1; color: var(--text-main); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); background: white; }

/* --- FORM ELEMANLARI (Temiz & Net) --- */
.form-control {
    width: 100%; padding: 12px 16px;
    border: 1px solid #cbd5e1; border-radius: 8px;
    font-family: var(--font-main); font-size: 0.95rem;
    transition: all 0.2s; background: white;
}
.form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
textarea { resize: vertical; }

/* --- HEADER (Kurumsal Üst Bar) --- */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px); /* Buzlu cam efekti */
    border-bottom: 1px solid #e2e8f0;
    position: sticky; top: 0; z-index: 1000;
}
.navbar {
    max-width: 1200px; margin: 0 auto; padding: 0 20px;
    height: 72px; display: flex; justify-content: space-between; align-items: center;
}
.logo { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.5px; color: var(--primary); }

/* --- HERO SECTION (Ana Sayfa Kapak) --- */
.hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white; padding: 80px 20px; text-align: center; margin-bottom: 40px;
}
.hero h1 { font-size: 2.5rem; font-weight: 800; margin-bottom: 15px; letter-spacing: -1px; }
.hero p { font-size: 1.1rem; color: #94a3b8; max-width: 600px; margin: 0 auto 30px; }
.search-bar {
    display: flex; gap: 10px; max-width: 600px; margin: 0 auto;
    background: white; padding: 8px; border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}
.search-input { border: none; padding: 10px 15px; flex: 1; font-size: 1rem; outline: none; }

/* --- KART TASARIMI (Ürünler) --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 30px; padding-bottom: 60px; }

.card {
    background: white; border-radius: var(--radius);
    border: 1px solid #e2e8f0; overflow: hidden;
    transition: all 0.3s ease; display: flex; flex-direction: column;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: #cbd5e1;
}
.card img { width: 100%; height: 200px; object-fit: cover; border-bottom: 1px solid #f1f5f9; }
.card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.card h3 { font-size: 1.1rem; font-weight: 700; color: var(--text-main); margin-bottom: 5px; }
.card .fiyat { font-size: 1.25rem; font-weight: 800; color: var(--accent); margin-top: auto; padding-top: 15px; }
.badge {
    background: #eff6ff; color: var(--accent);
    padding: 4px 10px; border-radius: 20px;
    font-size: 0.75rem; font-weight: 700; letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* --- ADMIN PANEL & PROFİL ÖZEL --- */
.admin-container { max-width: 1100px; margin: 40px auto; padding: 0 20px; }

/* Sekmeler */
.nav-tabs { display: flex; gap: 30px; border-bottom: 2px solid #e2e8f0; margin-bottom: 30px; }
.nav-tab {
    padding: 15px 0; color: var(--text-muted); font-weight: 600; cursor: pointer;
    border-bottom: 2px solid transparent; transition: all 0.2s;
}
.nav-tab:hover { color: var(--primary); }
.nav-tab.active { color: var(--primary); border-color: var(--accent); }

/* Yükleme Kutusu */
.upload-box {
    border: 2px dashed #cbd5e1; background: #f8fafc;
    border-radius: var(--radius); padding: 30px; text-align: center;
    cursor: pointer; transition: all 0.2s; color: var(--text-muted);
}
.upload-box:hover { border-color: var(--accent); background: #eff6ff; color: var(--accent); }

/* İstatistik Kartları */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-bottom: 30px; }
.stat-card {
    background: white; padding: 25px; border-radius: var(--radius);
    border: 1px solid #e2e8f0; display: flex; align-items: center; gap: 20px;
    box-shadow: var(--shadow-sm);
}

/* Profil Başlığı */
.profile-header { background: white; border-bottom: 1px solid #e2e8f0; position: relative; }
.cover-photo { height: 250px; background: var(--primary); background-size: cover; background-position: center; }
.profile-info {
    max-width: 1200px; margin: -60px auto 0; padding: 0 20px 30px;
    display: flex; gap: 30px; align-items: flex-end; position: relative;
}
.logo-box {
    width: 140px; height: 140px; background: white;
    border: 5px solid white; border-radius: 20px;
    box-shadow: var(--shadow-md); object-fit: cover;
}

/* --- MODAL (Popup) --- */
.modal {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.7); /* Koyu backdrop */
    backdrop-filter: blur(5px); /* Arka planı bulanıklaştır */
    display: none; align-items: center; justify-content: center; z-index: 2000;
}
.modal-content {
    background: white; padding: 40px; border-radius: var(--radius);
    width: 90%; max-width: 450px; box-shadow: var(--shadow-lg);
    text-align: center; position: relative;
}

/* --- YARDIMCI SINIFLAR --- */
.loading { text-align: center; padding: 50px; color: var(--text-muted); font-weight: 500; }
.p-status { padding: 5px 10px; border-radius: 6px; font-size: 0.8rem; font-weight: 600; }
.status-ok { background: #dcfce7; color: #166534; }
.status-wait { background: #fef9c3; color: #854d0e; }

/* Mobil Uyumluluk */
@media (max-width: 768px) {
    .navbar { height: auto; padding: 15px; flex-direction: column; gap: 15px; }
    .hero h1 { font-size: 2rem; }
    .search-bar { flex-direction: column; }
    .profile-info { flex-direction: column; align-items: center; text-align: center; margin-top: -50px; }
    .nav-tabs { overflow-x: auto; white-space: nowrap; }
}