@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;500;700&display=swap');

:root {
    --bg: #09090b;
    --card-bg: #18181b;
    --primary: #8b5cf6; /* Mor */
    --primary-glow: rgba(139, 92, 246, 0.5);
    --text: #e4e4e7;
    --success: #22c55e;
    --danger: #ef4444;
}

body {
    margin: 0; font-family: 'Outfit', sans-serif;
    background: var(--bg); color: var(--text);
    overflow-x: hidden;
}

/* --- GİRİŞ EKRANI --- */
.auth-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at top right, #2e1065, #000);
    display: flex; justify-content: center; align-items: center; z-index: 1000;
}

.auth-box {
    background: rgba(24, 24, 27, 0.8);
    backdrop-filter: blur(20px);
    padding: 40px; border-radius: 24px;
    width: 380px; border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 0 40px var(--primary-glow);
}

.neon-text { text-align: center; color: var(--primary); text-shadow: 0 0 15px var(--primary); margin-bottom: 20px; }

.tab-buttons { display: flex; gap: 10px; margin-bottom: 20px; }
.tab-buttons button {
    flex: 1; padding: 10px; background: transparent; border: none;
    color: #71717a; cursor: pointer; border-bottom: 2px solid transparent;
    transition: 0.3s; font-size: 1rem;
}
.tab-buttons button.active { color: white; border-bottom-color: var(--primary); }

.input-group {
    display: flex; align-items: center; background: #27272a;
    padding: 12px; border-radius: 12px; margin-bottom: 15px;
    border: 1px solid transparent; transition: 0.3s;
}
.input-group:focus-within { border-color: var(--primary); box-shadow: 0 0 10px var(--primary-glow); }
.input-group i { color: #a1a1aa; margin-right: 10px; }
.input-group input { background: transparent; border: none; color: white; width: 100%; outline: none; }

.main-btn {
    width: 100%; padding: 15px; background: var(--primary);
    color: white; border: none; border-radius: 12px;
    font-weight: bold; cursor: pointer; transition: 0.3s;
    font-size: 1rem;
}
.main-btn:hover { transform: translateY(-2px); box-shadow: 0 5px 20px var(--primary-glow); }

.hidden { display: none !important; }

/* --- NAVBAR --- */
nav {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px 5%; background: rgba(9, 9, 11, 0.9);
    backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 100;
    border-bottom: 1px solid #27272a;
}
.logo { font-size: 1.5rem; font-weight: 800; }
.badge { font-size: 0.8rem; background: var(--primary); padding: 2px 8px; border-radius: 4px; margin-left: 5px; }

.nav-btn { background: transparent; color: #a1a1aa; border: none; font-size: 1rem; cursor: pointer; margin-left: 20px; transition: 0.3s; }
.nav-btn:hover { color: white; }
.admin-btn { color: #f59e0b; }
.logout-btn { background: #27272a; border: none; color: var(--danger); width: 40px; height: 40px; border-radius: 50%; cursor: pointer; margin-left: 15px; }

/* --- MARKET KARTLARI (YENİLENMİŞ) --- */
.page-content { padding: 40px 5%; animation: fadeIn 0.6s ease; }
.grid-container { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 25px; margin-top: 30px; }

.card {
    background: var(--card-bg); border-radius: 20px; overflow: hidden;
    border: 1px solid #27272a; transition: all 0.4s ease;
    position: relative;
}
.card:hover { transform: translateY(-10px); border-color: var(--primary); box-shadow: 0 10px 30px rgba(0,0,0,0.5); }

.card-img-box { height: 200px; overflow: hidden; position: relative; }
.card-img-box img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.card:hover .card-img-box img { transform: scale(1.1); }

.card-info { padding: 20px; }
.card-info h3 { margin: 0 0 5px 0; }
.seller-tag { font-size: 0.8rem; color: #a1a1aa; display: block; margin-bottom: 10px; }
.price-tag { color: var(--primary); font-size: 1.3rem; font-weight: 800; display: block; margin-bottom: 15px; }

/* --- ADMIN PANELİ --- */
.admin-wrapper { display: flex; height: 80vh; gap: 20px; }
.sidebar { width: 300px; background: var(--card-bg); padding: 20px; border-radius: 20px; }
.sidebar li { padding: 15px; background: #27272a; margin-bottom: 10px; border-radius: 10px; cursor: pointer; transition: 0.2s; }
.sidebar li:hover { background: #3f3f46; border-left: 4px solid var(--primary); }

.chat-interface { flex: 1; background: var(--card-bg); border-radius: 20px; display: flex; flex-direction: column; overflow: hidden; }
.chat-header { padding: 20px; background: #27272a; font-weight: bold; }
.messages-area { flex: 1; padding: 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.msg { padding: 10px 15px; border-radius: 12px; max-width: 70%; font-size: 0.95rem; }
.msg.me { background: var(--primary); align-self: flex-end; }
.msg.other { background: #27272a; align-self: flex-start; }

.input-area { padding: 20px; display: flex; gap: 10px; background: #27272a; }
.input-area input { flex: 1; background: #18181b; border: none; padding: 15px; border-radius: 10px; color: white; }
.action-buttons { padding: 15px; display: flex; gap: 10px; }
.accept { flex: 1; background: var(--success); border: none; padding: 10px; border-radius: 8px; color: white; cursor: pointer; }
.deny { flex: 1; background: var(--danger); border: none; padding: 10px; border-radius: 8px; color: white; cursor: pointer; }

/* --- MODAL --- */
.modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); z-index: 2000; justify-content: center; align-items: center; }
.modal-content { background: var(--card-bg); padding: 30px; border-radius: 24px; width: 400px; display: flex; flex-direction: column; gap: 15px; border: 1px solid var(--primary); }
.modal-content input, textarea { background: #27272a; border: 1px solid #3f3f46; color: white; padding: 12px; border-radius: 8px; }

/* ANIMASYONLAR */
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes popIn { from { transform: scale(0.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.pop-in { animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.slide-up { animation: fadeIn 0.8s ease; }