/* ============================================================
   MARKETPLACE HUB PANEL — SHADOWMERE AESTHETIC (UPDATED)
   ============================================================ */

#market-panel {
    background: radial-gradient(circle at top, #151018 0%, #050308 70%);
    border: 2px solid #4b2e83;
    border-radius: 10px;
    padding: 20px;
    box-shadow:
        0 0 25px rgba(120, 70, 200, 0.4),
        inset 0 0 20px rgba(60, 40, 80, 0.25);
    backdrop-filter: blur(4px);
    color: #e8ddff;
    position: relative;
}

/* CLOSE BUTTON */
.panel-close-btn {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 26px;
    cursor: pointer;
    color: #e6d9ff;
    text-shadow: 0 0 10px rgba(150, 80, 255, 0.6);
    transition: 0.2s ease;
    z-index: 50;
}

.panel-close-btn:hover {
    color: #ffffff;
    transform: scale(1.15);
    text-shadow: 0 0 14px rgba(200, 150, 255, 0.9);
}

/* Panel Title */
#market-panel h2 {
    color: #f0e6ff;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-shadow: 0 0 10px #000;
    margin-bottom: 20px;
    text-align: center;
}

/* ============================================================
   MARKET HUB BUTTONS
   ============================================================ */

.market-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.market-buttons button {
    padding: 10px 18px;
    border-radius: 6px;
    background: linear-gradient(145deg, rgba(40,30,44,0.6), rgba(20,15,22,0.6));
    border: 1px solid rgba(160,120,255,0.35);
    color: #e8dfff;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s ease;
    text-shadow: 0 0 6px rgba(0,0,0,0.6);
    box-shadow:
        0 0 8px rgba(120,80,200,0.25),
        inset 0 0 10px rgba(60,40,120,0.25);
}

.market-buttons button:hover {
    background: linear-gradient(145deg, rgba(80,60,120,0.7), rgba(40,30,80,0.6));
    border-color: rgba(200,160,255,0.55);
    box-shadow:
        0 0 12px rgba(180,140,255,0.45),
        inset 0 0 12px rgba(80,60,160,0.35);
    transform: translateY(-2px);
}

.market-buttons button.active {
    background: linear-gradient(145deg, rgba(120,80,200,0.8), rgba(80,60,160,0.7));
    border-color: rgba(220,180,255,0.75);
    box-shadow:
        0 0 14px rgba(200,160,255,0.55),
        inset 0 0 14px rgba(100,70,180,0.45);
    transform: translateY(-2px);
}

/* ============================================================
   MARKET CONTENT WRAPPER
   ============================================================ */

.market-content {
    background: rgba(15, 10, 18, 0.85);
    border: 1px solid rgba(120, 80, 160, 0.35);
    border-radius: 10px;
    padding: 16px;
    box-shadow:
        inset 0 0 18px rgba(60, 40, 80, 0.25),
        0 0 12px rgba(0,0,0,0.5);
}

/* ============================================================
   MARKET GRID / LAYOUT
   ============================================================ */

.market-layout {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 20px;
    margin-top: 10px;
}

/* ============================================================
   MARKET ROWS
   ============================================================ */

.market-row {
    background: rgba(25, 20, 28, 0.9);
    border: 1px solid rgba(120,120,255,0.25);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 12px;
    box-shadow:
        inset 0 0 14px rgba(60,60,120,0.2),
        0 0 6px rgba(0,0,0,0.4);
    transition: 0.2s ease;
    cursor: pointer;
}

.market-row:hover {
    background: rgba(120,120,255,0.15);
    border-color: rgba(160,160,255,0.55);
    box-shadow:
        0 0 12px rgba(180,140,255,0.35),
        inset 0 0 16px rgba(80,60,160,0.35);
    transform: translateY(-1px);
}

.market-item-name {
    font-size: 1rem;
    font-weight: bold;
    color: #f0e6ff;
    margin-bottom: 6px;
}

.market-item-desc {
    font-size: 0.85rem;
    color: #d0c8ff;
    margin-bottom: 6px;
}

/* ============================================================
   PRICE COLORS
   ============================================================ */

.market-price {
    font-size: 0.9rem;
    font-weight: bold;
}

.market-price.up {
    color: #6aff6a;
    text-shadow: 0 0 8px rgba(80,255,120,0.45);
}

.market-price.down {
    color: #ff6a6a;
    text-shadow: 0 0 8px rgba(255,80,80,0.45);
}

/* ============================================================
   BUY / SELL BUTTONS
   ============================================================ */

.market-btn {
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s ease;
    font-size: 0.9rem;
    font-weight: bold;
    display: inline-block;
    margin-top: 6px;
    text-shadow: 0 0 6px rgba(0,0,0,0.6);
}

.market-btn.buy {
    background: linear-gradient(145deg, rgba(0,120,0,0.45), rgba(0,180,0,0.35));
    border: 1px solid rgba(0,255,120,0.45);
    color: #d8ffd8;
    box-shadow:
        0 0 8px rgba(0,255,120,0.25),
        inset 0 0 10px rgba(0,120,60,0.25);
}

.market-btn.buy:hover {
    background: linear-gradient(145deg, rgba(0,160,0,0.55), rgba(0,220,0,0.45));
    border-color: rgba(0,255,160,0.75);
    box-shadow:
        0 0 12px rgba(0,255,160,0.45),
        inset 0 0 12px rgba(0,160,80,0.35);
    transform: translateY(-2px);
}

.market-btn.sell {
    background: linear-gradient(145deg, rgba(120,0,0,0.45), rgba(180,0,0,0.35));
    border: 1px solid rgba(255,120,120,0.45);
    color: #ffd8d8;
    box-shadow:
        0 0 8px rgba(255,80,80,0.25),
        inset 0 0 10px rgba(120,40,40,0.25);
}

.market-btn.sell:hover {
    background: linear-gradient(145deg, rgba(160,0,0,0.55), rgba(220,0,0,0.45));
    border-color: rgba(255,160,160,0.75);
    box-shadow:
        0 0 12px rgba(255,160,160,0.45),
        inset 0 0 12px rgba(160,60,60,0.35);
    transform: translateY(-2px);
}

/* ============================================================
   SIDEBAR
   ============================================================ */

.market-sidebar {
    background: rgba(20, 16, 26, 0.9);
    border: 1px solid rgba(120, 80, 160, 0.35);
    border-radius: 8px;
    padding: 12px;
    box-shadow: inset 0 0 12px rgba(60,40,120,0.2);
}

.market-sidebar h3 {
    color: #f0e6ff;
    margin-bottom: 10px;
    text-shadow: 0 0 6px #000;
}

.market-listing {
    padding: 8px;
    margin-bottom: 8px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(120,120,255,0.25);
    border-radius: 6px;
    color: #e8e8ff;
    box-shadow: inset 0 0 8px rgba(60,60,120,0.2);
    transition: 0.2s ease;
}

.market-listing:hover {
    background: rgba(120,120,255,0.15);
    border-color: rgba(160,160,255,0.55);
}
