/* css/shop.css
   Shop tab layout, item cards, buy buttons, owned/active badges */

/* ── Shop Categories ── */
.shop-category {
    margin-bottom: 16px;
}

.shop-category-title {
    font-size: 13px;
    font-weight: bold;
    color: #FFD700;
    letter-spacing: 2px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 215, 0, 0.15);
    margin-bottom: 8px;
}

/* ── Shop Item Cards ── */
.shop-item-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.shop-item-card {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    transition: all 0.2s;
}

.shop-item-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
}

.shop-item-card.owned {
    border-color: rgba(0, 255, 100, 0.3);
}

.shop-item-card.active {
    border-color: rgba(255, 215, 0, 0.5);
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.2);
}

.shop-item-icon {
    font-size: 24px;
    line-height: 1;
}

.shop-item-name {
    font-size: 11px;
    color: #CCC;
    text-align: center;
    line-height: 1.3;
}

.shop-item-price {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: bold;
    color: #FFD700;
}

.shop-item-price-coin {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #FFE44D, #FFD700 40%, #B8860B);
    display: inline-block;
    flex-shrink: 0;
}

.shop-item-price.discounted {
    color: #00C864;
}

.shop-item-price .original-price {
    text-decoration: line-through;
    color: #666;
    font-size: 10px;
}

/* ── Buy Button ── */
.shop-buy-btn {
    padding: 4px 12px;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 6px;
    color: #FFD700;
    font-size: 11px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
}

.shop-buy-btn:hover {
    background: rgba(255, 215, 0, 0.2);
    border-color: rgba(255, 215, 0, 0.5);
}

.shop-buy-btn:active {
    transform: scale(0.96);
}

.shop-buy-btn.cant-afford {
    opacity: 0.4;
    cursor: not-allowed;
    border-color: rgba(255, 255, 255, 0.1);
    color: #666;
}

.shop-buy-btn.cant-afford:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.1);
}

/* ── Owned/Active Badges ── */
.shop-badge {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 1px;
    text-align: center;
    width: 100%;
}

.shop-badge-owned {
    background: rgba(0, 255, 100, 0.1);
    border: 1px solid rgba(0, 255, 100, 0.2);
    color: #00C864;
}

.shop-badge-active {
    background: rgba(255, 215, 0, 0.15);
    border: 1px solid rgba(255, 215, 0, 0.3);
    color: #FFD700;
}

.shop-badge-reward {
    background: rgba(218, 112, 214, 0.1);
    border: 1px solid rgba(218, 112, 214, 0.2);
    color: #DA70D6;
    font-style: italic;
}

/* ── Skin Apply Button ── */
.shop-apply-btn {
    padding: 4px 12px;
    background: rgba(0, 200, 255, 0.1);
    border: 1px solid rgba(0, 200, 255, 0.3);
    border-radius: 6px;
    color: #00C8FF;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
}

.shop-apply-btn:hover {
    background: rgba(0, 200, 255, 0.2);
}

/* ── Shop Sections Divider ── */
.shop-section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,215,0,0.2), transparent);
    margin: 12px 0;
}

/* ── Free Label ── */
.shop-free-label {
    font-size: 11px;
    color: #00C864;
    font-weight: bold;
}

/* ── Mobile ── */
@media (max-width: 768px) {
    .shop-item-grid {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }

    .shop-item-card {
        padding: 8px;
    }

    .shop-item-icon {
        font-size: 20px;
    }

    .shop-item-name {
        font-size: 10px;
    }
}
