/* ═══════════════════════════════════════════════════════════════════
   SHOP CSS — Mathico Mascot Store
   ═══════════════════════════════════════════════════════════════════ */

.coin-display {
    background: rgba(255, 215, 0, 0.2);
    border: 2px solid #fbbf24;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 700;
    color: #b45309;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: transform 0.2s, background 0.2s;
    font-size: 14px;
    user-select: none;
}

.coin-display:active {
    transform: scale(0.95);
}

.coin-display:hover {
    background: rgba(255, 215, 0, 0.3);
}

/* Dark mode tweaks */
[data-theme="dark"] .coin-display {
    background: rgba(255, 215, 0, 0.12);
    color: #fcd34d;
    border-color: #fbbf24;
}

/* Shop Modal */
.shop-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.shop-content {
    background: var(--bg-card);
    color: var(--text-primary);
    border-radius: 24px;
    padding: 24px;
    width: 90%;
    max-width: 500px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
}

.close-shop {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--bg-secondary);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 16px;
    font-weight: bold;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.close-shop:active {
    transform: scale(0.9);
}

.shop-title {
    margin: 0 0 20px;
    font-size: 1.5rem;
    color: var(--text-primary, #0F2E2B);
    text-align: center;
    font-weight: 700;
    font-family: var(--font-display, inherit);
}

.shop-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--border-color, #e2e8f0);
    padding-bottom: 8px;
}

.shop-tab {
    flex: 1;
    padding: 10px;
    border: none;
    background: transparent;
    font-weight: 600;
    color: var(--text-secondary, #64748b);
    border-radius: 12px;
    cursor: pointer;
    transition: 0.2s;
    font-size: 14px;
}

.shop-tab.active {
    background: #3b82f6;
    color: #fff;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 16px;
}

.shop-item {
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 16px;
    text-align: center;
    transition: transform 0.2s, border-color 0.2s;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.shop-item.owned {
    border-color: #22c55e;
}

.shop-item.equipped {
    background: #dcfce7;
    border-color: #16a34a;
}

body.dark-mode .shop-item.equipped,
[data-theme="dark"] .shop-item.equipped {
    background: rgba(22, 163, 74, 0.2);
}

.shop-item-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.shop-item-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.shop-item-price {
    background: #fef3c7;
    color: #b45309;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 12px;
}

.shop-item.owned .shop-item-price {
    background: var(--border-color);
    color: var(--text-secondary);
}

.btn-buy {
    margin-top: auto;
    width: 100%;
    padding: 8px;
    border-radius: 10px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.1s, background 0.2s;
    font-size: 13px;
}

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

.btn-buy.buy {
    background: #3b82f6;
    color: white;
}

.btn-buy.equip {
    background: #22c55e;
    color: white;
}

.btn-buy.equipped {
    background: transparent;
    color: #16a34a;
    font-style: italic;
    pointer-events: none;
}

.btn-buy.buy:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--text-secondary);
}