/* ============================================================
   marketplace.css — Pazar Yeri Ana Sayfası & Kart Tasarımı
   ============================================================ */

/* Header Alanı */
.marketplace-header {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.12) 0%, rgba(118, 75, 162, 0.12) 100%);
    border-radius: 20px;
    padding: 32px;
    margin-bottom: 28px;
    border: 1px solid rgba(102, 126, 234, 0.25);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.marketplace-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.18) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.marketplace-header-content {
    position: relative;
    z-index: 1;
}

.marketplace-header h2 {
    font-weight: 700;
    letter-spacing: -0.5px;
}

.marketplace-header h2 span {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn-seller-panel {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    padding: 12px 24px;
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-seller-panel:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.45);
}

/* Filtre Paneli */
.marketplace-filter-panel {
    background: #242424;
    border-radius: 18px;
    padding: 22px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.marketplace-search {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.marketplace-search i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #667eea;
    z-index: 10;
    font-size: 15px;
    pointer-events: none;
}

.marketplace-search input,
.marketplace-search .form-control,
.marketplace-search input[type="text"].form-control {
    padding-left: 48px !important;
    border-radius: 12px !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.09) !important;
    color: #fff !important;
    height: 44px !important;
    min-height: 44px !important;
    font-size: 0.9rem !important;
    transition: all 0.25s ease;
}

.marketplace-search input:focus,
.marketplace-search .form-control:focus,
.marketplace-search input[type="text"].form-control:focus {
    background: rgba(255, 255, 255, 0.07) !important;
    border-color: #667eea !important;
    color: #fff !important;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15) !important;
}

.filter-select {
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.09);
    color: #fff;
    height: 44px;
    font-size: 0.9rem;
    transition: all 0.25s ease;
}

.filter-select:focus {
    background: rgba(255, 255, 255, 0.07);
    border-color: #667eea;
    color: #fff;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

.filter-reset-btn {
    border-radius: 12px;
    height: 44px;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.filter-reset-btn:hover {
    background: #ef4444;
    color: #fff;
    border-color: #ef4444;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.35);
}

/* ============================================================
   Item Card (İlan Kartı Tasarımı)
   ============================================================ */

.marketplace-item-card {
    background: #242424;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

.marketplace-item-card:hover {
    transform: translateY(-6px);
    border-color: rgba(102, 126, 234, 0.45);
    box-shadow: 0 16px 35px rgba(0, 0, 0, 0.4), 0 0 20px rgba(102, 126, 234, 0.15);
}

/* Görsel Alanı */
.mp-card-media {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: #181818;
}

.mp-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.marketplace-item-card:hover .mp-card-img {
    transform: scale(1.08);
}

.mp-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1c1c24 0%, #252233 100%);
    color: rgba(255, 255, 255, 0.25);
    font-size: 3rem;
}

/* Görsel Üzeri Gradient Gölge */
.mp-media-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, transparent 40%, rgba(18, 18, 18, 0.9) 100%);
    pointer-events: none;
}

/* Rozetler (Badges) */
.mp-badge-top-left {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
}

.mp-badge-game {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    background: rgba(20, 20, 25, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.mp-badge-game.game-metin2 {
    border-color: rgba(249, 115, 22, 0.5);
    color: #fb923c;
}

.mp-badge-game.game-valorant {
    border-color: rgba(244, 63, 94, 0.5);
    color: #fb7185;
}

.mp-badge-game.game-lol {
    border-color: rgba(56, 189, 248, 0.5);
    color: #38bdf8;
}

.mp-badge-game.game-cs2 {
    border-color: rgba(251, 191, 36, 0.5);
    color: #fbbf24;
}

.mp-badge-game.game-pubg {
    border-color: rgba(234, 179, 8, 0.5);
    color: #facc15;
}

.mp-badge-views {
    position: absolute;
    bottom: 12px;
    right: 12px;
    z-index: 2;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.75rem;
    padding: 3px 9px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* Kart İçeriği */
.mp-card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.mp-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 44px;
    transition: color 0.2s ease;
}

.marketplace-item-card:hover .mp-card-title {
    color: #a5b4fc;
}

/* Çip / Etiket Bilgileri */
.mp-card-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.mp-chip {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.78rem;
    padding: 4px 10px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.mp-chip i {
    color: #667eea;
    font-size: 0.75rem;
}

/* Satıcı Satırı */
.mp-seller-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 12px;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 16px;
}

.mp-seller-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}

.mp-seller-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.mp-seller-name {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mp-seller-badge {
    color: #10b981;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Kart Altı: Fiyat ve Buton */
.mp-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.mp-price-box {
    display: flex;
    flex-direction: column;
}

.mp-price-label {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.45);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.mp-price-amount {
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #fff 0%, #c7d2fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.mp-btn-action {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-weight: 600;
    font-size: 0.88rem;
    padding: 10px 18px;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.25);
}

.mp-btn-action:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.45);
}

/* Boş Durum (Empty State) */
.empty-state {
    background: #242424;
    border-radius: 20px;
    border: 1px dashed rgba(255, 255, 255, 0.1);
    padding: 60px 20px;
    text-align: center;
}

.empty-state i {
    font-size: 3.5rem;
    color: #667eea;
    margin-bottom: 20px;
    opacity: 0.8;
}

.empty-state h4 {
    color: #fff;
    font-weight: 700;
    margin-bottom: 8px;
}

.empty-state p {
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0;
}