/* ============================================
   VOIDBORNE LEGACY - SHOP STYLES
   Arcane Ink Productions
   ============================================ */

/* Shop Panel */
#shop-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    background: rgba(12, 12, 18, 0.98);
    border: 2px solid var(--border-dark);
    border-radius: 8px;
    z-index: 450;
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s ease;
    overflow: hidden;
}

#shop-panel.active {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
}

/* Shop Header */
.shop-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: linear-gradient(180deg, var(--shadow-mid) 0%, transparent 100%);
    border-bottom: 1px solid var(--border-dark);
}

.shop-icon {
    font-size: 1.5rem;
}

.shop-name {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.shop-gold {
    font-family: var(--font-ui);
    font-size: 0.875rem;
    color: var(--gold-ancient);
}

/* Shop Content */
#shop-content {
    max-height: calc(80vh - 60px);
    overflow-y: auto;
}

.shop-section {
    padding: 12px 16px;
}

.shop-section-title {
    font-family: var(--font-ui);
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 8px;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--border-dark);
}

/* Shop Items */
.shop-items {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.shop-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: var(--shadow-mid);
    border: 1px solid var(--border-dark);
    border-radius: 4px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.shop-item:hover {
    border-color: var(--arcane-purple);
    transform: translateX(4px);
}

.shop-item.unavailable {
    opacity: 0.5;
    cursor: not-allowed;
}

.shop-item.unavailable:hover {
    border-color: var(--border-dark);
    transform: none;
}

.shop-item.sellable:hover {
    border-color: var(--gold-ancient);
}

.shop-item.unsellable {
    opacity: 0.6;
    cursor: not-allowed;
}

.shop-item-icon {
    font-size: 1.25rem;
    width: 32px;
    text-align: center;
}

.shop-item-info {
    flex: 1;
}

.shop-item-name {
    display: block;
    font-family: var(--font-ui);
    font-size: 0.75rem;
    margin-bottom: 2px;
}

.shop-item-name.rarity-common { color: #9ca3af; }
.shop-item-name.rarity-uncommon { color: #22c55e; }
.shop-item-name.rarity-rare { color: #3b82f6; }
.shop-item-name.rarity-epic { color: var(--arcane-purple); }
.shop-item-name.rarity-legendary { color: var(--gold-ancient); }

.shop-item-stock {
    font-family: var(--font-ui);
    font-size: 0.625rem;
    color: var(--text-muted);
}

.shop-item-price {
    font-family: var(--font-ui);
    font-size: 0.75rem;
    color: var(--gold-ancient);
}

.shop-empty {
    text-align: center;
    padding: 16px;
    font-family: var(--font-ui);
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Shop Close Button */
.shop-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.25rem;
    cursor: pointer;
    transition: color var(--transition-fast);
}

.shop-close:hover {
    color: var(--blood-crimson);
}

/* Map Locations for Shop */
.map-location {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: var(--shadow-mid);
    border: 1px solid var(--border-dark);
    border-radius: 4px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.map-location:hover {
    border-color: var(--arcane-purple);
    transform: translateX(4px);
}

.map-location.current {
    border-color: var(--gold-ancient);
    background: rgba(212, 165, 116, 0.1);
}

.map-location.locked {
    opacity: 0.5;
    cursor: not-allowed;
}

.map-location.locked:hover {
    border-color: var(--border-dark);
    transform: none;
}

.map-loc-icon {
    font-size: 1.5rem;
}

.map-loc-info {
    flex: 1;
}

.map-loc-name {
    font-family: var(--font-heading);
    font-size: 0.875rem;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.map-loc-desc {
    font-family: var(--font-ui);
    font-size: 0.6875rem;
    color: var(--text-muted);
    line-height: 1.3;
}

.map-loc-req {
    font-family: var(--font-ui);
    font-size: 0.625rem;
    color: var(--blood-crimson);
    margin-top: 4px;
}

.map-loc-weather {
    font-size: 0.875rem;
    margin-left: 6px;
    opacity: 0.8;
}

