/* ============================================
   AimTap - Shop & Inventory Styles
   ============================================ */

.shop-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    z-index: 20;
    overflow-y: auto;
    padding: 40px 20px;
}

.shop-container {
    max-width: 1400px;
    margin: 0 auto;
}

.shop-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
    background: var(--bg-secondary);
    padding: 16px 24px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.shop-header h2 {
    margin-bottom: 0;
    color: var(--text-primary);
    font-size: 24px;
    font-weight: 700;
}

.currency-display {
    background: linear-gradient(135deg, #F59E0B, #EF4444);
    padding: 8px 20px;
    border-radius: 40px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: white;
    font-size: 16px;
}

.currency-display i {
    font-size: 18px;
}

.shop-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 30px;
    background: var(--bg-secondary);
    padding: 12px 20px;
    border-radius: 60px;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.shop-tab {
    padding: 12px 28px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-secondary);
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 40px;
    white-space: nowrap;
}

.shop-tab:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
}

.shop-tab.active {
    background: var(--accent-primary);
    color: var(--bg-primary);
}

.tab-count {
    background: rgba(0,0,0,0.2);
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 12px;
    margin-left: 8px;
}

.rarity-section {
    margin-bottom: 40px;
    background: var(--bg-secondary);
    border-radius: 24px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.rarity-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
    gap: 10px;
}

.rarity-title-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rarity-icon {
    font-size: 24px;
}

.rarity-title {
    font-size: 18px;
    font-weight: 700;
}

.rarity-subtitle {
    font-size: 12px;
    color: var(--text-muted);
}

.rarity-count {
    background: rgba(255,255,255,0.1);
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 12px;
    color: var(--text-secondary);
}

.rarity-common .rarity-title { color: #9CA3AF; }
.rarity-common .rarity-icon { color: #9CA3AF; }
.rarity-common { border-top: 3px solid #9CA3AF; }

.rarity-rare .rarity-title { color: #3B82F6; }
.rarity-rare .rarity-icon { color: #3B82F6; }
.rarity-rare { border-top: 3px solid #3B82F6; }

.rarity-epic .rarity-title { color: #8B5CF6; }
.rarity-epic .rarity-icon { color: #8B5CF6; }
.rarity-epic { border-top: 3px solid #8B5CF6; }

.rarity-legendary .rarity-title { color: #F59E0B; }
.rarity-legendary .rarity-icon { color: #F59E0B; }
.rarity-legendary { border-top: 3px solid #F59E0B; }

.rarity-mythic .rarity-title { color: #EF4444; }
.rarity-mythic .rarity-icon { color: #EF4444; }
.rarity-mythic { border-top: 3px solid #EF4444; }

.rarity-items {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.rarity-items .shop-item,
.rarity-items .inventory-item {
    flex: 0 0 auto;
    width: calc(25% - 15px);
    min-width: 200px;
}

.shop-item,
.inventory-item {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 20px;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 4px solid transparent;
    position: relative;
    overflow: hidden;
}

.shop-item:hover,
.inventory-item:hover {
    transform: translateY(-6px);
    border-color: var(--accent-primary);
    box-shadow: 0 20px 30px rgba(0,0,0,0.3);
}

.shop-item.equipped,
.inventory-item.equipped {
    border-color: var(--success);
    background: linear-gradient(135deg, var(--bg-card), rgba(16,185,129,0.1));
}

.shop-item-preview,
.inventory-item-preview {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100px;
    margin-bottom: 16px;
    background: var(--bg-tertiary);
    border-radius: 16px;
    font-size: 48px;
}

.cursor-preview {
    font-family: monospace;
    color: var(--accent-primary);
}
.cursor-preview[data-cursor="default"]::before { content: "⬤"; font-size: 32px; }
.cursor-preview[data-cursor="dot"]::before { content: "●"; font-size: 40px; }
.cursor-preview[data-cursor="cross"]::before { content: "✛"; font-size: 40px; }
.cursor-preview[data-cursor="circle"]::before { content: "○"; font-size: 40px; }
.cursor-preview[data-cursor="target"]::before { content: "◎"; font-size: 40px; }
.cursor-preview[data-cursor="arrow"]::before { content: "➤"; font-size: 40px; }
.cursor-preview[data-cursor="heart"]::before { content: "❤️"; font-size: 36px; }
.cursor-preview[data-cursor="star"]::before { content: "⭐"; font-size: 36px; }
.cursor-preview[data-cursor="skull"]::before { content: "💀"; font-size: 36px; }
.cursor-preview[data-cursor="lightning"]::before { content: "⚡"; font-size: 36px; }
.cursor-preview[data-cursor="dragon"]::before { content: "🐉"; font-size: 36px; }
.cursor-preview[data-cursor="phoenix"]::before { content: "🔥"; font-size: 36px; }
.cursor-preview[data-cursor="neon"]::before { content: "💚"; font-size: 36px; }
.cursor-preview[data-cursor="glitch"]::before { content: "📺"; font-size: 36px; }
.cursor-preview[data-cursor="galaxy"]::before { content: "🌌"; font-size: 36px; }

.effect-preview .effect-demo {
    width: 60px;
    height: 60px;
    background: var(--accent-primary);
    border-radius: 50%;
    margin: 0 auto;
}

.theme-preview {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
}
.theme-dot {
    width: 30px;
    height: 30px;
    border-radius: 8px;
}

.background-preview {
    width: 100%;
    height: 100px;
    border-radius: 16px;
    background-size: cover;
}

.shop-item-info,
.inventory-item-info {
    text-align: center;
    margin-bottom: 16px;
}

.shop-item-info h4,
.inventory-item-info h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.item-rarity,
.inventory-item-rarity {
    display: inline-block;
    margin-bottom: 6px;
    font-size: 11px;
    padding: 2px 10px;
    border-radius: 20px;
    background: rgba(0,0,0,0.3);
}

.item-desc,
.inventory-item-desc {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 6px;
}

.shop-item-price {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 16px;
    font-weight: 700;
    color: var(--accent-primary);
    font-size: 14px;
}

.shop-item-buttons,
.inventory-item-buttons {
    display: flex;
    gap: 12px;
}

.shop-item-buttons button,
.inventory-equip-btn {
    flex: 1;
    padding: 10px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.buy-btn {
    background: var(--accent-primary);
    color: var(--bg-primary);
}
.buy-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}
.buy-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.equip-btn,
.inventory-equip-btn {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid rgba(255,255,255,0.1);
}
.equip-btn:hover,
.inventory-equip-btn:hover {
    background: var(--bg-hover);
}
.equip-btn.equipped,
.inventory-equip-btn.equipped {
    background: var(--success);
    color: white;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
}
.empty-state i {
    font-size: 64px;
    color: var(--text-muted);
    margin-bottom: 20px;
    display: block;
}
.empty-state p {
    color: var(--text-secondary);
    margin-bottom: 8px;
}
.empty-state small {
    color: var(--text-muted);
    font-size: 12px;
}

@media (max-width: 1024px) {
    .rarity-items .shop-item,
    .rarity-items .inventory-item {
        width: calc(33.33% - 14px);
    }
}

@media (max-width: 768px) {
    .shop-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .shop-tabs {
        flex-wrap: wrap;
        border-radius: 30px;
        padding: 12px;
    }
    .shop-tab {
        padding: 10px 20px;
        font-size: 14px;
    }
    .rarity-items .shop-item,
    .rarity-items .inventory-item {
        width: calc(50% - 10px);
    }
}

@media (max-width: 480px) {
    .rarity-items .shop-item,
    .rarity-items .inventory-item {
        width: 100%;
    }
}